pub struct AccessNode {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
pub access: Access,
pub model: Option<String>,
}Expand description
One element exposed to assistive technology, with the geometry it ended up occupying. Emitted in document order, and only for nodes whose role is meaningful, a plain layout box contributes nothing.
Flat rather than nested: the shell publishes these as children of the window, which is enough for a screen reader to enumerate and hit-test the UI. Nesting (landmarks, grouping) can layer on later without changing what is collected.
Fields§
§x: f32§y: f32§width: f32§height: f32§access: Access§model: Option<String>r-model, when this element is an input, lets the shell match it against
the focused model and report focus to the platform.
Trait Implementations§
Source§impl Clone for AccessNode
impl Clone for AccessNode
Source§fn clone(&self) -> AccessNode
fn clone(&self) -> AccessNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AccessNode
impl RefUnwindSafe for AccessNode
impl Send for AccessNode
impl Sync for AccessNode
impl Unpin for AccessNode
impl UnsafeUnpin for AccessNode
impl UnwindSafe for AccessNode
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