LinearGradientBrush
struct · ferroui-base · v0.5.0
struct LinearGradientBrush
A brush that draws with a linear gradient.
Members
TYPEto_refstart_point_propertyend_point_propertyconstructnewstart_pointset_start_pointend_pointset_end_point
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<LinearGradientBrush>
Returns a strong reference to this object.
start_point_property
fn start_point_property() -> &'static StyledProperty<RelativePoint>
end_point_property
fn end_point_property() -> &'static StyledProperty<RelativePoint>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
start_point
fn start_point(self: &Self) -> RelativePoint
The start point for the gradient.
set_start_point
fn set_start_point(self: &Self, value: RelativePoint)
end_point
fn end_point(self: &Self) -> RelativePoint
The end point for the gradient.
set_end_point
fn set_end_point(self: &Self, value: RelativePoint)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBrushImplExtGradientBrushImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<LinearGradientBrush>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplBrushImplGradientBrushImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.