Enum gtk4_layer_shell::KeyboardMode
source · #[non_exhaustive]pub enum KeyboardMode {
None,
Exclusive,
OnDemand,
EntryNumber,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
This window should not receive keyboard events.
Exclusive
This window should have exclusive focus if it is on the top or overlay layer.
OnDemand
The user should be able to focus and unfocues this window in an implementation defined way. Not supported for protocol version < 4.
EntryNumber
Should not be used except to get the number of entries. (NOTE: may change in future releases as more entries are added)
Trait Implementations§
source§impl Clone for KeyboardMode
impl Clone for KeyboardMode
source§fn clone(&self) -> KeyboardMode
fn clone(&self) -> KeyboardMode
Returns a copy 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 KeyboardMode
impl Debug for KeyboardMode
source§impl Hash for KeyboardMode
impl Hash for KeyboardMode
source§impl Ord for KeyboardMode
impl Ord for KeyboardMode
source§fn cmp(&self, other: &KeyboardMode) -> Ordering
fn cmp(&self, other: &KeyboardMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for KeyboardMode
impl PartialEq for KeyboardMode
source§fn eq(&self, other: &KeyboardMode) -> bool
fn eq(&self, other: &KeyboardMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KeyboardMode
impl PartialOrd for KeyboardMode
source§fn partial_cmp(&self, other: &KeyboardMode) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyboardMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for KeyboardMode
impl Eq for KeyboardMode
impl StructuralPartialEq for KeyboardMode
Auto Trait Implementations§
impl Freeze for KeyboardMode
impl RefUnwindSafe for KeyboardMode
impl Send for KeyboardMode
impl Sync for KeyboardMode
impl Unpin for KeyboardMode
impl UnwindSafe for KeyboardMode
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)