Enum gtk_layer_shell::KeyboardMode
source · [−]#[non_exhaustive]
pub enum KeyboardMode {
None,
Exclusive,
OnDemand,
EntryNumber,
// some variants omitted
}
Expand description
GTK_LAYER_SHELL_KEYBOARD_MODE_NONE: This window should not receive keyboard events. GTK_LAYER_SHELL_KEYBOARD_MODE_EXCLUSIVE: This window should have exclusive focus if it is on the top or overlay layer. GTK_LAYER_SHELL_KEYBOARD_MODE_ON_DEMAND: The user should be able to focus and unfocues this window in an implementation defined way. Not supported for protocol version < 4. GTK_LAYER_SHELL_KEYBOARD_MODE_ENTRY_NUMBER: Should not be used except to get the number of entries. (NOTE: may change in future releases as more entries are added)
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
Exclusive
OnDemand
EntryNumber
Trait Implementations
sourceimpl Clone for KeyboardMode
impl Clone for KeyboardMode
sourcefn clone(&self) -> KeyboardMode
fn clone(&self) -> KeyboardMode
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KeyboardMode
impl Debug for KeyboardMode
sourceimpl Display for KeyboardMode
impl Display for KeyboardMode
sourceimpl Hash for KeyboardMode
impl Hash for KeyboardMode
sourceimpl Ord for KeyboardMode
impl Ord for KeyboardMode
sourcefn cmp(&self, other: &KeyboardMode) -> Ordering
fn cmp(&self, other: &KeyboardMode) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<KeyboardMode> for KeyboardMode
impl PartialEq<KeyboardMode> for KeyboardMode
sourcefn eq(&self, other: &KeyboardMode) -> bool
fn eq(&self, other: &KeyboardMode) -> bool
sourceimpl PartialOrd<KeyboardMode> for KeyboardMode
impl PartialOrd<KeyboardMode> for KeyboardMode
sourcefn partial_cmp(&self, other: &KeyboardMode) -> Option<Ordering>
fn partial_cmp(&self, other: &KeyboardMode) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 StructuralEq for KeyboardMode
impl StructuralPartialEq for KeyboardMode
Auto Trait Implementations
impl RefUnwindSafe for KeyboardMode
impl Send for KeyboardMode
impl Sync for KeyboardMode
impl Unpin for KeyboardMode
impl UnwindSafe for KeyboardMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more