pub enum AccessibleRole {
Show 26 variants
Window,
Container,
Dialog,
Alert,
Label,
Button,
CheckBox,
RadioButton,
Slider,
SpinBox,
ProgressBar,
Separator,
Group,
TabList,
Image,
DatePicker,
Link,
TextInput,
TextArea,
ComboBox,
List,
Tree,
Table,
SplitPane,
Canvas,
Toolbar,
}Expand description
Portable accessibility role derived from a widget kind.
Variants§
Window
Container
Dialog
Alert
Label
Button
CheckBox
RadioButton
Slider
SpinBox
ProgressBar
Separator
Group
TabList
Image
DatePicker
Link
TextInput
TextArea
ComboBox
List
Tree
Table
SplitPane
Canvas
Toolbar
Implementations§
Source§impl AccessibleRole
impl AccessibleRole
Sourcepub fn for_kind(kind: WidgetKind) -> Self
pub fn for_kind(kind: WidgetKind) -> Self
Maps a widget kind to its portable role.
The match is exhaustive on purpose: adding a WidgetKind fails to
compile until its role has been chosen.
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Stable lowercase identifier used by tests, diagnostics, and evidence dumps. Never localized.
Sourcepub fn default_actions(self) -> &'static [AccessibleAction]
pub fn default_actions(self) -> &'static [AccessibleAction]
Actions assistive technology can invoke on this role.
Trait Implementations§
Source§impl Clone for AccessibleRole
impl Clone for AccessibleRole
impl Copy for AccessibleRole
Source§impl Debug for AccessibleRole
impl Debug for AccessibleRole
impl Eq for AccessibleRole
Source§impl Hash for AccessibleRole
impl Hash for AccessibleRole
Source§impl PartialEq for AccessibleRole
impl PartialEq for AccessibleRole
impl StructuralPartialEq for AccessibleRole
Auto Trait Implementations§
impl Forget for AccessibleRole
impl Freeze for AccessibleRole
impl Move for AccessibleRole
impl RefUnwindSafe for AccessibleRole
impl Send for AccessibleRole
impl Sync for AccessibleRole
impl Unpin for AccessibleRole
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more