EventMask


Description:

[ CCode ( cprefix = "GDK_" , type_id = "gdk_event_mask_get_type ()" ) ]
[ Flags ]
public enum EventMask

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 EventType event types above.

See the input handling overview for details of event masks and 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 request_motions.

Since GTK 3.8, motion events are already compressed by default, independent of this mechanism. This compression can be disabled with set_event_compression. 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 EventTouch with type gdk_touch_update , enclosed by two events with type gdk_touch_begin and gdk_touch_end (or gdk_touch_cancel). get_event_sequence returns the event sequence for these events, so different sequences may be distinguished.


Namespace: Gdk
Package: gdk-3.0

Content:

Enum values: