CompositionRadialGradientBrush
struct · ferroui-base · v0.5.0
struct CompositionRadialGradientBrush
A composition brush that paints with a radial gradient.
Members
from_brushcenterset_centergradient_originset_gradient_originradius_xset_radius_xradius_yset_radius_yradiusellipse_centerset_ellipse_centerellipse_radiusset_ellipse_radiusgradient_origin_offsetset_gradient_origin_offset
from_brush
fn from_brush(brush: &Rc<CompositionBrush>) -> Option<CompositionRadialGradientBrush>
The handle of brush as this class, if it is one.
center
fn center(self: &Self) -> RelativePoint
set_center
fn set_center(self: &Self, value: RelativePoint)
gradient_origin
fn gradient_origin(self: &Self) -> RelativePoint
set_gradient_origin
fn set_gradient_origin(self: &Self, value: RelativePoint)
radius_x
fn radius_x(self: &Self) -> RelativeScalar
set_radius_x
fn set_radius_x(self: &Self, value: RelativeScalar)
radius_y
fn radius_y(self: &Self) -> RelativeScalar
set_radius_y
fn set_radius_y(self: &Self, value: RelativeScalar)
radius
fn radius(self: &Self) -> f64
ellipse_center
fn ellipse_center(self: &Self) -> Vector
EllipseCenter: the centre of the ellipse, the upstream
center, in the unit of the mapping mode.
set_ellipse_center
fn set_ellipse_center(self: &Self, value: Vector)
Sets the centre; the gradient origin moves with it, keeping
gradient_origin_offset.
ellipse_radius
fn ellipse_radius(self: &Self) -> Vector
EllipseRadius: the radii of the ellipse, the upstream
radius_x and radius_y, in the
unit of the mapping mode.
set_ellipse_radius
fn set_ellipse_radius(self: &Self, value: Vector)
gradient_origin_offset
fn gradient_origin_offset(self: &Self) -> Vector
GradientOriginOffset: where the gradient starts relative to the
centre of the ellipse; the upstream
gradient_origin is the centre plus this
offset.
set_gradient_origin_offset
fn set_gradient_origin_offset(self: &Self, value: Vector)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDeref
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.