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§
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(original: RadialGradientBrush) -> Brush
fn from(original: RadialGradientBrush) -> Brush
Converts to this type from the input type.
source§impl PartialEq<RadialGradientBrush> for RadialGradientBrush
impl PartialEq<RadialGradientBrush> for RadialGradientBrush
source§fn 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 ==.