Enum Role

Source
pub enum Role {
Show 36 variants Unknown(String), Generic, Application, Button, Checkbox, HierarchyHorizontal, HierarchyVertical, Image, InputDate, InputTime, InputPassword, InputSlider, Label, Link, List, Menu, MenuBar, MenuItem, Panel, RadioButton, RadioGroup, ScrollArea, ScrollBar, SplitGroup, Splitter, TabGroup, Table, TableCell, TableColumn, TableRow, TextEditMultiline, TextEditSingleline, Toolbar, ValueIndicator, WebView, Window,
}
Expand description

TODO implement Display for this type.

Variants§

§

Unknown(String)

§

Generic

The application doesn’t specify further info.

§

Application

An application, containing zero or more Windows.

§

Button

A clickable button.

§

Checkbox

A button which can be either on or off.

§

HierarchyHorizontal

A tree view with items from left to right.

§

HierarchyVertical

A tree view with items from top to bottom.

§

Image

An image or icon.

§

InputDate

An input field with the date type.

§

InputTime

An input field with the time type.

§

InputPassword

A textual input field with its contents masked.

§

InputSlider

An input field where the user can select a point in a predefined range.

§

Label

Some static text.

A label when clicked performs an action.

§

List

A list of items.

§

Menu

An item in a MenuBar, such as File, Edit, Help.

§

MenuBar

A menu bar (usually horizontal) containing one or more Menus

§

MenuItem

An item in a Menu, such as Open in the File menu.

§

Panel

A (non) visual grouping of elements.

§

RadioButton

A button as the option in a RadioGroup.

§

RadioGroup

An input field with one or more exclusive options, in the form of RadioButtons.

§

ScrollArea

A scrollable panel.

§

ScrollBar

The bar where the scroll depth is shown, usually on the right in a ScrollArea.

§

SplitGroup

A split up grouping of two subgroups, with the division of the total size changeable by a Splitter.

§

Splitter

A divisor of a SplitGroup.

§

TabGroup

A grouping of tabs.

§

Table

The top-level container of a table.

§

TableCell

An individual cell of a table row and column.

§

TableColumn

The horizontal part of a table.

§

TableRow

The vertical part of a table.

§

TextEditMultiline

Text which the user can edit, with multiple lines allowed.

§

TextEditSingleline

Text which the user can edit, without multiple lines.

§

Toolbar

A grouping of buttons with actions.

§

ValueIndicator

A visual indicator of a certain value.

§

WebView

A web page or other web content inside the window.

§

Window

A window.

Trait Implementations§

Source§

impl Clone for Role

Source§

fn clone(&self) -> Role

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Role

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Role

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Role

Source§

fn eq(&self, other: &Role) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for Role

Source§

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 UnwindSafe for Role

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.