render: Remove gtk_render_background_get_clip
authorTimm Bäder <mail@baedert.org>
Sat, 25 Jan 2020 15:20:00 +0000 (16:20 +0100)
committerTimm Bäder <mail@baedert.org>
Sun, 26 Jan 2020 17:21:07 +0000 (18:21 +0100)
docs/reference/gtk/gtk4-sections.txt
gtk/gtkrender.c
gtk/gtkrender.h

index 7e5cf044217c117888b3ff0a1bb0a4b2897457cc..b65c83fde4dcce1076730aa1043742fdacc0faa1 100644 (file)
@@ -4895,7 +4895,6 @@ gtk_border_free
 <SUBSECTION>
 gtk_render_arrow
 gtk_render_background
-gtk_render_background_get_clip
 gtk_render_check
 gtk_render_expander
 gtk_render_focus
index c097b4d14b91cc0e2a6a0b4fee1e9879ee2f80c2..840aaa07425d5e3a6c1037975185b2d2e8ca46fe 100644 (file)
@@ -209,37 +209,6 @@ gtk_render_background (GtkStyleContext *context,
   gsk_render_node_unref (node);
 }
 
-/**
- * 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
index 65390dc1011d1952f2cc32e46384a7517f8ea10c..645e7d6c158d8df814f8d62404278809da43bc6c 100644 (file)
@@ -60,14 +60,6 @@ void        gtk_render_background  (GtkStyleContext     *context,
                                     gdouble              width,
                                     gdouble              height);
 
-GDK_AVAILABLE_IN_ALL
-void        gtk_render_background_get_clip  (GtkStyleContext     *context,
-                                             gdouble              x,
-                                             gdouble              y,
-                                             gdouble              width,
-                                             gdouble              height,
-                                             GdkRectangle        *out_clip);
-
 GDK_AVAILABLE_IN_ALL
 void        gtk_render_frame       (GtkStyleContext     *context,
                                     cairo_t             *cr,