11.10Class GdkEvent

Functions for handling events from the window system

Class GdkEvent( type )
type a GdkEventType

Creates a new event of the given type. All fields are set to 0.

Properties
send_event TRUE if the event was sent explicitly (e.
type the type of the event (GdkEventType).
window TODO the window which received the event.
Methods
copyCopies a GdkEvent, copying or incrementing the reference count of the resources associated with it (e.g. GdkWindow's and strings).
events_pendingChecks if any events are ready to be processed for any display.
getChecks all open displays for a GdkEvent to process, to be processed on, fetching events from the windowing system if necessary.
get_axisExtract the axis value for a particular axis use from an event structure.
get_coordsExtract the event window relative x/y coordinates from an event.
get_real_eventGet a copy of the event cast to its real derived-type.
get_root_coordsExtract the root window relative x/y coordinates from an event.
get_show_eventsGets whether event debugging output is enabled.
get_stateIf the event contains a "state" field, returns it. Otherwise returns an empty state (0).
get_timeReturns the time stamp from event, if there is one; otherwise returns GDK_CURRENT_TIME.
peekIf there is an event waiting in the event queue of some open display, returns it.
putAppends a copy of the given event onto the front of the event queue for event->any.window's display, or the default event queue if event->any.window is NULL.
set_show_eventsSets whether a trace of received events is output.

Properties

send_event

TRUE if the event was sent explicitly (e.

TRUE if the event was sent explicitly (e.g. using XSendEvent).

type

the type of the event (GdkEventType).

the type of the event (GdkEventType).

window

TODO the window which received the event.

TODO the window which received the event.

Methods

copy

Copies a GdkEvent, copying or incrementing the reference count of the resources associated with it (e.g. GdkWindow's and strings).

GdkEvent.copy()
Returna copy of the event.

events_pending

Checks if any events are ready to be processed for any display.

GdkEvent.events_pending()
ReturnTRUE if any events are pending.

get

Checks all open displays for a GdkEvent to process, to be processed on, fetching events from the windowing system if necessary.

GdkEvent.get()
Returnthe next GdkEvent to be processed, or NULL if no events are pending.

See gdk_display_get_event().

get_axis

Extract the axis value for a particular axis use from an event structure.

GdkEvent.get_axis( axis_use )
axis_use the axis use to look for (GdkAxisUse).
Returnthe value found or nil if the specified axis was not found.

get_coords

Extract the event window relative x/y coordinates from an event.

GdkEvent.get_coords()
Returnan array ( window x coordinate, window y coordinate ), or nil if the event did not deliver event window coordinates.

get_real_event

Get a copy of the event cast to its real derived-type.

GdkEvent.get_real_event()
Returnone of the Gdk event types.

Note: This is Falcon specific.

In classes already derived from GdkEvent, this is of course not of much use.

get_root_coords

Extract the root window relative x/y coordinates from an event.

GdkEvent.get_root_coords()
Returnan array ( window x coordinate, window y coordinate ), or nil if the event did not deliver root window coordinates

get_show_events

Gets whether event debugging output is enabled.

GdkEvent.get_show_events()
ReturnTRUE if event debugging output is enabled.

get_state

If the event contains a "state" field, returns it. Otherwise returns an empty state (0).

GdkEvent.get_state()
Returnthe state (GdkModifierType).

get_time

Returns the time stamp from event, if there is one; otherwise returns GDK_CURRENT_TIME.

GdkEvent.get_time()
Returntime stamp field from event

peek

If there is an event waiting in the event queue of some open display, returns it.

GdkEvent.peek()
Returnthe first GdkEvent on some event queue, or NULL if no events are in any queues.

See gdk_display_peek_event().

put

Appends a copy of the given event onto the front of the event queue for event->any.window's display, or the default event queue if event->any.window is NULL.

GdkEvent.put()

See gdk_display_put_event().

set_show_events

Sets whether a trace of received events is output.

GdkEvent.set_show_events( show_events )
show_events TRUE to output event debugging information.

Note that GTK+ must be compiled with debugging (that is, configured using the --enable-debug option) to use this option.

Made with http://www.falconpl.org