diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2018-06-11 16:06:22 +0530 |
---|---|---|
committer | Mohammed Sadiq <sadiq@sadiqpk.org> | 2018-06-11 16:24:29 +0530 |
commit | 0d46081645266d150d82539fb75e82f30e44081e (patch) | |
tree | 92891e9ec9cb90125e5b4fa88b8b2bfc13f11140 /gtk/gtkoverlay.h | |
parent | 4f632296a57ee3df809c2a405ac5fb93550aa98e (diff) | |
download | gtk+-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.h | 7 |
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 |