pub struct ConicGradientBrush(/* private fields */);
Expand description
The ConicGradientBrush describes a way of filling a shape with a gradient that rotates around a center point
Implementations§
Source§impl ConicGradientBrush
impl ConicGradientBrush
Sourcepub fn new(stops: impl IntoIterator<Item = GradientStop>) -> Self
pub fn new(stops: impl IntoIterator<Item = GradientStop>) -> Self
Creates a new conic gradient with the provided color stops. The stops should have angle positions in the range 0.0 to 1.0, where 0.0 is 0 degrees (north) and 1.0 is 360 degrees.
Sourcepub fn stops(&self) -> impl Iterator<Item = &GradientStop>
pub fn stops(&self) -> impl Iterator<Item = &GradientStop>
Returns the color stops of the conic gradient.
Trait Implementations§
Source§impl Clone for ConicGradientBrush
impl Clone for ConicGradientBrush
Source§fn clone(&self) -> ConicGradientBrush
fn clone(&self) -> ConicGradientBrush
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 ConicGradientBrush
impl Debug for ConicGradientBrush
Source§impl From<ConicGradientBrush> for Brush
impl From<ConicGradientBrush> for Brush
Source§fn from(value: ConicGradientBrush) -> Self
fn from(value: ConicGradientBrush) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConicGradientBrush
impl PartialEq for ConicGradientBrush
impl StructuralPartialEq for ConicGradientBrush
Auto Trait Implementations§
impl Freeze for ConicGradientBrush
impl RefUnwindSafe for ConicGradientBrush
impl Send for ConicGradientBrush
impl Sync for ConicGradientBrush
impl Unpin for ConicGradientBrush
impl UnwindSafe for ConicGradientBrush
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