FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SharedBrush

    struct · ferroui-base · v0.5.0

    struct SharedBrush
    

    The values of an immutable brush, shared between the UI thread and the render thread. See the module documentation.

    View source

    Members

    from_brush

    fn from_brush(brush: &dyn IBrush) -> Option<SharedBrush>
    

    Copies the values of brush. None for a brush that is none of the kinds a render backend draws from values (a solid colour, a gradient, an image).

    Source

    Trait implementations

    Availability

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