pub struct SemNode {
pub id: u64,
pub parent: Option<u64>,
pub role: Role,
pub label: Option<String>,
pub rect: Rect,
pub focused: bool,
pub enabled: bool,
}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: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for SemNode
impl RefUnwindSafe for SemNode
impl Send for SemNode
impl Sync for SemNode
impl Unpin 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