summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-04-08 21:27:08 +0200
committerCarlos Garnacho <carlosg@gnome.org>2014-05-23 19:54:26 +0200
commit4401be22ad6c492137307dc0efdce8a9cb257e1a (patch)
tree127884fd7b2f6ea337e32d49aab079b39a9ed583
parent6296aa84b25408238768e8207ffd86d90fee734f (diff)
downloadgtk+-4401be22ad6c492137307dc0efdce8a9cb257e1a.tar.gz
enums: Document GtkPropagationPhase
-rw-r--r--gtk/gtkenums.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkenums.h b/gtk/gtkenums.h
index 77983d2ad6..88770715a3 100644
--- a/gtk/gtkenums.h
+++ b/gtk/gtkenums.h
@@ -1049,6 +1049,24 @@ typedef enum
GTK_INPUT_HINT_INHIBIT_OSK = 1 << 7
} GtkInputHints;
+/**
+ * GtkPropagationPhase:
+ * @GTK_PHASE_NONE: Events are not delivered automatically. Those can be
+ * manually fed through gtk_event_controller_handle_event(). This should
+ * only be used when full control about when, or whether the controller
+ * handles the event is needed.
+ * @GTK_PHASE_CAPTURE: Events are delivered in the capture phase. The
+ * capture phase happens before the bubble phase, runs from the toplevel down
+ * to the event widget. This option should only be used on containers that
+ * might possibly handle events before their children do.
+ * @GTK_PHASE_BUBBLE: Events are delivered in the bubble phase. The bubble
+ * phase happens after the capture phase, runs from the event widget, up to
+ * the toplevel.
+ *
+ * Describes the stage at which events are fed into a #GtkEventController.
+ *
+ * Since: 3.14
+ */
typedef enum
{
GTK_PHASE_NONE,