pub struct RadialGradientBrush {
pub stops: Vec<GradientStop>,
pub origin: RelativePoint,
pub center: RelativePoint,
pub radius: RelativeSize,
}Expand description
Radial gradient brush.
Fields§
§stops: Vec<GradientStop>The gradient stops.
origin: RelativePointThe relative origin position.
center: RelativePointThe relative center position.
radius: RelativeSizeThe relative radius.
Implementations§
Source§impl RadialGradientBrush
impl RadialGradientBrush
Sourcepub fn new(
stops: impl IntoIterator<Item = GradientStop>,
origin: RelativePoint,
center: RelativePoint,
radius: RelativeSize,
) -> Self
pub fn new( stops: impl IntoIterator<Item = GradientStop>, origin: RelativePoint, center: RelativePoint, radius: RelativeSize, ) -> Self
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 moreAuto Trait Implementations§
impl Freeze for RadialGradientBrush
impl RefUnwindSafe for RadialGradientBrush
impl Send for RadialGradientBrush
impl Sync for RadialGradientBrush
impl Unpin 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