Struct i_slint_core::graphics::RadialGradientBrush
source · [−]#[repr(transparent)]pub struct RadialGradientBrush(_);Expand description
The RadialGradientBrush describes a way of filling a shape with a circular gradient
Implementations
sourceimpl 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
sourceimpl Clone for RadialGradientBrush
impl Clone for RadialGradientBrush
sourcefn clone(&self) -> RadialGradientBrush
fn clone(&self) -> RadialGradientBrush
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RadialGradientBrush
impl Debug for RadialGradientBrush
sourceimpl From<RadialGradientBrush> for Brush
impl From<RadialGradientBrush> for Brush
sourcefn from(original: RadialGradientBrush) -> Brush
fn from(original: RadialGradientBrush) -> Brush
Converts to this type from the input type.
sourceimpl PartialEq<RadialGradientBrush> for RadialGradientBrush
impl PartialEq<RadialGradientBrush> for RadialGradientBrush
sourcefn eq(&self, other: &RadialGradientBrush) -> bool
fn eq(&self, other: &RadialGradientBrush) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for RadialGradientBrush
Auto Trait Implementations
impl RefUnwindSafe for RadialGradientBrush
impl Send for RadialGradientBrush
impl !Sync for RadialGradientBrush
impl Unpin for RadialGradientBrush
impl UnwindSafe for RadialGradientBrush
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more