RadialGradientBrush
struct · ferroui-base · v0.5.0
struct RadialGradientBrush
Paints an area with a radial gradient.
Members
TYPEto_refcenter_propertygradient_origin_propertyradius_x_propertyradius_y_propertyconstructnewcenterset_centergradient_originset_gradient_originradius_xset_radius_xradius_yset_radius_y
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RadialGradientBrush>
Returns a strong reference to this object.
center_property
fn center_property() -> &'static StyledProperty<RelativePoint>
gradient_origin_property
fn gradient_origin_property() -> &'static StyledProperty<RelativePoint>
radius_x_property
fn radius_x_property() -> &'static StyledProperty<RelativeScalar>
radius_y_property
fn radius_y_property() -> &'static StyledProperty<RelativeScalar>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
center
fn center(self: &Self) -> RelativePoint
The start point for the gradient.
set_center
fn set_center(self: &Self, value: RelativePoint)
gradient_origin
fn gradient_origin(self: &Self) -> RelativePoint
The location of the two-dimensional focal point that defines the beginning of the gradient.
set_gradient_origin
fn set_gradient_origin(self: &Self, value: RelativePoint)
radius_x
fn radius_x(self: &Self) -> RelativeScalar
The horizontal radius of the outermost circle of the radial gradient.
set_radius_x
fn set_radius_x(self: &Self, value: RelativeScalar)
radius_y
fn radius_y(self: &Self) -> RelativeScalar
The vertical radius of the outermost circle of the radial gradient.
set_radius_y
fn set_radius_y(self: &Self, value: RelativeScalar)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBrushImplExtGradientBrushImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<RadialGradientBrush>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplBrushImplGradientBrushImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.