FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GradientBrush

    struct · ferroui-base · v0.5.0

    struct GradientBrush
    

    Base class for brushes that draw with a 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<GradientBrush>
    

    Returns a strong reference to this object.

    Source

    to_immutable

    fn to_immutable(self: &Self) -> Rc<dyn IImmutableBrush>
    

    Creates an immutable clone of the brush.

    Source

    spread_method_property

    fn spread_method_property() -> &'static StyledProperty<GradientSpreadMethod>
    

    Source

    gradient_stops_property

    fn gradient_stops_property() -> &'static StyledProperty<Option<GradientStops>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    spread_method

    fn spread_method(self: &Self) -> GradientSpreadMethod
    

    The brush's spread method that defines how to draw a gradient that doesn't fill the bounds of the destination control.

    Source

    set_spread_method

    fn set_spread_method(self: &Self, value: GradientSpreadMethod)
    

    Source

    gradient_stops

    fn gradient_stops(self: &Self) -> GradientStops
    

    The brush's gradient stops. Panics if the property has been cleared.

    Source

    set_gradient_stops

    fn set_gradient_stops(self: &Self, value: GradientStops)
    

    Source

    Trait implementations

    Availability

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