FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ICompositionCustomVisualHandler

    trait · ferroui-base · v0.5.0

    trait ICompositionCustomVisualHandler: 'static
    

    The overridable members of a custom visual handler. A handler class embeds a CompositionCustomVisualHandler and implements this trait.

    View source

    Members

    handler_base

    fn handler_base(self: &Self) -> &CompositionCustomVisualHandler
    

    The embedded handler state.

    Source

    on_message

    fn on_message(self: &Self, _message: std::sync::Arc<dyn Any + Send + Sync>)
    

    A message sent with CompositionCustomVisual::send_handler_message.

    Source

    on_animation_frame_update

    fn on_animation_frame_update(self: &Self)
    

    Source

    on_render

    fn on_render(self: &Self, drawing_context: &mut ImmediateDrawingContext<'_>)
    

    Source

    get_render_bounds

    fn get_render_bounds(self: &Self) -> Rect
    

    The bounds of what the handler draws; the effective size of the visual by default.

    Source

    Availability

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