#[non_exhaustive]pub enum Role {
Window,
Group,
Button,
Label,
TextInput,
MultilineTextInput,
ScrollView,
List,
ListItem,
}Expand description
The kind of control a projected node represents.
The set covers the widgets this release projects. A widget without a role here is left out of the projection, and its children attach to the nearest projected ancestor.
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.
Window
The window the tree fills. The backend adds this as the root.
Group
A plain container that groups its children.
Button
A control a press activates.
Label
Static text.
TextInput
A single-line editable text field.
MultilineTextInput
A multi-line editable text field.
ScrollView
A viewport that clips and scrolls its content.
List
A container whose children are list items.
ListItem
One entry of a list.
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Forget for Role
impl Freeze for Role
impl Move 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