Enum i_slint_core::items::AccessibleRole
source · [−]#[repr(C)]
pub enum AccessibleRole {
none,
button,
checkbox,
combobox,
slider,
spinbox,
tab,
text,
}
Expand description
This enum represents the different values for the accessible-role
property, used to describe the
role of an element in the context of assistive technology such as screen readers.
Variants
none
The element is not accessible.
button
The element is a Button or behaves like one.
checkbox
The element is a CheckBox or behaves like one.
combobox
The element is a ComboBox or behaves like one.
slider
The element is a Slider or behaves like one.
spinbox
The element is a SpinBox or behaves like one.
tab
The element is a Tab or behaves like one.
text
The role for a Text element. It is automatically applied.
Trait Implementations
sourceimpl Clone for AccessibleRole
impl Clone for AccessibleRole
sourcefn clone(&self) -> AccessibleRole
fn clone(&self) -> AccessibleRole
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccessibleRole
impl Debug for AccessibleRole
sourceimpl Default for AccessibleRole
impl Default for AccessibleRole
sourceimpl Display for AccessibleRole
impl Display for AccessibleRole
sourceimpl FromStr for AccessibleRole
impl FromStr for AccessibleRole
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl Hash for AccessibleRole
impl Hash for AccessibleRole
sourceimpl PartialEq<AccessibleRole> for AccessibleRole
impl PartialEq<AccessibleRole> for AccessibleRole
sourceimpl TryFrom<&str> for AccessibleRole
impl TryFrom<&str> for AccessibleRole
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl Copy for AccessibleRole
impl Eq for AccessibleRole
impl StructuralEq for AccessibleRole
impl StructuralPartialEq for AccessibleRole
Auto Trait Implementations
impl RefUnwindSafe for AccessibleRole
impl Send for AccessibleRole
impl Sync for AccessibleRole
impl Unpin for AccessibleRole
impl UnwindSafe for AccessibleRole
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more