diff options
author | Benjamin Otte <otte@redhat.com> | 2014-05-18 16:02:04 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2014-05-24 16:12:20 +0200 |
commit | 4f89eb05cf8a09a1ce1de4870fdc4395645a0bdf (patch) | |
tree | 9b9f75e2e2d60be42aef2033e875efc12c8480ae /gtk/gtkwidget.h | |
parent | 1d897a9bf2fe2079c669973e9a6e02e4c939f974 (diff) | |
download | gtk+-4f89eb05cf8a09a1ce1de4870fdc4395645a0bdf.tar.gz |
API: widget: Add gtk_widget_set_clip() API
And handle the fact that drawing bounds are now handled by this API and
the corresponding gtk_widget_get_clip().
Also add _gtk_widget_supports_clip() function to check if a widget has
been ported to the new world.
Diffstat (limited to 'gtk/gtkwidget.h')
-rw-r--r-- | gtk/gtkwidget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index 089420a873..152f6dde05 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -945,6 +945,12 @@ void gtk_widget_get_allocation (GtkWidget *widget, GDK_AVAILABLE_IN_ALL void gtk_widget_set_allocation (GtkWidget *widget, const GtkAllocation *allocation); +GDK_AVAILABLE_IN_3_14 +void gtk_widget_set_clip (GtkWidget *widget, + const GtkAllocation *allocation); +GDK_AVAILABLE_IN_3_14 +void gtk_widget_get_clip (GtkWidget *widget, + GtkAllocation *allocation); GDK_DEPRECATED_IN_3_0_FOR(gtk_widget_get_preferred_width & gtk_widget_get_preferred_height) |