diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2020-11-13 00:23:52 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2020-11-13 00:39:23 +0100 |
commit | 80de00a248d3addb8b78483d5d610dec03f62cdc (patch) | |
tree | 23c9f040e2db84265ea4f69f84b170b9936c69b1 /gtk/gtkwidgetprivate.h | |
parent | 50a7e59623683c77c6be54977eda30f8917bb8b5 (diff) | |
download | gtk+-80de00a248d3addb8b78483d5d610dec03f62cdc.tar.gz |
gtk/main: Stack ::active calls
We may have the situation of multiple touchpoints in the same
widget, or combinations with other devices. Stack those ::active
states are preserved on widgets on all but the last pointer/touch
going away.
Diffstat (limited to 'gtk/gtkwidgetprivate.h')
-rw-r--r-- | gtk/gtkwidgetprivate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h index 761a190e1d..138f0137d9 100644 --- a/gtk/gtkwidgetprivate.h +++ b/gtk/gtkwidgetprivate.h @@ -115,6 +115,8 @@ struct _GtkWidgetPrivate guint8 verifying_invariants_count; #endif + guint8 n_active; + int width_request; int height_request; @@ -324,6 +326,9 @@ void gtk_widget_get_surface_allocation (GtkWidget *widget, GtkWidget * gtk_widget_common_ancestor (GtkWidget *widget_a, GtkWidget *widget_b); +void gtk_widget_set_active_state (GtkWidget *widget, + gboolean active); + void gtk_widget_cancel_event_sequence (GtkWidget *widget, GtkGesture *gesture, GdkEventSequence *sequence, |