pub enum Role {
Show 17 variants
Window,
Button,
Link,
CheckBox,
RadioButton,
TextInput,
TextArea,
Slider,
Label,
Heading,
List,
ListItem,
Image,
Container,
ScrollRegion,
Menu,
Switch,
}Expand description
Represents the semantic role of a widget for accessibility and automation. This matches standard Web/ARIA roles but is tailored for Zenthra’s native widgets.
Variants§
Window
A top-level window.
Button
A clickable button.
Link
A navigational link.
CheckBox
A toggleable check box.
RadioButton
A set of mutual exclusive options.
TextInput
A single-line text input.
TextArea
A multi-line text editor.
Slider
A numeric range selector.
Label
Static text content.
Heading
A content heading.
List
A collection of items.
ListItem
An item within a list.
Image
A graphical asset.
Container
A generic layout container (non-semantic by default).
ScrollRegion
A region that can be scrolled.
Menu
A popup or contextual menu.
Switch
A toggle switch.
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.