pub struct SemanticsFlags {
pub checked: Option<bool>,
pub pressed: Option<bool>,
pub expanded: Option<bool>,
pub disabled: Option<bool>,
pub readonly: Option<bool>,
pub required: Option<bool>,
}Expand description
Banderas booleanas del nodo accesible. Todas opcionales (None = no aplica,
que es distinto de “aplica pero es false”). Mantienelas en None salvo que el
widget realmente las exponga — los lectores diferencian “no es checkable” de
“es checkable y no checked”.
Fields§
§checked: Option<bool>Estado de un checkbox / radio / toggle button.
pressed: Option<bool>Estado on/off de un botón de toggle (separado de checked porque ARIA
los distingue: un toggle <button> usa aria-pressed, una checkbox
aria-checked).
expanded: Option<bool>Para acordeones, menús, tree-rows que se expanden.
disabled: Option<bool>El control está deshabilitado (no responde a input).
readonly: Option<bool>Sólo lectura (típicamente input de texto que no se edita).
required: Option<bool>Campo requerido (formularios).
Implementations§
Source§impl SemanticsFlags
impl SemanticsFlags
pub const EMPTY: SemanticsFlags
Trait Implementations§
Source§impl Clone for SemanticsFlags
impl Clone for SemanticsFlags
Source§fn clone(&self) -> SemanticsFlags
fn clone(&self) -> SemanticsFlags
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 moreimpl Copy for SemanticsFlags
Source§impl Debug for SemanticsFlags
impl Debug for SemanticsFlags
Source§impl Default for SemanticsFlags
impl Default for SemanticsFlags
Source§fn default() -> SemanticsFlags
fn default() -> SemanticsFlags
Returns the “default value” for a type. Read more
impl Eq for SemanticsFlags
Source§impl PartialEq for SemanticsFlags
impl PartialEq for SemanticsFlags
Source§fn eq(&self, other: &SemanticsFlags) -> bool
fn eq(&self, other: &SemanticsFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SemanticsFlags
Auto Trait Implementations§
impl Freeze for SemanticsFlags
impl RefUnwindSafe for SemanticsFlags
impl Send for SemanticsFlags
impl Sync for SemanticsFlags
impl Unpin for SemanticsFlags
impl UnsafeUnpin for SemanticsFlags
impl UnwindSafe for SemanticsFlags
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<T> Brush for T
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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.