Structs§
- Compose
Guard - Composer
- Focus
Manager - A manager for programmatic focus navigation.
- Focus
Requester - A handle that can programmatically request focus for a widget.
- Frame
- Frame - output of composition for a tick: scene + input/semantics.
- HitRegion
- Hit-test region in physical pixels (
rectcarries px magnitudes, like ComposeRect). - Scheduler
- Scheduler
Scope Guard - RAII guard from
Scheduler::scope_guard. Pops the scope on drop. - Scheduler
Scope Guard Raw - Panic-safe scope guard that does NOT hold a borrow across the body.
- SemNode
- Flattened semantics node produced by
layout_and_paint.
Enums§
- Focus
Direction - Direction for focus movement.
Constants§
Functions§
- drain_
focus_ requests - Drain all queued focus requests in FIFO order.
- focus_
group_ chain - Sub-chain of ids sharing the focused element’s focus group.
Returns
Nonewhen focus is outside any group (full chain applies). Tab and spatial navigation both scope to this so modals trap focus. - keyed
- remember
- Slot-based remember (sequential composition only). This prevents state aliasing when the composition tree structure changes between frames
- remember_
auto - Auto-keyed variant of
remember: identity is the call site plus an occurrence index, so state follows a composition position, not an item. Only safe where the number of calls at this site is fixed across frames — list items and conditional branches needremember_with_key. - remember_
state - Raw slot state (
Rc<RefCell<T>>). Writes viaborrow_mut()don’t request a frame - prefer [remember_mutable] if a write must always recompose. - remember_
state_ auto - Auto-keyed variant of
remember_state. Same positional caveat asremember_autoand the same no-frame-on-write caveat asremember_state. - remember_
state_ with_ key - Key-based variant of
remember_state. Same no-frame-on-write caveat. - remember_
with_ key - Key-based remember.
- shutdown_
composition - Dispose the root composition scope and clear all composer caches.
- spatial_
focus_ next - Find the next focusable element in a given spatial direction.
- take_
focus_ request - unique_
component_ id - Returns a fresh unique component id. See [
COMPONENT_ID].