[gtk/docs-fixes: 3/5] Add missing documentation to GdkDevice



commit 7eb7ee33ff64900a2a9eaf4c675a929c6f6206e2
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Feb 26 10:23:15 2020 +0000

    Add missing documentation to GdkDevice

 gdk/gdkdevice.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
---
diff --git a/gdk/gdkdevice.c b/gdk/gdkdevice.c
index 9665ca469f..f21df4e460 100644
--- a/gdk/gdkdevice.c
+++ b/gdk/gdkdevice.c
@@ -1681,6 +1681,14 @@ gdk_device_update_tool (GdkDevice     *device,
     }
 }
 
+/**
+ * gdk_device_get_num_touches:
+ * @device: a #GdkDevice
+ *
+ * Retrieves the number of touch points associated to @device.
+ *
+ * Returns: the number of touch points
+ */
 guint
 gdk_device_get_num_touches (GdkDevice *device)
 {
@@ -1689,6 +1697,14 @@ gdk_device_get_num_touches (GdkDevice *device)
   return device->num_touches;
 }
 
+/**
+ * gdk_device_get_device_tool:
+ * @device: a #GdkDevice
+ *
+ * Retrieves the #GdkDeviceTool associated to @device.
+ *
+ * Returns: (transfer none): the #GdkDeviceTool
+ */
 GdkDeviceTool *
 gdk_device_get_device_tool (GdkDevice *device)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]