pub struct GradientStopProp {
pub offset: f32,
pub color: ColorProp,
}Expand description
One stop of a gradient PaintProp. The color is a ColorProp so it
tracks theme/role/signal changes.
Fields§
§offset: f32Position along the gradient axis, 0.0..=1.0.
color: ColorPropTrait Implementations§
Source§impl Clone for GradientStopProp
impl Clone for GradientStopProp
Source§fn clone(&self) -> GradientStopProp
fn clone(&self) -> GradientStopProp
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for GradientStopProp
impl !Send for GradientStopProp
impl !Sync for GradientStopProp
impl !UnwindSafe for GradientStopProp
impl Freeze for GradientStopProp
impl Unpin for GradientStopProp
impl UnsafeUnpin for GradientStopProp
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