Enum gdk::ModifierIntent [−][src]
#[non_exhaustive] pub enum ModifierIntent { PrimaryAccelerator, ContextMenu, ExtendSelection, ModifySelection, NoTextInput, ShiftGroup, DefaultModMask, // some variants omitted }
Expand description
This enum is used with Keymap::modifier_mask()
in order to determine what modifiers the
currently used windowing system backend uses for particular
purposes. For example, on X11/Windows, the Control key is used for
invoking menu shortcuts (accelerators), whereas on Apple computers
it’s the Command key (which correspond to ModifierType::CONTROL_MASK
and
ModifierType::MOD2_MASK
, respectively).
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
the primary modifier used to invoke menu accelerators.
the modifier used to invoke context menus. Note that mouse button 3 always triggers context menus. When this modifier is not 0, it additionally triggers context menus when used with mouse button 1.
the modifier used to extend selections
using modifier
-click or modifier
-cursor-key
the modifier used to modify selections, which in most cases means toggling the clicked item into or out of the selection.
when any of these modifiers is pressed, the key event cannot produce a symbol directly. This is meant to be used for input methods, and for use cases like typeahead search.
the modifier that switches between keyboard groups (AltGr on X11/Windows and Option/Alt on OS X).
The set of modifier masks accepted as modifiers in accelerators. Needed because Command is mapped to MOD2 on OSX, which is widely used, but on X11 MOD2 is NumLock and using that for a mod key is problematic at best. Ref: https://bugzilla.gnome.org/show_bug.cgi?id=736125.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for ModifierIntent
impl Send for ModifierIntent
impl Sync for ModifierIntent
impl Unpin for ModifierIntent
impl UnwindSafe for ModifierIntent
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.