Module context

Module context 

Source

Re-exports§

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

Structs§

DragState
Tracks the state of a view being dragged.
UpdateCx
Context passed during the update phase of the view lifecycle.

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