summaryrefslogtreecommitdiff
path: root/gtk/gtkeventcontrollerprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-07-30 13:21:28 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-07-30 13:21:28 -0400
commit12170acf464ab203e7a6a099ae7334de070d19e9 (patch)
tree83aafb15680a04186c348ae946c37d6f5b31b642 /gtk/gtkeventcontrollerprivate.h
parent4dc2ab61c9f2266ffda1e6fedac36969ebc309ff (diff)
downloadgtk+-12170acf464ab203e7a6a099ae7334de070d19e9.tar.gz
Define GTK_CROSSING_ACTIVE
Document the different crossing event kinds that we use, and add GTK_CROSSING_ACTIVE. We are going to use it in the future when the active window changes.
Diffstat (limited to 'gtk/gtkeventcontrollerprivate.h')
-rw-r--r--gtk/gtkeventcontrollerprivate.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk/gtkeventcontrollerprivate.h b/gtk/gtkeventcontrollerprivate.h
index c997f7951e..e639e2d82a 100644
--- a/gtk/gtkeventcontrollerprivate.h
+++ b/gtk/gtkeventcontrollerprivate.h
@@ -22,12 +22,29 @@
#include "gtkeventcontroller.h"
+/* GdkCrossingType:
+ * @GTK_CROSSING_FOCUS: Focus moved from one widget to another
+ * @GTK_CROSSING_ACTIVE: The active window changed (the crossing
+ * events in this case leave from the old active window's focus
+ * location to the new active window's one.
+ * @GTK_CROSSING_POINTER: The pointer moved from one widget to another
+ * @GTK_CROSSING_POINTER: An active drag moved from one widget to another
+ *
+ * We emit various kinds of crossing events when the target widget
+ * for keyboard or pointer events changes.
+ */
typedef enum {
GTK_CROSSING_FOCUS,
+ GTK_CROSSING_ACTIVE,
GTK_CROSSING_POINTER,
GTK_CROSSING_DROP
} GtkCrossingType;
+/*
+ * GdkCrossingirection:
+ * @GTK_CROSSING_IN: the event is on the downward slope, towards the new target
+ * @GTK_CROSSING_OUT: the event is on the upward slope, away from the old target
+ */
typedef enum {
GTK_CROSSING_IN,
GTK_CROSSING_OUT