ImmutableConicGradientBrush
struct · ferroui-base · v0.5.0
struct ImmutableConicGradientBrush
A brush that draws with a sweep gradient.
Members
new
fn new(gradient_stops: &[ImmutableGradientStop], opacity: f64, transform: Option<Rc<ImmutableTransform>>, transform_origin: Option<RelativePoint>, spread_method: GradientSpreadMethod, center: Option<RelativePoint>, angle: f64, relative_transform: Option<Rc<ImmutableTransform>>) -> Self
Creates a brush. transform_origin defaults to the top left corner
and center to the center.
from_stops
fn from_stops(gradient_stops: &[ImmutableGradientStop]) -> Self
Creates a fully opaque brush with the given stops and default values for everything else.
from_brush
fn from_brush(source: &ConicGradientBrush) -> Self
Creates an immutable copy of source.
center
fn center(self: &Self) -> RelativePoint
The center point for the gradient.
angle
fn angle(self: &Self) -> f64
The starting angle of the gradient's sweep, in degrees.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDerefIBrushIGradientBrushIImmutableBrushIConicGradientBrush
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.