pub enum InputRole {
None,
TextSingleLine,
TextMultiLine,
}Expand description
Semantic keyboard-input role of a retained widget.
The role guides focus, IME, and cursor behavior; it does not itself edit text or make an element focusable.
§Examples
use ailloli_ui_runtime::input::InputRole;
assert_eq!(InputRole::default(), InputRole::None);
assert_ne!(InputRole::TextSingleLine, InputRole::TextMultiLine);Variants§
None
No text-input semantics; this is the default.
TextSingleLine
Single-line editable text semantics.
TextMultiLine
Multi-line editable text semantics.
Trait Implementations§
impl Copy for InputRole
impl Eq for InputRole
impl StructuralPartialEq for InputRole
Auto Trait Implementations§
impl Freeze for InputRole
impl RefUnwindSafe for InputRole
impl Send for InputRole
impl Sync for InputRole
impl Unpin for InputRole
impl UnwindSafe for InputRole
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.