pub struct LinearGradientBrush {
pub stops: Vec<GradientStop>,
pub start: RelativePoint,
pub end: RelativePoint,
}Expand description
Linear gradient brush.
Fields§
§stops: Vec<GradientStop>The gradient stops.
start: RelativePointThe relative start position.
end: RelativePointThe relative end position.
Implementations§
Source§impl LinearGradientBrush
impl LinearGradientBrush
Sourcepub fn new(
stops: impl IntoIterator<Item = GradientStop>,
start: RelativePoint,
end: RelativePoint,
) -> Self
pub fn new( stops: impl IntoIterator<Item = GradientStop>, start: RelativePoint, end: RelativePoint, ) -> Self
Create LinearGradientBrush.
Trait Implementations§
Source§impl Clone for LinearGradientBrush
impl Clone for LinearGradientBrush
Source§fn clone(&self) -> LinearGradientBrush
fn clone(&self) -> LinearGradientBrush
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 LinearGradientBrush
impl RefUnwindSafe for LinearGradientBrush
impl Send for LinearGradientBrush
impl Sync for LinearGradientBrush
impl Unpin for LinearGradientBrush
impl UnwindSafe for LinearGradientBrush
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