#[non_exhaustive]pub enum Role {
Show 19 variants
Group,
Window,
Label,
Button,
TextInput,
ScrollView,
Splitter,
TabList,
Tab,
TabPanel,
Table,
Row,
ColumnHeader,
Cell,
Image,
MenuBar,
Menu,
MenuItem,
MenuItemCheckBox,
}Expand description
What a widget is to assistive technology.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Group
A container with no meaning of its own (the default).
Window
The window: the tree’s root.
Label
Static text.
Button
Something pressed to act.
TextInput
Editable text.
ScrollView
A region whose content scrolls.
Splitter
A divider that resizes the panes either side of it.
TabList
A row of tabs.
Tab
A tab, which shows its panel when chosen.
TabPanel
The content a tab shows.
Table
Rows of cells under column headers.
Row
A row of a table.
ColumnHeader
A column’s title in a table.
Cell
A cell of a table row.
Image
A picture of data, such as a chart: read by its label.
MenuBar
A row of menu titles.
Menu
A list of commands that pops up.
MenuItem
A command in a menu.
MenuItemCheckBox
A menu command that is on or off (see AccessNode::set_checked).
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§
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