pub struct LinearGradientBrush {
pub stops: Vec<GradientStop>,
pub start: Point2D<f64, RelativeSpace>,
pub end: Point2D<f64, RelativeSpace>,
}Available on crate feature
winio only.Expand description
Linear gradient brush.
Fields§
§stops: Vec<GradientStop>The gradient stops.
start: Point2D<f64, RelativeSpace>The relative start position.
end: Point2D<f64, RelativeSpace>The relative end position.
Implementations§
Source§impl LinearGradientBrush
impl LinearGradientBrush
Sourcepub fn new(
stops: impl IntoIterator<Item = GradientStop>,
start: Point2D<f64, RelativeSpace>,
end: Point2D<f64, RelativeSpace>,
) -> LinearGradientBrush
pub fn new( stops: impl IntoIterator<Item = GradientStop>, start: Point2D<f64, RelativeSpace>, end: Point2D<f64, RelativeSpace>, ) -> LinearGradientBrush
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 moreSource§impl Debug for LinearGradientBrush
impl Debug for LinearGradientBrush
impl Brush for LinearGradientBrush
Auto Trait Implementations§
impl Freeze for LinearGradientBrush
impl RefUnwindSafe for LinearGradientBrush
impl Send for LinearGradientBrush
impl Sync for LinearGradientBrush
impl Unpin for LinearGradientBrush
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more