summaryrefslogtreecommitdiff
path: root/gtk/gtkeventcontroller.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-04-08 21:01:13 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-05-23 19:54:25 +0200
commit3221d5301006eb49c4f51e2e8d0b83d7df2df37c (patch)
treebe57be2d5dad60281e7ba458e7c2ae62b1a23ece /gtk/gtkeventcontroller.c
parent040c82f0e8c6e0ce92c885a4954cc99a22eaeef2 (diff)
downloadgtk+-3221d5301006eb49c4f51e2e8d0b83d7df2df37c.tar.gz
eventcontroller: Add documentation blurb
Diffstat (limited to 'gtk/gtkeventcontroller.c')
-rw-r--r--gtk/gtkeventcontroller.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk/gtkeventcontroller.c b/gtk/gtkeventcontroller.c
index a4d294d244..1b3df34972 100644
--- a/gtk/gtkeventcontroller.c
+++ b/gtk/gtkeventcontroller.c
@@ -17,6 +17,27 @@
*
* Author(s): Carlos Garnacho <carlosg@gnome.org>
*/
+
+/**
+ * SECTION:gtkeventcontroller
+ * @Short_description: Self-contained handler of series of events
+ * @Title: GtkEventController
+ * @See_also: #GtkGesture
+ *
+ * #GtkEventController is a base, low-level implementation for event
+ * controllers. Those react to a series of events, and possibly trigger
+ * actions as a consequence of those.
+ *
+ * Most usually, event controllers are attached to a widget through
+ * gtk_widget_add_controller(). This ensures events received by the
+ * widget are delivered to the controller. On special situations,
+ * manual delivery may be desired, this can be achieved by setting
+ * the capture phase to %GTK_PHASE_NONE and feeding events manually
+ * through gtk_event_controller_handle_event(). See
+ * gtk_event_controller_set_propagation_phase() and #GtkPropagationPhase
+ * to know more about how events are delivered to event controllers.
+ */
+
#include "config.h"
#include <gtk/gtkeventcontroller.h>
#include "gtktypebuiltins.h"