pub struct GradientFillStyle {
pub gradient_type: GradientType,
pub degree: Option<f64>,
pub left: Option<f64>,
pub right: Option<f64>,
pub top: Option<f64>,
pub bottom: Option<f64>,
pub stops: Vec<GradientStop>,
}Expand description
Gradient fill style definition.
Fields§
§gradient_type: GradientTypeGradient type: linear or path.
degree: Option<f64>Rotation angle in degrees for linear gradients.
left: Option<f64>Left coordinate for path gradients (0.0-1.0).
right: Option<f64>Right coordinate for path gradients (0.0-1.0).
top: Option<f64>Top coordinate for path gradients (0.0-1.0).
bottom: Option<f64>Bottom coordinate for path gradients (0.0-1.0).
stops: Vec<GradientStop>Gradient stops defining the color transitions.
Trait Implementations§
Source§impl Clone for GradientFillStyle
impl Clone for GradientFillStyle
Source§fn clone(&self) -> GradientFillStyle
fn clone(&self) -> GradientFillStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GradientFillStyle
impl RefUnwindSafe for GradientFillStyle
impl Send for GradientFillStyle
impl Sync for GradientFillStyle
impl Unpin for GradientFillStyle
impl UnwindSafe for GradientFillStyle
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