pub enum SemanticsRole {
Show 33 variants
None,
Tab,
TabBar,
TabPanel,
Dialog,
AlertDialog,
Table,
Cell,
Row,
ColumnHeader,
DragHandle,
SpinButton,
ComboBox,
MenuBar,
Menu,
MenuItem,
MenuItemCheckbox,
MenuItemRadio,
List,
ListItem,
Form,
Tooltip,
LoadingSpinner,
ProgressBar,
HotKey,
RadioGroup,
Status,
Alert,
Complementary,
ContentInfo,
Main,
Navigation,
Region,
}Expand description
An enum to describe the role for a semantics node.
The roles are translated into native accessibility roles in each platform.
Variants§
None
Does not represent any role.
Tab
A tab button.
TabBar
Contains tab buttons.
TabPanel
The main display for a tab.
Dialog
A pop up dialog.
AlertDialog
An alert dialog.
Table
A table structure containing data arranged in rows and columns.
Cell
A cell in a Table that does not contain column or row header
information.
Row
A row of Cells or ColumnHeaders in a
Table.
ColumnHeader
A cell in a Table contains header information for a column.
DragHandle
A control used for dragging across content.
SpinButton
A control to cycle through content on tap.
ComboBox
A input field with a dropdown list box attached.
MenuBar
A presentation of Menu that usually remains visible and is usually
presented horizontally.
Menu
A permanently visible list of controls or a widget that can be made to open and close.
MenuItem
MenuItemCheckbox
MenuItemRadio
List
A container to display multiple ListItems in vertical or horizontal
layout.
ListItem
An item in a List.
Form
An area that represents a form.
Tooltip
A pop up displayed when hovering over a component to provide contextual explanation.
LoadingSpinner
A graphic object that spins to indicate the application is busy.
ProgressBar
A graphic object that shows progress with a numeric number.
HotKey
A keyboard shortcut field that allows the user to enter a combination or sequence of keystrokes.
RadioGroup
A group of radio buttons.
Status
A component to provide advisory information that is not important to justify an
Alert.
Alert
A component to provide important and usually time-sensitive information.
Complementary
A supporting section that relates to the main content.
ContentInfo
A section for a footer, containing identifying information such as copyright information, navigation links and privacy statements.
Main
The primary content of a document.
A region of a web page that contains navigation links.
Region
A section of content sufficiently important but cannot be described by one of the other landmark roles, such as main, contentinfo, complementary, or navigation.
Trait Implementations§
Source§impl Clone for SemanticsRole
impl Clone for SemanticsRole
impl Copy for SemanticsRole
Source§impl Debug for SemanticsRole
impl Debug for SemanticsRole
impl Eq for SemanticsRole
Source§impl Hash for SemanticsRole
impl Hash for SemanticsRole
Source§impl PartialEq for SemanticsRole
impl PartialEq for SemanticsRole
impl StructuralPartialEq for SemanticsRole
Auto Trait Implementations§
impl Forget for SemanticsRole
impl Freeze for SemanticsRole
impl Move for SemanticsRole
impl RefUnwindSafe for SemanticsRole
impl Send for SemanticsRole
impl Sync for SemanticsRole
impl Unpin for SemanticsRole
impl UnsafeUnpin for SemanticsRole
impl UnwindSafe for SemanticsRole
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.