summaryrefslogtreecommitdiff
path: root/gdk/gdkdeviceprivate.h
diff options
context:
space:
mode:
authorStephen Chandler Paul <thatslyude@gmail.com>2015-01-13 00:03:49 -0500
committerCarlos Garnacho <carlosg@gnome.org>2016-04-06 15:43:29 +0200
commit8b2fd3ed1bb58a3c414f37ad25f560a7d3f74786 (patch)
treea43fd4c3c783466f76d95d02e9e9e7194f560a23 /gdk/gdkdeviceprivate.h
parent9a81b6595942e6a0d34e489450da7dcdf0054e7e (diff)
downloadgtk+-8b2fd3ed1bb58a3c414f37ad25f560a7d3f74786.tar.gz
GdkDeviceTool: Add GdkDeviceToolType to identify the physical tool type
Because there are multiple different types of styluses that can be used with tablets, we have to have some sort of identifier for them attached to the GdkDeviceTool, especially since knowing the actual tool type for a GdkDeviceTool is necessary for matching up a GdkDeviceTool with it's appropriate GdkInputSource in Wayland (eg. matching up a GdkDeviceTool eraser with the GDK_SOURCE_ERASER GdkInputSource of a wayland tablet). Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
Diffstat (limited to 'gdk/gdkdeviceprivate.h')
-rw-r--r--gdk/gdkdeviceprivate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdk/gdkdeviceprivate.h b/gdk/gdkdeviceprivate.h
index 52ee6c69ef..6a0221ff00 100644
--- a/gdk/gdkdeviceprivate.h
+++ b/gdk/gdkdeviceprivate.h
@@ -37,6 +37,7 @@ struct _GdkDeviceTool
{
GObject parent_instance;
guint64 serial;
+ GdkDeviceToolType type;
};
struct _GdkDeviceToolClass
@@ -198,7 +199,8 @@ void gdk_device_set_seat (GdkDevice *device,
GdkSeat *seat);
/* Device tools */
-GdkDeviceTool *gdk_device_tool_new (guint64 serial);
+GdkDeviceTool *gdk_device_tool_new (guint64 serial,
+ GdkDeviceToolType type);
void gdk_device_update_tool (GdkDevice *device,
GdkDeviceTool *tool);