pub struct TextGradient {
pub kind: TextGradientKind,
pub stops: Vec<TextGradientStop>,
pub spread: TextSpread,
}Expand description
A gradient over a text’s layout box. Points are fractions of the box ((0, 0) top-left) and
a radius is a fraction of its shorter side.
Fields§
§kind: TextGradientKindGeometry.
stops: Vec<TextGradientStop>Two or more stops with non-decreasing offsets in 0..=1.
spread: TextSpreadBehavior past the end stops; ignored by conic gradients.
Trait Implementations§
Source§impl Clone for TextGradient
impl Clone for TextGradient
Source§impl Debug for TextGradient
impl Debug for TextGradient
Source§impl PartialEq for TextGradient
impl PartialEq for TextGradient
impl StructuralPartialEq for TextGradient
Auto Trait Implementations§
impl Freeze for TextGradient
impl RefUnwindSafe for TextGradient
impl Send for TextGradient
impl Sync for TextGradient
impl Unpin for TextGradient
impl UnsafeUnpin for TextGradient
impl UnwindSafe for TextGradient
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