summaryrefslogtreecommitdiff
path: root/gtk/gtkoverlay.h
diff options
context:
space:
mode:
authorMohammed Sadiq <sadiq@sadiqpk.org>2018-06-11 16:06:22 +0530
committerMohammed Sadiq <sadiq@sadiqpk.org>2018-06-11 16:24:29 +0530
commit0d46081645266d150d82539fb75e82f30e44081e (patch)
tree92891e9ec9cb90125e5b4fa88b8b2bfc13f11140 /gtk/gtkoverlay.h
parent4f632296a57ee3df809c2a405ac5fb93550aa98e (diff)
downloadgtk+-0d46081645266d150d82539fb75e82f30e44081e.tar.gz
overlay: Add support for clipping overlay widgets
Sometimes users may want to restrict the growth of child widgets in a GtkOverlay to grow atmost the size of the overlay. Let's add a support for that.
Diffstat (limited to 'gtk/gtkoverlay.h')
-rw-r--r--gtk/gtkoverlay.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkoverlay.h b/gtk/gtkoverlay.h
index 0cd3aa891a..bf5bf7fead 100644
--- a/gtk/gtkoverlay.h
+++ b/gtk/gtkoverlay.h
@@ -99,6 +99,13 @@ GDK_AVAILABLE_IN_ALL
void gtk_overlay_set_measure_overlay (GtkOverlay *overlay,
GtkWidget *widget,
gboolean measure);
+GDK_AVAILABLE_IN_ALL
+gboolean gtk_overlay_get_clip_overlay (GtkOverlay *overlay,
+ GtkWidget *widget);
+GDK_AVAILABLE_IN_ALL
+void gtk_overlay_set_clip_overlay (GtkOverlay *overlay,
+ GtkWidget *widget,
+ gboolean clip_overlay);
G_END_DECLS