pub enum InputModality {
Keyboard,
Pointer,
}Expand description
Last input modality observed for a window.
This is a lightweight policy signal used by component-layer behaviors (e.g. Radix-aligned menus) to distinguish “opened via keyboard” from “opened via pointer”, without requiring every component to explicitly thread an “open reason” flag through its own model.
Variants§
Trait Implementations§
Source§impl Clone for InputModality
impl Clone for InputModality
Source§fn clone(&self) -> InputModality
fn clone(&self) -> InputModality
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputModality
impl Debug for InputModality
Source§impl PartialEq for InputModality
impl PartialEq for InputModality
impl Copy for InputModality
impl Eq for InputModality
impl StructuralPartialEq for InputModality
Auto Trait Implementations§
impl Freeze for InputModality
impl RefUnwindSafe for InputModality
impl Send for InputModality
impl Sync for InputModality
impl Unpin for InputModality
impl UnsafeUnpin for InputModality
impl UnwindSafe for InputModality
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