Enumeration

GdkEventType

Declaration

enum Gdk.EventType

Description [src]

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.

Members

GDK_NOTHING

A special code to indicate a null event.

  • Value: -1
  • Available since: 3.0
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.

  • Value: 0
  • Available since: 3.0
GDK_DESTROY

The window has been destroyed.

  • Value: 1
  • Available since: 3.0
GDK_EXPOSE

All or part of the window has become visible and needs to be redrawn.

  • Value: 2
  • Available since: 3.0
GDK_MOTION_NOTIFY

The pointer (usually a mouse) has moved.

  • Value: 3
  • Available since: 3.0
GDK_BUTTON_PRESS

A mouse button has been pressed.

  • Value: 4
  • Available since: 3.0
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.

  • Value: 5
  • Available since: 3.0
GDK_DOUBLE_BUTTON_PRESS

Alias for GDK_2BUTTON_PRESS, added in 3.6.

  • Value: 5
  • Available since: 3.0
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.

  • Value: 6
  • Available since: 3.0
GDK_TRIPLE_BUTTON_PRESS

Alias for GDK_3BUTTON_PRESS, added in 3.6.

  • Value: 6
  • Available since: 3.0
GDK_BUTTON_RELEASE

A mouse button has been released.

  • Value: 7
  • Available since: 3.0
GDK_KEY_PRESS

A key has been pressed.

  • Value: 8
  • Available since: 3.0
GDK_KEY_RELEASE

A key has been released.

  • Value: 9
  • Available since: 3.0
GDK_ENTER_NOTIFY

The pointer has entered the window.

  • Value: 10
  • Available since: 3.0
GDK_LEAVE_NOTIFY

The pointer has left the window.

  • Value: 11
  • Available since: 3.0
GDK_FOCUS_CHANGE

The keyboard focus has entered or left the window.

  • Value: 12
  • Available since: 3.0
GDK_CONFIGURE

The size, position or stacking order of the window has changed. Note that GTK+ discards these events for GDK_WINDOW_CHILD windows.

  • Value: 13
  • Available since: 3.0
GDK_MAP

The window has been mapped.

  • Value: 14
  • Available since: 3.0
GDK_UNMAP

The window has been unmapped.

  • Value: 15
  • Available since: 3.0
GDK_PROPERTY_NOTIFY

A property on the window has been changed or deleted.

  • Value: 16
  • Available since: 3.0
GDK_SELECTION_CLEAR

The application has lost ownership of a selection.

  • Value: 17
  • Available since: 3.0
GDK_SELECTION_REQUEST

Another application has requested a selection.

  • Value: 18
  • Available since: 3.0
GDK_SELECTION_NOTIFY

A selection has been received.

  • Value: 19
  • Available since: 3.0
GDK_PROXIMITY_IN

An input device has moved into contact with a sensing surface (e.g. a touchscreen or graphics tablet).

  • Value: 20
  • Available since: 3.0
GDK_PROXIMITY_OUT

An input device has moved out of contact with a sensing surface.

  • Value: 21
  • Available since: 3.0
GDK_DRAG_ENTER

The mouse has entered the window while a drag is in progress.

  • Value: 22
  • Available since: 3.0
GDK_DRAG_LEAVE

The mouse has left the window while a drag is in progress.

  • Value: 23
  • Available since: 3.0
GDK_DRAG_MOTION

The mouse has moved in the window while a drag is in progress.

  • Value: 24
  • Available since: 3.0
GDK_DRAG_STATUS

The status of the drag operation initiated by the window has changed.

  • Value: 25
  • Available since: 3.0
GDK_DROP_START

A drop operation onto the window has started.

  • Value: 26
  • Available since: 3.0
GDK_DROP_FINISHED

The drop operation initiated by the window has completed.

  • Value: 27
  • Available since: 3.0
GDK_CLIENT_EVENT

A message has been received from another application.

  • Value: 28
  • Available since: 3.0
GDK_VISIBILITY_NOTIFY

The window visibility status has changed.

  • Value: 29
  • Available since: 3.0
GDK_SCROLL

The scroll wheel was turned.

  • Value: 31
  • Available since: 3.0
GDK_WINDOW_STATE

The state of a window has changed. See GdkWindowState for the possible window states.

  • Value: 32
  • Available since: 3.0
GDK_SETTING

A setting has been modified.

  • Value: 33
  • Available since: 3.0
GDK_OWNER_CHANGE

The owner of a selection has changed. This event type was added in 2.6.

  • Value: 34
  • Available since: 3.0
GDK_GRAB_BROKEN

A pointer or keyboard grab was broken. This event type was added in 2.8.

  • Value: 35
  • Available since: 3.0
GDK_DAMAGE

The content of the window has been changed. This event type was added in 2.14.

  • Value: 36
  • Available since: 3.0
GDK_TOUCH_BEGIN

A new touch event sequence has just started. This event type was added in 3.4.

  • Value: 37
  • Available since: 3.0
GDK_TOUCH_UPDATE

A touch event sequence has been updated. This event type was added in 3.4.

  • Value: 38
  • Available since: 3.0
GDK_TOUCH_END

A touch event sequence has finished. This event type was added in 3.4.

  • Value: 39
  • Available since: 3.0
GDK_TOUCH_CANCEL

A touch event sequence has been canceled. This event type was added in 3.4.

  • Value: 40
  • Available since: 3.0
GDK_TOUCHPAD_SWIPE

A touchpad swipe gesture event, the current state is determined by its phase field. This event type was added in 3.18.

  • Value: 41
  • Available since: 3.0
GDK_TOUCHPAD_PINCH

A touchpad pinch gesture event, the current state is determined by its phase field. This event type was added in 3.18.

  • Value: 42
  • Available since: 3.0
GDK_PAD_BUTTON_PRESS

A tablet pad button press event. This event type was added in 3.22.

  • Value: 43
  • Available since: 3.0
GDK_PAD_BUTTON_RELEASE

A tablet pad button release event. This event type was added in 3.22.

  • Value: 44
  • Available since: 3.0
GDK_PAD_RING

A tablet pad axis event from a “ring”. This event type was added in 3.22.

  • Value: 45
  • Available since: 3.0
GDK_PAD_STRIP

A tablet pad axis event from a “strip”. This event type was added in 3.22.

  • Value: 46
  • Available since: 3.0
GDK_PAD_GROUP_MODE

A tablet pad group mode change. This event type was added in 3.22.

  • Value: 47
  • Available since: 3.0
GDK_EVENT_LAST

Marks the end of the GdkEventType enumeration. Added in 2.18.

  • Value: 48
  • Available since: 3.0