Skip to main content

Module runtime

Module runtime 

Source

Structs§

ComposeGuard
Composer
FocusManager
A manager for programmatic focus navigation.
FocusRequester
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 (rect carries px magnitudes, like Compose Rect).
Scheduler
SemNode
Flattened semantics node produced by layout_and_paint.

Enums§

FocusDirection
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 None when 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 via borrow_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].