gdk-Events {RGtk2} | R Documentation |
Functions for handling events from the window system
gdkEventsPending()
gdkEventPeek()
gdkEventGet()
gdkEventGetGraphicsExpose(window)
gdkEventPut(object)
gdkEventNew(type)
gdkEventCopy(object)
gdkEventGetTime(object)
gdkEventGetState(object)
gdkEventGetAxis(object, axis.use)
gdkEventGetCoords(object)
gdkEventGetRootCoords(object)
gdkEventRequestMotions(event)
gdkEventHandlerSet(func, data)
gdkAddClientMessageFilter(message.type, func, data)
gdkGetShowEvents()
gdkSetShowEvents(show.events)
gdkEventSetScreen(object, screen)
gdkEventGetScreen(object)
gdkSettingGet(name)
This section describes functions dealing with events from the window system.
In GTK+ applications the events are handled automatically in
gtkMainDoEvent
and passed on to the appropriate widgets, so these
functions are rarely needed. Though some of the fields in the
Event Structures are useful.
GdkEventType
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.
nothing
delete
destroy
expose
motion-notify
button-press
2button-press
GDK_BUTTON_PRESS
event.3button-press
GDK_BUTTON_PRESS
event.button-release
key-press
key-release
enter-notify
leave-notify
focus-change
configure
GDK_WINDOW_CHILD
windows.map
unmap
property-notify
selection-clear
selection-request
selection-notify
proximity-in
proximity-out
drag-enter
drag-leave
drag-motion
drag-status
drop-start
drop-finished
client-event
visibility-notify
no-expose
scroll
window-state
GdkWindowState
for the possible window statessetting
GdkEventMask
GdkEventType
event types
above.
GDK_POINTER_MOTION_HINT_MASK
is a special mask which is used to reduce the
number of GDK_MOTION_NOTIFY
events received. Normally a GDK_MOTION_NOTIFY
event is received each time the mouse moves. However, if the application
spends a lot of time processing the event (updating the display, for example),
it can lag behind the position of the mouse. When using
GDK_POINTER_MOTION_HINT_MASK
, fewer GDK_MOTION_NOTIFY
events will be sent,
some of which are marked as a hint (the is_hint member is TRUE
).
To receive more motion events after a motion hint event, the application
needs to asks for more, by calling gdkEventRequestMotions
.
exposure-mask
pointer-motion-mask
pointer-motion-hint-mask
button-motion-mask
button1-motion-mask
button2-motion-mask
button3-motion-mask
button-press-mask
button-release-mask
key-press-mask
key-release-mask
enter-notify-mask
leave-notify-mask
focus-change-mask
structure-mask
property-change-mask
visibility-notify-mask
proximity-in-mask
proximity-out-mask
substructure-mask
scroll-mask
all-events-mask
GdkEventFunc(event, data)
gdkEventHandlerSet
to handle
all GDK events.
event
GdkEvent
] the GdkEvent
to process.data
gdkEventHandlerSet
.
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Events.html