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
- SemNode
- Flattened semantics node produced by
layout_and_paint.
Enums§
- Focus
Direction - Direction for focus movement.
Constants§
- CLEAR_
FOCUS_ MARKER - Sentinel value meaning “clear focus entirely”.
- COMPOSER
Functions§
- 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. - remember
- Slot-based remember (sequential composition only). This prevents state aliasing when the composition tree structure changes between frames
- 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_ with_ key - Key-based variant of
remember_state. Same no-frame-on-write caveat. - remember_
with_ key - Key-based remember.
- 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].