Skip to main content

Module context

Module context 

Source

Re-exports§

pub use crate::event::EventCx;
pub use crate::style::InteractionState;
pub use crate::style::StyleCx;
pub use crate::paint::PaintCx;
pub use crate::paint::PaintState;

Structs§

EventCallbackConfig
Configuration for event callbacks that determines when they should be invoked during event propagation.
LayoutChanged
Event fired when a view’s layout changes
LayoutChangedListener
Listener for LayoutChanged events
Phases
UpdateCx
Context passed during the update phase of the view lifecycle.
VisualChanged
Event fired when a view’s visual representation in the window changes.
VisualChangedListener
Listener for VisualChanged events

Type Aliases§

EventCallback
EventListenerVec
Vector of event listeners, optimized for the common case of 0-1 listeners per event type. Uses SmallVec to avoid heap allocation when there’s only one listener. Inspired by Chromium’s HeapVector<…, 1> pattern for event listener storage.
MenuCallback
ResizeCallback