GdkEventType

Specifies the type of the event. Do not confuse these events with the signals that GTK+ widgets emit. Although many of these events result in corresponding signals being emitted, the events are often transformed or filtered along the way. In some language bindings, the values GDK_2BUTTON_PRESS and GDK_3BUTTON_PRESS would translate into something syntactically invalid (eg Gdk.EventType.2ButtonPress, where a symbol is not allowed to start with a number). In that case, the aliases GDK_DOUBLE_BUTTON_PRESS and GDK_TRIPLE_BUTTON_PRESS can be used instead. GDK_NOTHING a special code to indicate a null event. GDK_DELETE the window manager has requested that the toplevel window be hidden or destroyed, usually when the user clicks on a special icon in the title bar. GDK_DESTROY the window has been destroyed. GDK_EXPOSE all or part of the window has become visible and needs to be redrawn. GDK_MOTION_NOTIFY the pointer (usually a mouse) has moved. GDK_BUTTON_PRESS a mouse button has been pressed. GDK_2BUTTON_PRESS a mouse button has been double-clicked (clicked twice within a short period of time). Note that each click also generates a GDK_BUTTON_PRESS event. GDK_DOUBLE_BUTTON_PRESS alias for GDK_2BUTTON_PRESS, added in 3.6. GDK_3BUTTON_PRESS a mouse button has been clicked 3 times in a short period of time. Note that each click also generates a GDK_BUTTON_PRESS event. GDK_TRIPLE_BUTTON_PRESS alias for GDK_3BUTTON_PRESS, added in 3.6. GDK_BUTTON_RELEASE a mouse button has been released. GDK_KEY_PRESS a key has been pressed. GDK_KEY_RELEASE a key has been released. GDK_ENTER_NOTIFY the pointer has entered the window. GDK_LEAVE_NOTIFY the pointer has left the window. GDK_FOCUS_CHANGE the keyboard focus has entered or left the window. GDK_CONFIGURE the size, position or stacking order of the window has changed. Note that GTK+ discards these events for GDK_WINDOW_CHILD windows. GDK_MAP the window has been mapped. GDK_UNMAP the window has been unmapped. GDK_PROPERTY_NOTIFY a property on the window has been changed or deleted. GDK_SELECTION_CLEAR the application has lost ownership of a selection. GDK_SELECTION_REQUEST another application has requested a selection. GDK_SELECTION_NOTIFY a selection has been received. GDK_PROXIMITY_IN an input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet). GDK_PROXIMITY_OUT an input device has moved out of contact with a sensing surface. GDK_DRAG_ENTER the mouse has entered the window while a drag is in progress. GDK_DRAG_LEAVE the mouse has left the window while a drag is in progress. GDK_DRAG_MOTION the mouse has moved in the window while a drag is in progress. GDK_DRAG_STATUS the status of the drag operation initiated by the window has changed. GDK_DROP_START a drop operation onto the window has started. GDK_DROP_FINISHED the drop operation initiated by the window has completed. GDK_CLIENT_EVENT a message has been received from another application. GDK_VISIBILITY_NOTIFY the window visibility status has changed. GDK_SCROLL the scroll wheel was turned GDK_WINDOW_STATE the state of a window has changed. See GdkWindowState for the possible window states GDK_SETTING a setting has been modified. GDK_OWNER_CHANGE the owner of a selection has changed. This event type was added in 2.6 GDK_GRAB_BROKEN a pointer or keyboard grab was broken. This event type was added in 2.8. GDK_DAMAGE the content of the window has been changed. This event type was added in 2.14. GDK_TOUCH_BEGIN A new touch event sequence has just started. This event type was added in 3.4. GDK_TOUCH_UPDATE A touch event sequence has been updated. This event type was added in 3.4. GDK_TOUCH_END A touch event sequence has finished. This event type was added in 3.4. GDK_TOUCH_CANCEL A touch event sequence has been canceled. This event type was added in 3.4. GDK_EVENT_LAST marks the end of the GdkEventType enumeration. Added in 2.18

Values

ValueMeaning
NOTHING-1
DELETE0
DESTROY1
EXPOSE2
MOTION_NOTIFY3
BUTTON_PRESS4
DOUBLE_BUTTON_PRESS5
TRIPLE_BUTTON_PRESS6
BUTTON_RELEASE7
KEY_PRESS8
KEY_RELEASE9
ENTER_NOTIFY10
LEAVE_NOTIFY11
FOCUS_CHANGE12
CONFIGURE13
MAP14
UNMAP15
PROPERTY_NOTIFY16
SELECTION_CLEAR17
SELECTION_REQUEST18
SELECTION_NOTIFY19
PROXIMITY_IN20
PROXIMITY_OUT21
DRAG_ENTER22
DRAG_LEAVE23
DRAG_MOTION24
DRAG_STATUS25
DROP_START26
DROP_FINISHED27
CLIENT_EVENT28
VISIBILITY_NOTIFY29
SCROLL31
WINDOW_STATE32
SETTING33
OWNER_CHANGE34
GRAB_BROKEN35
DAMAGE36
TOUCH_BEGIN37
TOUCH_UPDATE38
TOUCH_END39
TOUCH_CANCEL40
EVENT_LAST

Meta