gdk: Add gdk_device_tool_get_axes()
Axes are actually a per-tool property, we just adapt devices to the current tool.
This commit is contained in:
@@ -382,6 +382,7 @@ gdk_device_get_axis
|
|||||||
gdk_device_tool_get_serial
|
gdk_device_tool_get_serial
|
||||||
gdk_device_tool_get_tool_type
|
gdk_device_tool_get_tool_type
|
||||||
gdk_device_tool_get_hardware_id
|
gdk_device_tool_get_hardware_id
|
||||||
|
gdk_device_tool_get_axes
|
||||||
|
|
||||||
<SUBSECTION Standard>
|
<SUBSECTION Standard>
|
||||||
GDK_TYPE_AXIS_USE
|
GDK_TYPE_AXIS_USE
|
||||||
|
|||||||
@@ -209,3 +209,11 @@ gdk_device_tool_get_tool_type (GdkDeviceTool *tool)
|
|||||||
|
|
||||||
return tool->type;
|
return tool->type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GdkAxisFlags
|
||||||
|
gdk_device_tool_get_axes (GdkDeviceTool *tool)
|
||||||
|
{
|
||||||
|
g_return_val_if_fail (tool != NULL, 0);
|
||||||
|
|
||||||
|
return tool->tool_axes;
|
||||||
|
}
|
||||||
|
|||||||
@@ -71,6 +71,9 @@ guint64 gdk_device_tool_get_hardware_id (GdkDeviceTool *tool);
|
|||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
GdkDeviceToolType gdk_device_tool_get_tool_type (GdkDeviceTool *tool);
|
GdkDeviceToolType gdk_device_tool_get_tool_type (GdkDeviceTool *tool);
|
||||||
|
|
||||||
|
GDK_AVAILABLE_IN_ALL
|
||||||
|
GdkAxisFlags gdk_device_tool_get_axes (GdkDeviceTool *tool);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GDK_DEVICE_TOOL_H__ */
|
#endif /* __GDK_DEVICE_TOOL_H__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user