Package: gdk

Function gdk:event-device

Lambda List

gdk:event-device (event)

Syntax

(gdk:event-device event) => device
(setf (gdk:event-device event) device)

Arguments

event -- a gdk:event instance
device -- a gdk:device object

Details

Accessor of the "device" field of an event. If the event contains a "device" field, the gdk:event-device function will return it, else it will return nil. The (setf gdk:event-device) function sets the device for an event.

The event must have been allocated by GTK, for instance, by the gdk:event-copy function.
 

See also

2023-2-26