pub enum GradientKind {
Linear {
start: Point,
end: Point,
},
Radial {
start_center: Point,
start_radius: f64,
end_center: Point,
end_radius: f64,
},
}Expand description
Where a Gradient runs.
Variants§
Linear
Along the line from start to end, constant across it.
Radial
Between two circles, the start circle at offset 0 and the end circle at offset 1 (a two-point conical gradient, as CSS and SVG define).
Trait Implementations§
Source§impl Clone for GradientKind
impl Clone for GradientKind
impl Copy for GradientKind
Source§impl Debug for GradientKind
impl Debug for GradientKind
Source§impl PartialEq for GradientKind
impl PartialEq for GradientKind
impl StructuralPartialEq for GradientKind
Auto Trait Implementations§
impl Freeze for GradientKind
impl RefUnwindSafe for GradientKind
impl Send for GradientKind
impl Sync for GradientKind
impl Unpin for GradientKind
impl UnsafeUnpin for GradientKind
impl UnwindSafe for GradientKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.