FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BrushImpl

    trait · ferroui-base · v0.5.0

    trait BrushImpl: FerroObjectImpl + $crate::Upcast<Brush>
    

    The overridable members introduced by the class.

    View source

    Members

    on_referenced_from_compositor

    fn on_referenced_from_compositor(this: &Self, c: &Rc<Compositor>)
    

    Called when the brush got its counterpart on a compositor.

    Source

    on_unreferenced_from_compositor

    fn on_unreferenced_from_compositor(this: &Self, c: &Rc<Compositor>)
    

    Called when the brush lost its counterpart on a compositor.

    Source

    prepare_serialization

    fn prepare_serialization(this: &Self, c: &Rc<Compositor>)
    

    Creates the server objects the state of the brush refers to, before the state is written for its counterpart on a compositor (see ICompositorSerializable::prepare_serialization).

    Source

    Trait implementations

    Availability

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