2.4. GdkEvent binding

(require 'gdkevent)
This extension is automatically included when the gtk extension is required. It provides accessors for fields in GdkEvent boxed structures.

procedure: (gdk-event-type e)

Retrieves the (symbolic) GdkEventType from a GdkEvent.

procedure: (gdk-event-window e)

Retrieves the GdkWindow associated with a GdkEvent.

procedure: (gdk-event-string e)

Retrieves the string associated with a GdkEvent, or #f if there is no associated string. (Currently supports key-press and key-release events.)

procedure: (gdk-event-area e)

Retrieves the area rectangle of an expose event, or #f if the passed-in event is of the wrong type.

procedure: (gdk-event-button e)

Retrieves the button number of a button event, or #f if the passed-in event is of the wrong type.

procedure: (gdk-event-xy e)

Returns two values, the X and Y coordinates associated with a GdkEvent. Returns (values #f #f) if there is no associated coordinate pair.

procedure: (gdk-event-xy-root e)

As for gdk-event-xy, except returns coordinates in the root window coordinate system rather than the window-local coordinate system.