pub struct GradientPaint {
pub kind: PaintKind,
pub units: GradientUnits,
pub spread: GradientSpread,
pub interpolation: GradientInterpolation,
pub start: [f32; 2],
pub end: [f32; 2],
pub center: [f32; 2],
pub radius: [f32; 2],
pub angle: f32,
pub stops: Vec<GradientStop>,
}Fields§
§kind: PaintKind§units: GradientUnits§spread: GradientSpread§interpolation: GradientInterpolation§start: [f32; 2]§end: [f32; 2]§center: [f32; 2]§radius: [f32; 2]§angle: f32§stops: Vec<GradientStop>Trait Implementations§
Source§impl Clone for GradientPaint
impl Clone for GradientPaint
Source§fn clone(&self) -> GradientPaint
fn clone(&self) -> GradientPaint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GradientPaint
impl Debug for GradientPaint
Source§impl Default for GradientPaint
impl Default for GradientPaint
Source§impl Delegated for GradientPaint
impl Delegated for GradientPaint
Source§impl PartialEq for GradientPaint
impl PartialEq for GradientPaint
Source§fn eq(&self, other: &GradientPaint) -> bool
fn eq(&self, other: &GradientPaint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GradientPaint
Auto Trait Implementations§
impl Freeze for GradientPaint
impl RefUnwindSafe for GradientPaint
impl Send for GradientPaint
impl Sync for GradientPaint
impl Unpin for GradientPaint
impl UnsafeUnpin for GradientPaint
impl UnwindSafe for GradientPaint
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