GradientStop
struct · ferroui-base · v0.5.0
struct GradientStop
Describes the location and color of a transition point in a gradient.
Members
TYPEto_refoffset_propertycolor_propertyconstructnewwith_color_and_offsetoffsetset_offsetcolorset_color
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<GradientStop>
Returns a strong reference to this object.
offset_property
fn offset_property() -> &'static StyledProperty<f64>
color_property
fn color_property() -> &'static StyledProperty<Color>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
with_color_and_offset
fn with_color_and_offset(color: Color, offset: f64) -> Ref<Self>
Creates a gradient stop with the given color and offset.
offset
fn offset(self: &Self) -> f64
The gradient stop offset.
set_offset
fn set_offset(self: &Self, value: f64)
color
fn color(self: &Self) -> Color
The gradient stop color.
set_color
fn set_color(self: &Self, value: Color)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<GradientStop>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.