pub struct SemNode {Show 29 fields
pub id: u64,
pub parent: Option<u64>,
pub role: Role,
pub label: Option<String>,
pub rect: Rect,
pub focused: bool,
pub enabled: bool,
pub selectable_group: bool,
pub checked: Option<bool>,
pub selected: Option<bool>,
pub value: Option<String>,
pub heading: bool,
pub live_region: Option<LiveRegion>,
pub state_description: Option<String>,
pub traversal_index: Option<f32>,
pub is_traversal_group: bool,
pub hidden: bool,
pub collection_rows: Option<usize>,
pub collection_columns: Option<usize>,
pub row_index: Option<usize>,
pub column_index: Option<usize>,
pub progress: Option<ProgressRangeInfo>,
pub error: Option<String>,
pub expanded: Option<bool>,
pub scrollable: bool,
pub can_expand: bool,
pub can_collapse: bool,
pub can_dismiss: bool,
pub test_tag: Option<String>,
}Expand description
Flattened semantics node produced by layout_and_paint.
This is the source of truth for accessibility backends: it contains the resolved screen rect, role, label, and focus/enabled state.
The platform runner should convert this into OS‑specific accessibility trees (when implemented) (AT‑SPI on Linux, TalkBack on Android, etc.).
Fields§
§id: u64Stable id, shared with the associated HitRegion / ViewId.
parent: Option<u64>None means direct child of the window root.
role: Role§label: Option<String>§rect: Rect§focused: bool§enabled: bool§selectable_group: boolMarks this node as a collection of selectable children (e.g., Tabs).
checked: Option<bool>§selected: Option<bool>§value: Option<String>§heading: bool§live_region: Option<LiveRegion>§state_description: Option<String>§traversal_index: Option<f32>§is_traversal_group: bool§collection_rows: Option<usize>§collection_columns: Option<usize>§row_index: Option<usize>§column_index: Option<usize>§progress: Option<ProgressRangeInfo>§error: Option<String>§expanded: Option<bool>§scrollable: bool§can_expand: bool§can_collapse: bool§can_dismiss: bool§test_tag: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Forget for SemNode
impl Freeze for SemNode
impl Move for SemNode
impl RefUnwindSafe for SemNode
impl Send for SemNode
impl Sync for SemNode
impl Unpin for SemNode
impl UnsafeUnpin for SemNode
impl UnwindSafe for SemNode
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