#[non_exhaustive]#[repr(u32)]pub enum AccessibleRole {
Show 16 variants
None = 0,
Button = 1,
Checkbox = 2,
Combobox = 3,
List = 4,
Slider = 5,
Spinbox = 6,
Tab = 7,
TabList = 8,
Text = 9,
Table = 10,
Tree = 11,
ProgressIndicator = 12,
TextInput = 13,
Switch = 14,
ListItem = 15,
}
Expand description
This enum represents the different values for the accessible-role
property, used to describe the
role of an element in the context of assistive technology such as screen readers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None = 0
The element isn’t accessible.
Button = 1
The element is a Button
or behaves like one.
Checkbox = 2
The element is a CheckBox
or behaves like one.
Combobox = 3
The element is a ComboBox
or behaves like one.
List = 4
The element is a ListView
or behaves like one.
Slider = 5
The element is a Slider
or behaves like one.
Spinbox = 6
The element is a SpinBox
or behaves like one.
Tab = 7
The element is a Tab
or behaves like one.
TabList = 8
The element is similar to the tab bar in a TabWidget
.
Text = 9
The role for a Text
element. It’s automatically applied.
Table = 10
The role for a TableView
or behaves like one.
Tree = 11
The role for a TreeView or behaves like one. (Not provided yet)
ProgressIndicator = 12
The element is a ProgressIndicator
or behaves like one.
TextInput = 13
The role for widget with editable text such as a
LineEdit
or a TextEdit
Switch = 14
The element is a Switch
or behaves like one.
ListItem = 15
The element is an item in a ListView
.
Trait Implementations§
Source§impl Clone for AccessibleRole
impl Clone for AccessibleRole
Source§fn clone(&self) -> AccessibleRole
fn clone(&self) -> AccessibleRole
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AccessibleRole
impl Debug for AccessibleRole
Source§impl Default for AccessibleRole
impl Default for AccessibleRole
Source§fn default() -> AccessibleRole
fn default() -> AccessibleRole
Source§impl Display for AccessibleRole
impl Display for AccessibleRole
Source§impl FromStr for AccessibleRole
impl FromStr for AccessibleRole
Source§type Err = ParseError
type Err = ParseError
Source§fn from_str(s: &str) -> Result<AccessibleRole, <AccessibleRole as FromStr>::Err>
fn from_str(s: &str) -> Result<AccessibleRole, <AccessibleRole as FromStr>::Err>
s
to return a value of this type. Read moreSource§impl Hash for AccessibleRole
impl Hash for AccessibleRole
Source§impl PartialEq for AccessibleRole
impl PartialEq for AccessibleRole
Source§impl TryFrom<&str> for AccessibleRole
impl TryFrom<&str> for AccessibleRole
Source§type Error = ParseError
type Error = ParseError
Source§fn try_from(
s: &str,
) -> Result<AccessibleRole, <AccessibleRole as TryFrom<&str>>::Error>
fn try_from( s: &str, ) -> Result<AccessibleRole, <AccessibleRole as TryFrom<&str>>::Error>
impl Copy for AccessibleRole
impl Eq for AccessibleRole
impl StructuralPartialEq for AccessibleRole
Auto Trait Implementations§
impl Freeze for AccessibleRole
impl RefUnwindSafe for AccessibleRole
impl Send for AccessibleRole
impl Sync for AccessibleRole
impl Unpin for AccessibleRole
impl UnwindSafe for AccessibleRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
SharedString
.