Flags
Value | Symbolic name | Description |
| 0 | GDK_EXPOSURE_MASK | Setting this flag allows the GDK_EXPOSE event to be captured by a widget's GdkWindow. This causes the widget to emit the "expose-event" signal. |
| 1 | GDK_POINTER_MOTION_MASK | Setting this flag allows the GDK_MOTION_NOTIFY event to be captured by a widget's GdkWindow. This makes the widget emit the "motion-notify-event" signal. |
| 2 | GDK_POINTER_MOTION_HINT_MASK | This is a special flag allowing a less intensive version of the GDK_POINTER_MOTION_MASK functionality. This can be necessary to avoid a time-lag in processing caused by the sheer volume of GDK_MOTION_NOTIFY events produced by mouse movement, each once of which causes a "motion-notify-event" signal to be fired by the widget. |
| 3 | GDK_BUTTON_MOTION_MASK | Allows the GDK_MOTION_NOTIFY events to be picked up by the widget's GdkWindow only while a mouse-button (any) is pressed down. This is a way of limiting the widget's "motion-notify-event" signal emissions. |
| 4 | GDK_BUTTON1_MOTION_MASK | Allows the GDK_MOTION_NOTIFY events to be picked up by the widget's GdkWindow only while mouse-button 1 is pressed down - usually that's the left button. This is a way of limiting the widget's "motion-notify-event" signal emissions. |
| 5 | GDK_BUTTON2_MOTION_MASK | Allows the GDK_MOTION_NOTIFY events to be picked up by the widget's GdkWindow only while mouse-button 2 is pressed down - usually that's the center button, where it exists. This is a way of limiting the widget's "motion-notify-event" signal emissions. |
| 6 | GDK_BUTTON3_MOTION_MASK | Allows the GDK_MOTION_NOTIFY events to be picked up by the widget's GdkWindow only while mouse-button 3 is pressed down - usually that's the right button. This is a way of limiting the widget's "motion-notify-event" signal emissions. |
| 7 | GDK_BUTTON_PRESS_MASK | Setting this flag allows the GDK_BUTTON_PRESS events to be captured by a widget's GdkWindow. This makes the widget emit the "button-press-event" signal. |
| 8 | GDK_BUTTON_RELEASE_MASK | Setting this flag allows the GDK_BUTTON_RELEASE event to be captured by a widget's GdkWindow. This makes the widget emit the "button-release-event" signal. |
| 9 | GDK_KEY_PRESS_MASK | Setting this flag allows the GDK_KEY_PRESS event to be captured by a widget's GdkWindow. This makes the widget emit the "key-press-event" signal. |
| 10 | GDK_KEY_RELEASE_MASK | Setting this flag allows the GDK_KEY_RELEASE event to be captured by a widget's GdkWindow. This makes the widget emit the "key-release-event" signal. |
| 11 | GDK_ENTER_NOTIFY_MASK | Setting this flag allows the GDK_ENTER_NOTIFY event to be captured by a widget's GdkWindow. This causes the widget to emit the "enter-notify-event" signal. |
| 12 | GDK_LEAVE_NOTIFY_MASK | Setting this flag allows the GDK_LEAVE_NOTIFY event to be captured by a widget's GdkWindow. This makes the widget emit the "leave-notify-event" signal. |
| 13 | GDK_FOCUS_CHANGE_MASK | Setting this flag allows the GDK_FOCUS_CHANGE event to be captured by a widget's GdkWindow. This makes the widget emit the "focus-in-event" or "focus-out-event" signal as appropriate. |
| 14 | GDK_STRUCTURE_MASK | This flag is set on all new instances of GdkWindow. It allows map, unmap, destroy and configure events to be captured, causing "map-event", "unmap-event", "destroy-event" and "configure-event" signals to be emitted from all windowed widgets. |
| 15 | GDK_PROPERTY_CHANGE_MASK | Setting this flag allows the GDK_PROPERTY_NOTIFY event to be captured by a widget's GdkWindow. This makes the widget emit the "property-notify-event" signal. |
| 16 | GDK_VISIBILITY_NOTIFY_MASK | Setting this flag allows the GDK_VISIBILITY_NOTIFY event to be captured by a widget's GdkWindow. This causes the widget to emit the "visibility-notify-event" signal. |
| 17 | GDK_PROXIMITY_IN_MASK | Setting this flag allows the GDK_PROXIMITY_IN event to be captured by a widget's GdkWindow. This causes the widget to emit the "proximity-in-event" signal. |
| 18 | GDK_PROXIMITY_OUT_MASK | Setting this flag allows the GDK_PROXIMITY_OUT event to be captured by a widget's GdkWindow. This makes the widget emit the "proximity-out-event" signal. |
| 19 | GDK_SUBSTRUCTURE_MASK | Enables the widget's GdkWindow to capture GDK_STRUCTURE_MASK events on any child windows. |
| 20 | GDK_ALL_EVENTS_MASK | Setting this flag allows any GdkEvent to be captured by a widget's GdkWindow. |