pub struct RadialGradientBrush(/* private fields */);
Expand description
The RadialGradientBrush describes a way of filling a shape with a circular gradient
Implementations§
Source§impl RadialGradientBrush
impl RadialGradientBrush
Sourcepub fn new_circle(stops: impl IntoIterator<Item = GradientStop>) -> Self
pub fn new_circle(stops: impl IntoIterator<Item = GradientStop>) -> Self
Creates a new circle radial gradient, centered in the middle and described by the provided color stops.
Sourcepub fn stops(&self) -> impl Iterator<Item = &GradientStop>
pub fn stops(&self) -> impl Iterator<Item = &GradientStop>
Returns the color stops of the linear gradient.
Trait Implementations§
Source§impl Clone for RadialGradientBrush
impl Clone for RadialGradientBrush
Source§fn clone(&self) -> RadialGradientBrush
fn clone(&self) -> RadialGradientBrush
Returns a copy 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
Source§impl From<RadialGradientBrush> for Brush
impl From<RadialGradientBrush> for Brush
Source§fn from(value: RadialGradientBrush) -> Self
fn from(value: RadialGradientBrush) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RadialGradientBrush
impl PartialEq for RadialGradientBrush
impl StructuralPartialEq 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 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