Package: gdk

GFlags gdk:modifier-type

Declaration

(gobject:define-gflags "GdkModifierType" modifier-type
  (:export t
   :type-initializer "gdk_modifier_type_get_type")
  #-gtk-4-14
  (:none 0)
  #+gtk-4-14
  (:no-modifier-mask 0)
  (:shift-mask   #.(ash 1 0))
  (:lock-mask    #.(ash 1 1))
  (:control-mask #.(ash 1 2))
  (:alt-mask     #.(ash 1 3))
  (:button1-mask #.(ash 1 8))
  (:button2-mask #.(ash 1 9))
  (:button3-mask #.(ash 1 10))
  (:button4-mask #.(ash 1 11))
  (:button5-mask #.(ash 1 12))
  (:super-mask   #.(ash 1 26))
  (:hyper-mask   #.(ash 1 27))
  (:meta-mask    #.(ash 1 28)))  

Values

:no-modifier-mask
No modifier key. Since 4.14
:shift-mask
The Shift key.
:lock-mask
The Lock key, depending on the modifier mapping of the X server this may either be the CapsLock or ShiftLock key.
:control-mask
The Control key.
:alt-mask
The fourth modifier key. It depends on the modifier mapping of the X server which key is interpreted as this modifier, but normally it is the Alt key.
:button1-mask
The first mouse button.
:button2-mask
The second mouse button.
:button3-mask
The third mouse button.
:button4-mask
The fourth mouse button.
:button5-mask
The fifth mouse button.
:super-mask
The Super modifier.
:hyper-mask
The Hyper modifier.
:meta-mask
The Meta modifier.

Details

Flags to indicate the state of modifier keys and mouse buttons in events. Typical modifier keys are Shift, Control, Meta, Super, Hyper, Alt, Compose, Apple, CapsLock or ShiftLock keys.

Note that GDK may add internal values to events which include values outside this enumeration. Your code should preserve and ignore them. You can use the gdk:+modifier-mask+ value to remove all private values.
 

See also

2024-5-25