FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RadialGradientBrush

    struct · ferroui-base · v0.5.0

    struct RadialGradientBrush
    

    Paints an area with a radial gradient.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<RadialGradientBrush>
    

    Returns a strong reference to this object.

    Source

    center_property

    fn center_property() -> &'static StyledProperty<RelativePoint>
    

    Source

    gradient_origin_property

    fn gradient_origin_property() -> &'static StyledProperty<RelativePoint>
    

    Source

    radius_x_property

    fn radius_x_property() -> &'static StyledProperty<RelativeScalar>
    

    Source

    radius_y_property

    fn radius_y_property() -> &'static StyledProperty<RelativeScalar>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    center

    fn center(self: &Self) -> RelativePoint
    

    The start point for the gradient.

    Source

    set_center

    fn set_center(self: &Self, value: RelativePoint)
    

    Source

    gradient_origin

    fn gradient_origin(self: &Self) -> RelativePoint
    

    The location of the two-dimensional focal point that defines the beginning of the gradient.

    Source

    set_gradient_origin

    fn set_gradient_origin(self: &Self, value: RelativePoint)
    

    Source

    radius_x

    fn radius_x(self: &Self) -> RelativeScalar
    

    The horizontal radius of the outermost circle of the radial gradient.

    Source

    set_radius_x

    fn set_radius_x(self: &Self, value: RelativeScalar)
    

    Source

    radius_y

    fn radius_y(self: &Self) -> RelativeScalar
    

    The vertical radius of the outermost circle of the radial gradient.

    Source

    set_radius_y

    fn set_radius_y(self: &Self, value: RelativeScalar)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.