pub struct InputAccessibility { /* private fields */ }Expand description
Accessibility presentation for the editor’s existing keyboard-focus boundary.
Frames and their addon controls keep their own identities. This projection does not create a focus handle or register another text Tab stop. The engine supplies the live value and guards accessibility actions against its current disabled, read-only and masked state.
Implementations§
Source§impl InputAccessibility
impl InputAccessibility
pub fn new(role: Option<Role>) -> Self
pub fn with_label(self, label: Option<SharedString>) -> Self
pub fn with_placeholder(self, placeholder: Option<SharedString>) -> Self
pub fn with_accessibility_id(self, id: Option<SharedString>) -> Self
Sourcepub fn with_value_exposed(self, exposed: bool) -> Self
pub fn with_value_exposed(self, exposed: bool) -> Self
Suppress values for secret content even when the mask is revealed.
pub fn role(&self) -> Option<Role>
pub fn label(&self) -> Option<&SharedString>
pub fn placeholder(&self) -> Option<&SharedString>
pub fn accessibility_id(&self) -> Option<&SharedString>
pub fn value_exposed(&self) -> bool
Trait Implementations§
Source§impl Clone for InputAccessibility
impl Clone for InputAccessibility
Auto Trait Implementations§
impl Freeze for InputAccessibility
impl RefUnwindSafe for InputAccessibility
impl Send for InputAccessibility
impl Sync for InputAccessibility
impl Unpin for InputAccessibility
impl UnsafeUnpin for InputAccessibility
impl UnwindSafe for InputAccessibility
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more