FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BrushExtensions

    struct · ferroui-base · v0.5.0

    struct BrushExtensions
    

    Extension methods for brush classes.

    View source

    Members

    to_immutable

    fn to_immutable(brush: &Rc<dyn IBrush>) -> Rc<dyn IImmutableBrush>
    

    Converts a brush to an immutable brush.

    Returns the result of calling IMutableBrush::to_immutable if the brush is mutable, otherwise the brush itself.

    Source

    dash_style_to_immutable

    fn dash_style_to_immutable(style: &Rc<dyn IDashStyle>) -> Rc<ImmutableDashStyle>
    

    Converts a dash style to an immutable dash style.

    Source

    pen_to_immutable

    fn pen_to_immutable(pen: &Rc<dyn IPen>) -> Rc<ImmutablePen>
    

    Converts a pen to an immutable pen.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

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