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.
Members
handler_base
fn handler_base(self: &Self) -> &CompositionCustomVisualHandler
The embedded handler state.
on_message
fn on_message(self: &Self, _message: std::sync::Arc<dyn Any + Send + Sync>)
A message sent with CompositionCustomVisual::send_handler_message.
on_animation_frame_update
fn on_animation_frame_update(self: &Self)
on_render
fn on_render(self: &Self, drawing_context: &mut ImmediateDrawingContext<'_>)
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.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.