pub struct FocusAnchor {
pub focused: Option<NodeId>,
pub prev_sibling: Option<NodeId>,
pub next_sibling: Option<NodeId>,
pub trail: Vec<(NodeId, usize)>,
pub active_modal: Option<NodeId>,
pub composite_group: Option<NodeId>,
pub was_roving_active: bool,
pub was_text_entry: bool,
pub modality: FocusModality,
/* private fields */
}Expand description
Snapshot of the currently focused node’s structural context used to recover focus deterministically when the focused node (or any ancestor wrapper) unmounts, hides, disables, or exits a modal.
Fields§
§focused: Option<NodeId>§prev_sibling: Option<NodeId>§next_sibling: Option<NodeId>§trail: Vec<(NodeId, usize)>Ancestor chain (ancestor, child_index) from immediate parent up to NodeId::ROOT.
active_modal: Option<NodeId>Topmost open modal overlay observed on the last commit/snapshot.
composite_group: Option<NodeId>Nearest enclosing composite ARIA group (tablist, menu, radiogroup, listbox, grid).
was_roving_active: boolWhether focused had tab_index == Some(0) inside composite_group.
was_text_entry: bool§modality: FocusModalityImplementations§
Source§impl FocusAnchor
impl FocusAnchor
Trait Implementations§
Source§impl Clone for FocusAnchor
impl Clone for FocusAnchor
Source§impl Debug for FocusAnchor
impl Debug for FocusAnchor
Auto Trait Implementations§
impl Forget for FocusAnchor
impl Freeze for FocusAnchor
impl Move for FocusAnchor
impl RefUnwindSafe for FocusAnchor
impl Send for FocusAnchorwhere
RawVecInner: Send,
impl Sync for FocusAnchorwhere
RawVecInner: Sync,
impl Unpin for FocusAnchor
impl UnsafeUnpin for FocusAnchor
impl UnwindSafe for FocusAnchorwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more