pub struct RadialGradientBrush {
pub stops: Vec<GradientStop>,
pub origin: Point2D<f64, RelativeSpace>,
pub center: Point2D<f64, RelativeSpace>,
pub radius: Size2D<f64, RelativeSpace>,
}Available on crate feature
winio only.Expand description
Radial gradient brush.
Fields§
§stops: Vec<GradientStop>The gradient stops.
origin: Point2D<f64, RelativeSpace>The relative origin position.
center: Point2D<f64, RelativeSpace>The relative center position.
radius: Size2D<f64, RelativeSpace>The relative radius.
Implementations§
Source§impl RadialGradientBrush
impl RadialGradientBrush
Sourcepub fn new(
stops: impl IntoIterator<Item = GradientStop>,
origin: Point2D<f64, RelativeSpace>,
center: Point2D<f64, RelativeSpace>,
radius: Size2D<f64, RelativeSpace>,
) -> RadialGradientBrush
pub fn new( stops: impl IntoIterator<Item = GradientStop>, origin: Point2D<f64, RelativeSpace>, center: Point2D<f64, RelativeSpace>, radius: Size2D<f64, RelativeSpace>, ) -> RadialGradientBrush
Create RadialGradientBrush.
Trait Implementations§
Source§impl Clone for RadialGradientBrush
impl Clone for RadialGradientBrush
Source§fn clone(&self) -> RadialGradientBrush
fn clone(&self) -> RadialGradientBrush
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 RadialGradientBrush
impl Debug for RadialGradientBrush
impl Brush for RadialGradientBrush
Auto Trait Implementations§
impl Freeze for RadialGradientBrush
impl RefUnwindSafe for RadialGradientBrush
impl Send for RadialGradientBrush
impl Sync for RadialGradientBrush
impl Unpin for RadialGradientBrush
impl UnsafeUnpin for RadialGradientBrush
impl UnwindSafe for RadialGradientBrush
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