:right-sidebar: True EventType =================================================================== .. currentmodule:: gi.repository.Gdk .. class:: EventType :no-contents-entry: Specifies the type of the event. Fields ------ .. rst-class:: interim-class .. class:: EventType :no-index: .. attribute:: BUTTON_PRESS A mouse button has been pressed. .. attribute:: BUTTON_RELEASE A mouse button has been released. .. attribute:: DELETE The window manager has requested that the toplevel surface be hidden or destroyed, usually when the user clicks on a special icon in the title bar. .. attribute:: DRAG_ENTER The mouse has entered the surface while a drag is in progress. .. attribute:: DRAG_LEAVE The mouse has left the surface while a drag is in progress. .. attribute:: DRAG_MOTION The mouse has moved in the surface while a drag is in progress. .. attribute:: DROP_START A drop operation onto the surface has started. .. attribute:: ENTER_NOTIFY The pointer has entered the surface. .. attribute:: EVENT_LAST Marks the end of the GdkEventType enumeration. .. attribute:: FOCUS_CHANGE The keyboard focus has entered or left the surface. .. attribute:: GRAB_BROKEN A pointer or keyboard grab was broken. .. attribute:: KEY_PRESS A key has been pressed. .. attribute:: KEY_RELEASE A key has been released. .. attribute:: LEAVE_NOTIFY The pointer has left the surface. .. attribute:: MOTION_NOTIFY The pointer (usually a mouse) has moved. .. attribute:: PAD_BUTTON_PRESS A tablet pad button press event. .. attribute:: PAD_BUTTON_RELEASE A tablet pad button release event. .. attribute:: PAD_GROUP_MODE A tablet pad group mode change. .. attribute:: PAD_RING A tablet pad axis event from a "ring". .. attribute:: PAD_STRIP A tablet pad axis event from a "strip". .. attribute:: PROXIMITY_IN An input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet). .. attribute:: PROXIMITY_OUT An input device has moved out of contact with a sensing surface. .. attribute:: SCROLL The scroll wheel was turned .. attribute:: TOUCHPAD_HOLD A touchpad hold gesture event, the current state is determined by its phase field. .. versionadded:: 4.6 .. attribute:: TOUCHPAD_PINCH A touchpad pinch gesture event, the current state is determined by its phase field. .. attribute:: TOUCHPAD_SWIPE A touchpad swipe gesture event, the current state is determined by its phase field. .. attribute:: TOUCH_BEGIN A new touch event sequence has just started. .. attribute:: TOUCH_CANCEL A touch event sequence has been canceled. .. attribute:: TOUCH_END A touch event sequence has finished. .. attribute:: TOUCH_UPDATE A touch event sequence has been updated.