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 function gdk-event-device will return it, else it will return nil. The function (setf gdk-event-device) sets the device for an event.

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

See also

2020-8-25