#[non_exhaustive]pub enum Role {
Show 44 variants
Window,
Group,
Label,
Heading,
Button,
Link,
CheckBox,
Switch,
RadioGroup,
RadioButton,
TextInput,
MultilineTextInput,
Slider,
SpinButton,
ComboBox,
ListBox,
ListBoxOption,
Menu,
MenuBar,
MenuItem,
TabList,
Tab,
TabPanel,
Dialog,
Alert,
Status,
Tooltip,
Toolbar,
Grid,
Table,
Row,
Cell,
ColumnHeader,
List,
ListItem,
Image,
ProgressIndicator,
Separator,
ScrollView,
Calendar,
ContentInfo,
Navigation,
Tree,
TreeItem,
}Expand description
What kind of control or content a node is, as assistive technology names it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Window
The application window, the root of the tree.
Group
A container with no meaning of its own.
Label
Static text.
Heading
A heading; see AccessNode::level.
Button
Activates an action.
Link
Navigates somewhere.
CheckBox
A two- or three-state check box.
Switch
An on/off switch.
RadioGroup
A set of radio buttons.
RadioButton
One choice of a radio group.
TextInput
Editable single-line text.
MultilineTextInput
Editable multi-line text.
Slider
A value picked along a track.
SpinButton
A number changed with increment and decrement buttons.
ComboBox
A field that opens a list of choices.
ListBox
A list of selectable options.
ListBoxOption
One option of a list box.
Menu
A popup menu.
MenuBar
A horizontal bar of menus.
MenuItem
One command in a menu.
TabList
A row of tabs.
Tab
One tab.
TabPanel
The content shown for the selected tab.
Dialog
A window over the app; see AccessNode::modal.
Alert
An urgent message.
Status
A status message (toasts).
Tooltip
A rich tooltip.
Toolbar
A row of controls.
Grid
A data grid.
Table
A static table.
Row
A row of a grid or table.
Cell
A cell of a grid or table.
ColumnHeader
A column header of a grid or table.
List
A list of items.
ListItem
One item of a list.
Image
An image; its name is the alternative text.
ProgressIndicator
Progress of a task.
Separator
A visual divider.
ScrollView
A region that scrolls.
Calendar
A date grid.
ContentInfo
The band that ends a page: copyright, links, version (a landmark).
A set of links or buttons that move around the app (a landmark).
Tree
A list of items that can open to show more items.
TreeItem
One item of a tree; see AccessNode::level.
Implementations§
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
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,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.