a #GdkEventAny
a #GdkEventButton
a #GdkEventConfigure
a #GdkEventCrossing
a #GdkEventDND
a #GdkEventExpose
a #GdkEventFocus
a #GdkEventGrabBroken
a #GdkEventKey
a #GdkEventMotion
a #GdkEventOwnerChange
a #GdkEventPadAxis
a #GdkEventPadButton
a #GdkEventPadGroupMode
a #GdkEventProperty
a #GdkEventProximity
a #GdkEventScroll
a #GdkEventSelection
a #GdkEventSetting
a #GdkEventTouch
a #GdkEventTouchpadPinch
a #GdkEventTouchpadSwipe
the #GdkEventType
a #GdkEventVisibility
a #GdkEventWindowState
A #GdkEvent contains a union of all of the event types, and allows access to the data fields in a number of ways.
The event type is always the first field in all of the event types, and can always be accessed with the following code, no matter what type of event it is:
To access other fields of the event, the pointer to the event can be cast to the appropriate event type, or the union member name can be used. For example if the event type is gdk.types.EventType.ButtonPress then the x coordinate of the button press can be accessed with:
or: