[gtk+/gestures: 101/173] zoom: Add missing documentation
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gestures: 101/173] zoom: Add missing documentation
- Date: Fri, 16 May 2014 17:08:52 +0000 (UTC)
commit d91de6d6dab48d989a6bcdda1c985d5d6dcc1e6a
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Apr 9 18:28:49 2014 +0200
zoom: Add missing documentation
gtk/gtkgesturezoom.c | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkgesturezoom.c b/gtk/gtkgesturezoom.c
index f242d6d..648d0bb 100644
--- a/gtk/gtkgesturezoom.c
+++ b/gtk/gtkgesturezoom.c
@@ -17,6 +17,19 @@
*
* Author(s): Carlos Garnacho <carlosg gnome org>
*/
+
+/**
+ * SECTION:gtkgesturezoom
+ * @Short_description: Zoom gesture
+ * @Title: GtkGestureZoom
+ * @See_also: #GtkGestureRotate
+ *
+ * #GtkGestureZoom is a #GtkGesture implementation able to recognize
+ * pinch/zoom gestures, whenever the distance between both tracked
+ * sequences changes, the #GtkGestureZoom:scale-changed signal is
+ * emitted to report the scale factor.
+ */
+
#include "config.h"
#include <math.h>
#include <gtk/gtkgesturezoom.h>
@@ -138,6 +151,11 @@ gtk_gesture_zoom_class_init (GtkGestureZoomClass *klass)
* GtkGestureZoom::scale-changed:
* @controller: the object on which the signal is emitted
* @scale: Scale delta, taking the initial state as 1:1
+ *
+ * This signal is emitted whenever the distance between both tracked
+ * sequences changes.
+ *
+ * Since: 3.14
*/
signals[SCALE_CHANGED] =
g_signal_new ("scale-changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]