Package: gdk

Function gdk:event-device-tool

Lambda List

gdk:event-device-tool (event)

Syntax

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

Arguments

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

Details

Accessor of the device tool representing the tool that caused the event. If the event was generated by a device that supports different tools (e.g. a tablet), the gdk:event-device-tool function will return a gdk:device-tool object representing the tool that caused the event. Otherwise, nil will be returned. The (setf gdk:event-device-tool) function sets the device tool for this event, should be rarely used.

Note: The gdk:device-tool object will be constant during the application lifetime, if settings must be stored persistently across runs, see the gdk:device-tool-serial function.
 

See also

#2023-3-13