Trait vizia::modifiers::AccessibilityModifiers

source ·
pub trait AccessibilityModifiers: Modifiable {
    // Provided methods
    fn role(self, role: Role) -> Self { ... }
    fn name<U>(self, name: impl Res<U>) -> Self
       where U: ToStringLocalized { ... }
    fn default_action_verb(self, action_verb: DefaultActionVerb) -> Self { ... }
    fn live(self, live: Live) -> Self { ... }
    fn hidden<U>(self, hidden: impl Res<U>) -> Self
       where U: Into<bool> { ... }
    fn numeric_value<U>(self, value: impl Res<U>) -> Self
       where U: Into<f64> { ... }
    fn text_value<U>(self, value: impl Res<U>) -> Self
       where U: ToStringLocalized { ... }
}
Expand description

Modifiers for changing the accessibility properties of a view.

Provided Methods§

source

fn role(self, role: Role) -> Self

Sets the accessibility role of the view.

source

fn name<U>(self, name: impl Res<U>) -> Self

Sets the accessibility name of the view.

source

fn default_action_verb(self, action_verb: DefaultActionVerb) -> Self

Sets the accessibility default action for the view.

source

fn live(self, live: Live) -> Self

Sets whether the view should act as an accessibility live region.

source

fn hidden<U>(self, hidden: impl Res<U>) -> Self
where U: Into<bool>,

Sets whether the view should be hidden from accessibility.

source

fn numeric_value<U>(self, value: impl Res<U>) -> Self
where U: Into<f64>,

Sets the accessibility numeric value for the view.

source

fn text_value<U>(self, value: impl Res<U>) -> Self

Sets the accessibility text value for the view.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, V> AccessibilityModifiers for Handle<'a, V>
where V: View,