FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IGradientBrush

    trait · ferroui-base · v0.5.0

    trait IGradientBrush: IBrush
    

    A brush that draws with a gradient.

    View source

    Members

    gradient_stops

    fn gradient_stops(self: &Self) -> Vec<Rc<dyn IGradientStop>>
    

    The brush's gradient stops.

    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

    Trait implementations

    Availability

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