#[non_exhaustive]#[repr(u32)]pub enum AccessibleRole {
Show 19 variants
None = 0,
Button = 1,
Checkbox = 2,
Combobox = 3,
Groupbox = 4,
Image = 5,
List = 6,
Slider = 7,
Spinbox = 8,
Tab = 9,
TabList = 10,
TabPanel = 11,
Text = 12,
Table = 13,
Tree = 14,
ProgressIndicator = 15,
TextInput = 16,
Switch = 17,
ListItem = 18,
}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.
Groupbox = 4
The element is a GroupBox or behaves like one.
Image = 5
The element is an Image or behaves like one. This is automatically applied to Image elements.
List = 6
The element is a ListView or behaves like one.
Slider = 7
The element is a Slider or behaves like one.
Spinbox = 8
The element is a SpinBox or behaves like one.
Tab = 9
The element is a Tab or behaves like one.
TabList = 10
The element is similar to the tab bar in a TabWidget.
TabPanel = 11
The element is a container for tab content.
Text = 12
The role for a Text element. This is automatically applied to Text elements.
Table = 13
The role for a TableView or behaves like one.
Tree = 14
The role for a TreeView or behaves like one. (Not provided yet)
ProgressIndicator = 15
The element is a ProgressIndicator or behaves like one.
TextInput = 16
The role for widget with editable text such as a LineEdit or a TextEdit.
This is automatically applied to TextInput elements.
Switch = 17
The element is a Switch or behaves like one.
ListItem = 18
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.