diff options
author | Timm Bäder <mail@baedert.org> | 2020-01-25 16:20:00 +0100 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-01-26 18:21:07 +0100 |
commit | 942a93250a5227a051017737873b7d40f24b9e59 (patch) | |
tree | 3e5d0f9410aac1573d09d3f600447221aa09ae2e /gtk/gtkrender.c | |
parent | 7ccd6597c3c888449fed60a52a5328c92b3e3e86 (diff) | |
download | gtk+-942a93250a5227a051017737873b7d40f24b9e59.tar.gz |
render: Remove gtk_render_background_get_clip
Diffstat (limited to 'gtk/gtkrender.c')
-rw-r--r-- | gtk/gtkrender.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gtk/gtkrender.c b/gtk/gtkrender.c index c097b4d14b..840aaa0742 100644 --- a/gtk/gtkrender.c +++ b/gtk/gtkrender.c @@ -210,37 +210,6 @@ gtk_render_background (GtkStyleContext *context, } /** - * gtk_render_background_get_clip: - * @context: a #GtkStyleContext - * @x: X origin of the rectangle - * @y: Y origin of the rectangle - * @width: rectangle width - * @height: rectangle height - * @out_clip: (out): return location for the clip - * - * Returns the area that will be affected (i.e. drawn to) when - * calling gtk_render_background() for the given @context and - * rectangle. - */ -void -gtk_render_background_get_clip (GtkStyleContext *context, - gdouble x, - gdouble y, - gdouble width, - gdouble height, - GdkRectangle *out_clip) -{ - GtkBorder shadow; - - gtk_css_shadow_value_get_extents (_gtk_style_context_peek_property (context, GTK_CSS_PROPERTY_BOX_SHADOW), &shadow); - - out_clip->x = floor (x) - shadow.left; - out_clip->y = floor (y) - shadow.top; - out_clip->width = ceil (width) + shadow.left + shadow.right; - out_clip->height = ceil (height) + shadow.top + shadow.bottom; -} - -/** * gtk_render_frame: * @context: a #GtkStyleContext * @cr: a #cairo_t |