Last chance! 50% off unlimited learning
Sale ends in
gtkWidgetSetEvents
.GdkEventAny
GdkEventAny
to access
these fields. type
GdkEventType
] the type of the event.window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using
xsendevent
).GdkEventKey
type
GdkEventType
] the type of the event (GDK_KEY_PRESS
or GDK_KEY_RELEASE
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using
xsendevent
).time
state
GdkModifierType
.keyval
length
string
.string
GtkIMContext
), so this
field is deprecated and should never be used.
(gdkUnicodeToKeyval
provides a non-deprecated way of getting
an approximate translation for a key.) The string is encoded in the encoding
of the current locale (Note: this for backwards compatibility:
strings in GTK+ and GDK are typically in UTF-8.) and NUL-terminated.
In some cases, the translation of the key code will be a single
NUL byte, in which case looking at length
is necessary to distinguish
it from the an empty translation.hardwareKeycode
group
GdkEventButton
type
field will be one of GDK_BUTTON_PRESS
,
GDK_2BUTTON_PRESS
, GDK_3BUTTON_PRESS
, and GDK_BUTTON_RELEASE
. Double and triple-clicks result in a sequence of events being received.
For double-clicks the order of events will be:
GDK_BUTTON_PRESS
GDK_BUTTON_RELEASE
GDK_BUTTON_PRESS
GDK_2BUTTON_PRESS
GDK_BUTTON_RELEASE
GDK_2BUTTON_PRESS
being
received just after the GDK_BUTTON_PRESS
. Triple-clicks are very similar to double-clicks, except that GDK_3BUTTON_PRESS
is inserted after the third click. The order of the events is:
GDK_BUTTON_PRESS
GDK_BUTTON_RELEASE
GDK_BUTTON_PRESS
GDK_2BUTTON_PRESS
GDK_BUTTON_RELEASE
GDK_BUTTON_PRESS
GDK_3BUTTON_PRESS
GDK_BUTTON_RELEASE
type
GdkEventType
] the type of the event (GDK_BUTTON_PRESS
, GDK_2BUTTON_PRESS
,
GDK_3BUTTON_PRESS
or GDK_BUTTON_RELEASE
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using
xsendevent
).time
x
y
axes
x
, y
translated to the axes of device
, or NULL
if device
is
the mouse.state
GdkModifierType
.button
device
GdkDevice
] the device where the event originated.xRoot
yRoot
GdkEventScroll
type
GdkEventType
] the type of the event (GDK_SCROLL
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using
xsendevent
).time
x
y
state
GdkModifierType
.direction
GdkScrollDirection
] the direction to scroll to (one of GDK_SCROLL_UP
,
GDK_SCROLL_DOWN
, GDK_SCROLL_LEFT
and GDK_SCROLL_RIGHT
).device
GdkDevice
] the device where the event originated.xRoot
yRoot
GdkEventMotion
type
GdkEventType
] the type of the event.window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using
xsendevent
).time
x
y
axes
x
, y
translated to the axes of device
, or NULL
if device
is
the mouse.state
GdkModifierType
.isHint
GDK_POINTER_MOTION_HINT_MASK
value of GdkEventMask
.device
GdkDevice
] the device where the event originated.xRoot
yRoot
GdkEventExpose
type
GdkEventType
] the type of the event (GDK_EXPOSE
or GDK_DAMAGE
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using
xsendevent
).area
GdkRectangle
] bounding box of region
.region
GdkRegion
] the region that needs to be redrawn.count
GDK_EXPOSE
events following this one.
The only use for this is "exposure compression", i.e. handling all contiguous
GDK_EXPOSE
events in one go, though GDK performs some exposure compression
so this is not normally needed.GdkEventVisibility
type
GdkEventType
] the type of the event (GDK_VISIBILITY_NOTIFY
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using
xsendevent
).state
GdkVisibilityState
] the new visibility state (GDK_VISIBILITY_FULLY_OBSCURED
,
GDK_VISIBILITY_PARTIAL
or GDK_VISIBILITY_UNOBSCURED
).GdkEventCrossing
type
GdkEventType
] the type of the event (GDK_ENTER_NOTIFY
or GDK_LEAVE_NOTIFY
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using
xsendevent
).context
GdkDragContext
] the window that was entered or left.time
xRoot
yRoot
GdkEventFocus
type
GdkEventType
] the type of the event (GDK_FOCUS_CHANGE
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).in
TRUE
if the window has gained the keyboard focus, FALSE
if it has lost
the focus.GdkEventConfigure
type
GdkEventType
] the type of the event (GDK_CONFIGURE
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).x
y
width
height
GdkEventProperty
type
GdkEventType
] the type of the event (GDK_PROPERTY_NOTIFY
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).atom
GdkAtom
] the property that was changed.time
state
GDK_PROPERTY_NEW_VALUE
) or
deleted (GDK_PROPERTY_DELETE
).GdkEventSelection
type
GdkEventType
] the type of the event (GDK_SELECTION_CLEAR
, GDK_SELECTION_NOTIFY
or
GDK_SELECTION_REQUEST
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).selection
GdkAtom
] the selection.target
GdkAtom
] the target to which the selection should be converted.property
GdkAtom
] the property in which to place the result of the conversion.time
requestor
GdkNativeWindow
] the native window on which to place property
.GdkEventDND
type
GdkEventType
] the type of the event (GDK_DRAG_ENTER
, GDK_DRAG_LEAVE
,
GDK_DRAG_MOTION
, GDK_DRAG_STATUS
, GDK_DROP_START
or GDK_DROP_FINISHED
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).context
GdkDragContext
] the GdkDragContext
for the current DND operation.time
xRoot
GDK_DRAG_MOTION
and GDK_DROP_START
.yRoot
GDK_DRAG_MOTION
and GDK_DROP_START
.GdkEventProximity
type
GdkEventType
] the type of the event (GDK_PROXIMITY_IN
or GDK_PROXIMITY_OUT
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).time
device
GdkDevice
] the device where the event originated.GdkEventClient
type
GdkEventType
] the type of the event (GDK_CLIENT_EVENT
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).messageType
GdkAtom
] the type of the message, which can be defined by the
application.GdkEventNoExpose
GdkDrawable
being copied, with gdkDrawDrawable
or gdkWindowCopyArea()
, was completely available. FIXME: add more here. type
GdkEventType
] the type of the event (GDK_NO_EXPOSE
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).GdkEventWindowState
type
GdkEventType
] the type of the event (GDK_WINDOW_STATE
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).changedMask
GdkWindowState
] mask specifying what flags have changed.newWindowState
GdkWindowState
] the new window state, a combination of GdkWindowState
bits.GdkEventSetting
type
GdkEventType
] the type of the event (GDK_SETTING
).window
GdkWindow
] the window which received the event.sendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).action
GdkSettingAction
] what happened to the setting (GDK_SETTING_ACTION_NEW
,
GDK_SETTING_ACTION_CHANGED
or GDK_SETTING_ACTION_DELETED
).name
GdkEventOwnerChange
type
GdkEventType
] the type of the event (GDK_OWNER_CHANGE
).window
GdkWindow
] the window which received the eventsendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).owner
GdkNativeWindow
] the new owner of the selectionreason
GdkOwnerChange
] the reason for the ownership change as a GdkOwnerChange
valueselection
GdkAtom
] the atom identifying the selectiontime
selectionTime
GdkEventGrabBroken
GdkEventGrabBroken
events.
Since 2.8 type
GdkEventType
] the type of the event (GDK_GRAB_BROKEN
)window
GdkWindow
] the window which received the event, i.e. the window
that previously owned the grabsendEvent
TRUE
if the event was sent explicitly (e.g. using xsendevent
).keyboard
TRUE
if a keyboard grab was broken, FALSE
if a pointer
grab was brokenimplicit
TRUE
if the broken grab was implicitgrabWindow
GdkWindow
] If this event is caused by another grab in the same
application, grab.window
contains the new grab window. Otherwise
grab.window
is NULL
.GdkScrollDirection
GdkEventScroll
. up
down
left
right
GdkVisibilityState
GdkEventVisibility
. unobscured
partial
fully-obscured
GdkCrossingMode
GdkEventCrossing
. normal
grab
ungrab
GdkNotifyType
GdkEventCrossing
. See the X11 protocol specification of LeaveNotify
for
full details of crossing event generation. ancestor
virtual
inferior
nonlinear
nonlinear-virtual
unknown
GdkPropertyState
GdkEventProperty
. new-value
delete
GdkWindowState
withdrawn
iconified
maximized
sticky
fullscreen
above
below
GdkSettingAction
GdkEventSetting
. new
changed
deleted
GdkOwnerChange
new-owner
destroy
close