pub enum WidgetRole {
Show 30 variants
Window,
Group,
Button,
Label,
TextInput,
TableRow,
TableCell,
ScrollView,
Image,
Unknown,
Checkbox,
Slider,
ProgressBar,
Tab,
TabPanel,
Menu,
MenuItem,
Dialog,
Alert,
Tooltip,
Tree,
TreeItem,
ListItem,
Link,
ColumnHeader,
Banner,
Navigation,
Main,
Complementary,
ContentInfo,
}Expand description
The accessibility role of an OxiUI widget node.
Maps semantic OxiUI widget kinds to their closest ARIA / AccessKit
Role equivalents.
Variants§
Window
A top-level application window.
Group
A generic container group (e.g. a panel or box layout).
Button
A clickable button.
Label
A read-only text label.
TextInput
An editable text input field.
TableRow
A table row (used by oxiui-table).
TableCell
A single table cell.
ScrollView
A scrollable view container.
Image
An image widget.
Unknown
Any widget whose role is not mapped.
Checkbox
A checkbox control (two or three states).
Slider
A slider for selecting a numeric value within a range.
ProgressBar
A progress bar or loading indicator.
Tab
A tab button within a tab strip.
TabPanel
The content panel associated with a Tab.
Menu
A pop-up or drop-down menu container.
MenuItem
A single item inside a Menu.
Dialog
A modal dialog.
Alert
An alert or status message.
Tooltip
A tooltip associated with another widget.
Tree
A hierarchical tree container.
TreeItem
A single item inside a Tree.
ListItem
A list item (e.g. an <li> equivalent).
Link
A hyperlink.
ColumnHeader
A column header cell (e.g. <th scope="col">).
Banner
The site-wide banner / site header.
A navigation landmark (nav menu).
Main
The primary main content of the page.
Complementary
Complementary content (e.g. a sidebar).
ContentInfo
The content info / site footer.
Trait Implementations§
Source§impl Clone for WidgetRole
impl Clone for WidgetRole
Source§fn clone(&self) -> WidgetRole
fn clone(&self) -> WidgetRole
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WidgetRole
Source§impl Debug for WidgetRole
impl Debug for WidgetRole
Source§impl Display for WidgetRole
impl Display for WidgetRole
impl Eq for WidgetRole
Source§impl From<WidgetRole> for Role
impl From<WidgetRole> for Role
Source§fn from(r: WidgetRole) -> Role
fn from(r: WidgetRole) -> Role
Source§impl PartialEq for WidgetRole
impl PartialEq for WidgetRole
Source§fn eq(&self, other: &WidgetRole) -> bool
fn eq(&self, other: &WidgetRole) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WidgetRole
Auto Trait Implementations§
impl Freeze for WidgetRole
impl RefUnwindSafe for WidgetRole
impl Send for WidgetRole
impl Sync for WidgetRole
impl Unpin for WidgetRole
impl UnsafeUnpin for WidgetRole
impl UnwindSafe for WidgetRole
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more