pub enum KeyboardOwnership {
Elsewhere,
Owned,
}Expand description
Whether the viewport owns the keyboard this frame.
Separate from PointerOwnership because the two answers differ: a text
field in a side panel can hold the keyboard while the pointer is over the
viewport. Keys, typed text and held-modifier bindings reach the viewport only
under Owned. Modifier state itself is always tracked, so a
shift-drag still pans while a text field has the keyboard.
Variants§
Elsewhere
Something else has the keyboard: a text field, another viewport, another window.
Owned
The viewport has the keyboard.
Trait Implementations§
Source§impl Clone for KeyboardOwnership
impl Clone for KeyboardOwnership
Source§fn clone(&self) -> KeyboardOwnership
fn clone(&self) -> KeyboardOwnership
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for KeyboardOwnership
Source§impl Debug for KeyboardOwnership
impl Debug for KeyboardOwnership
Source§impl Default for KeyboardOwnership
impl Default for KeyboardOwnership
Source§fn default() -> KeyboardOwnership
fn default() -> KeyboardOwnership
Returns the “default value” for a type. Read more
impl Eq for KeyboardOwnership
Source§impl Hash for KeyboardOwnership
impl Hash for KeyboardOwnership
Source§impl PartialEq for KeyboardOwnership
impl PartialEq for KeyboardOwnership
impl StructuralPartialEq for KeyboardOwnership
Auto Trait Implementations§
impl Forget for KeyboardOwnership
impl Freeze for KeyboardOwnership
impl Move for KeyboardOwnership
impl RefUnwindSafe for KeyboardOwnership
impl Send for KeyboardOwnership
impl Sync for KeyboardOwnership
impl Unpin for KeyboardOwnership
impl UnsafeUnpin for KeyboardOwnership
impl UnwindSafe for KeyboardOwnership
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