pub enum Geometry {
Linear(Point, Point),
Radial(Point, f64),
RadialFocal(Point, f64, Point),
Sweep(Point, f64, f64),
}Expand description
Gradient geometry in the coordinate system selected by GradientUnits.
Variants§
Linear(Point, Point)
Projection from the first point to the second point.
Radial(Point, f64)
Distance from a center divided by a positive radius.
RadialFocal(Point, f64, Point)
Focal radial gradient: center, positive radius and focus strictly inside the circle.
Sweep(Point, f64, f64)
Angular gradient around a center, with increasing start/end radians.
Trait Implementations§
impl StructuralPartialEq for Geometry
Auto Trait Implementations§
impl Forget for Geometry
impl Freeze for Geometry
impl Move for Geometry
impl RefUnwindSafe for Geometry
impl Send for Geometry
impl Sync for Geometry
impl Unpin for Geometry
impl UnsafeUnpin for Geometry
impl UnwindSafe for Geometry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more