Package: gdk

Function gdk:event-device-tool

Lambda List

gdk:event-device-tool (event)

Arguments

event -- a gdk:event instance

Return Value

The gdk:device-tool object, or nil.

Details

If the event was generated by a device that supports different tools, for example a tablet, this function will return a gdk:device-tool object representing the tool that caused the event. Otherwise, nil will be returned.

Notes

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

See also

#2024-7-12