summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturemultipress.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-04-09 18:28:03 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-05-23 19:54:27 +0200
commit4602f34111c7537ff16ea08c27d742463a88584e (patch)
tree31686ba423e4f24c12b8838fb12769df7dd4e64d /gtk/gtkgesturemultipress.c
parent862f9d876ec3fae0d0533fd299f6ed2bdb6fe762 (diff)
downloadgtk+-4602f34111c7537ff16ea08c27d742463a88584e.tar.gz
multipress: Add missing documentation
Diffstat (limited to 'gtk/gtkgesturemultipress.c')
-rw-r--r--gtk/gtkgesturemultipress.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/gtk/gtkgesturemultipress.c b/gtk/gtkgesturemultipress.c
index 799f349a12..c5549e2621 100644
--- a/gtk/gtkgesturemultipress.c
+++ b/gtk/gtkgesturemultipress.c
@@ -17,6 +17,23 @@
* Author(s): Carlos Garnacho <carlosg@gnome.org>
*/
+/**
+ * SECTION:gtkgesturemultipress
+ * @Short_description: Multipress gesture
+ * @Title: GtkGestureMultiPress
+ *
+ * #GtkGestureMultiPress is a #GtkGesture implementation able to recognize
+ * multiple clicks on a nearby zone, which can be listened for through the
+ * #GtkGestureMultiPress:pressed signal. Whenever time or distance between clicks
+ * exceed the GTK+ defaults, #GtkGestureMultiPress:stopped is emitted, and the
+ * click counter is reset.
+ *
+ * Callers may also restrict the area that is considered valid for a >1
+ * touch/button press through gtk_gesture_multi_press_set_area(), so any
+ * click happening outside that area is considered to be a first click of
+ * its own.
+ */
+
#include "config.h"
#include "gtkgesturemultipress.h"
#include "gtkprivate.h"
@@ -258,6 +275,17 @@ gtk_gesture_multi_press_class_init (GtkGestureMultiPressClass *klass)
controller_class->reset = gtk_gesture_multi_press_reset;
+ /**
+ * GtkGestureMultiPress:pressed:
+ * @gesture: the object which received the signal
+ * @n_press: how many touch/button presses happened with this one
+ * @x: The X coordinate, in widget allocation coordinates
+ * @y: The Y coordinate, in widget allocation coordinates
+ *
+ * This signal is emitted whenever a button or touch press happens.
+ *
+ * Since: 3.14
+ */
signals[PRESSED] =
g_signal_new ("pressed",
G_TYPE_FROM_CLASS (klass),
@@ -266,6 +294,15 @@ gtk_gesture_multi_press_class_init (GtkGestureMultiPressClass *klass)
NULL, NULL, NULL,
G_TYPE_NONE, 3, G_TYPE_INT,
G_TYPE_DOUBLE, G_TYPE_DOUBLE);
+ /**
+ * GtkGestureMultiPress:stopped:
+ * @gesture: the object which received the signal
+ *
+ * This signal is emitted whenever any time/distance threshold has
+ * been exceeded.
+ *
+ * Since: 3.14
+ */
signals[STOPPED] =
g_signal_new ("stopped",
G_TYPE_FROM_CLASS (klass),