pub enum TextGradientKind {
Linear {
start: [f32; 2],
end: [f32; 2],
},
Radial {
center: [f32; 2],
radius: f32,
},
Conic {
center: [f32; 2],
angle: f32,
},
}Expand description
Where a gradient’s offsets lie.
Variants§
Linear
Offset 0 at start, 1 at end, constant across the line.
Radial
Offset 1 at radius from center.
Fields
Conic
One clockwise turn about center, starting angle radians clockwise from straight up.
Trait Implementations§
Source§impl Clone for TextGradientKind
impl Clone for TextGradientKind
impl Copy for TextGradientKind
Source§impl Debug for TextGradientKind
impl Debug for TextGradientKind
Source§impl PartialEq for TextGradientKind
impl PartialEq for TextGradientKind
impl StructuralPartialEq for TextGradientKind
Auto Trait Implementations§
impl Freeze for TextGradientKind
impl RefUnwindSafe for TextGradientKind
impl Send for TextGradientKind
impl Sync for TextGradientKind
impl Unpin for TextGradientKind
impl UnsafeUnpin for TextGradientKind
impl UnwindSafe for TextGradientKind
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