pub struct Node {
pub id: Id,
pub role: Role,
pub rect: Rect,
pub label: String,
pub value: Option<String>,
pub numeric: Option<Numeric>,
pub toggled: Option<bool>,
pub selected: Option<bool>,
pub expanded: Option<bool>,
pub disabled: bool,
pub focusable: bool,
/* private fields */
}Expand description
One element as assistive technology sees it.
Fields§
§id: IdThe id of the widget. Requests from the screen reader carry it.
role: RoleWhat kind of element it is.
rect: RectBounds in points.
label: StringThe name read out first.
value: Option<String>Text content or a value, read out after the label.
numeric: Option<Numeric>The number of a slider or stepper.
toggled: Option<bool>Whether a checkbox or switch is on.
selected: Option<bool>Whether a tab, segment or menu item is selected.
expanded: Option<bool>Whether a menu or section is open.
disabled: boolThe element cannot be used right now.
focusable: boolSet when the node was registered with Context::focusable.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.