GradientBrush
struct · ferroui-base · v0.5.0
struct GradientBrush
Base class for brushes that draw with a gradient.
Members
TYPEto_refto_immutablespread_method_propertygradient_stops_propertyconstructspread_methodset_spread_methodgradient_stopsset_gradient_stops
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<GradientBrush>
Returns a strong reference to this object.
to_immutable
fn to_immutable(self: &Self) -> Rc<dyn IImmutableBrush>
Creates an immutable clone of the brush.
spread_method_property
fn spread_method_property() -> &'static StyledProperty<GradientSpreadMethod>
gradient_stops_property
fn gradient_stops_property() -> &'static StyledProperty<Option<GradientStops>>
construct
fn construct() -> Self
Creates the class data.
spread_method
fn spread_method(self: &Self) -> GradientSpreadMethod
The brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control.
set_spread_method
fn set_spread_method(self: &Self, value: GradientSpreadMethod)
gradient_stops
fn gradient_stops(self: &Self) -> GradientStops
The brush's gradient stops. Panics if the property has been cleared.
set_gradient_stops
fn set_gradient_stops(self: &Self, value: GradientStops)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBrushImplExtGradientBrushImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<GradientBrush>StaticTypeObjectTypeSubclassable<T>FerroObjectImplBrushImplGradientBrushImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.