Method

GdkEventget_device_tool

since: 3.22

Declaration [src]

GdkDeviceTool*
gdk_event_get_device_tool (
  const GdkEvent* event
)

Description [src]

If the event was generated by a device that supports different tools (eg. a tablet), this function will return a GdkDeviceTool representing the tool that caused the event. Otherwise, NULL will be returned.

Note: the GdkDeviceTools will be constant during the application lifetime, if settings must be stored persistently across runs, see gdk_device_tool_get_serial().

Available since: 3.22

Return value

Type: GdkDeviceTool

The current device tool, or NULL.

The returned data is owned by the instance.