A set of bit-flags to indicate which events a window is to receive. Most of these masks map onto one or more of the GdkEventType event types above.
See the [input handling overview][chap-input-handling] for details of [event masks][event-masks] and [event propagation][event-propagation].
GDK_POINTER_MOTION_HINT_MASK is deprecated. It is a special mask to reduce the number of GDK_MOTION_NOTIFY events received. When using GDK_POINTER_MOTION_HINT_MASK, fewer GDK_MOTION_NOTIFY events will be sent, some of which are marked as a hint (the is_hint member is TRUE). To receive more motion events after a motion hint event, the application needs to asks for more, by calling Event.requestMotions.
Since GTK 3.8, motion events are already compressed by default, independent of this mechanism. This compression can be disabled with Window.setEventCompression. See the documentation of that function for details.
If GDK_TOUCH_MASK is enabled, the window will receive touch events from touch-enabled devices. Those will come as sequences of GdkEventTouch with type GDK_TOUCH_UPDATE, enclosed by two events with type GDK_TOUCH_BEGIN and GDK_TOUCH_END (or GDK_TOUCH_CANCEL). Event.getEventSequence returns the event sequence for these events, so different sequences may be distinguished.
receive expose events
receive all pointer motion events
deprecated. see the explanation above
receive pointer motion events while any button is pressed
receive pointer motion events while 1 button is pressed
receive pointer motion events while 2 button is pressed
receive pointer motion events while 3 button is pressed
receive button press events
receive button release events
receive key press events
receive key release events
receive window enter events
receive window leave events
receive focus change events
receive events about window configuration change
receive property change events
receive visibility change events
receive proximity in events
receive proximity out events
receive events about window configuration changes of child windows
receive scroll events
receive touch events. Since 3.4
receive smooth scrolling events. Since 3.4
receive touchpad gesture events. Since 3.18
receive tablet pad events. Since 3.22
the combination of all the above event masks.