diff options
author | Benjamin Otte <otte@redhat.com> | 2019-02-15 06:15:50 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2019-02-15 06:53:22 +0100 |
commit | c44c44ee2510415c3b796e973ac3f525e5d512b9 (patch) | |
tree | 4722dc662de36d1356f1e439365fbab69883a5ff /gtk/gtkrenderbackgroundprivate.h | |
parent | 7ad0f7fc525bf01b21532a98069f4b7124d65a86 (diff) | |
download | gtk+-c44c44ee2510415c3b796e973ac3f525e5d512b9.tar.gz |
css: Pass boxes to the render functions
Instead of style + rect_of_one_box, pass the new GtkCssBoxes object.
This has the nice side effect that when drawing background + border +
outline, we only compute all the boxes we need once.
Diffstat (limited to 'gtk/gtkrenderbackgroundprivate.h')
-rw-r--r-- | gtk/gtkrenderbackgroundprivate.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtkrenderbackgroundprivate.h b/gtk/gtkrenderbackgroundprivate.h index a812b3ef7a..43aaf17580 100644 --- a/gtk/gtkrenderbackgroundprivate.h +++ b/gtk/gtkrenderbackgroundprivate.h @@ -24,14 +24,13 @@ #include <cairo.h> #include "gtkcsstypesprivate.h" +#include "gtkcssboxesprivate.h" #include "gtktypes.h" G_BEGIN_DECLS -void gtk_css_style_snapshot_background (GtkCssStyle *style, - GtkSnapshot *snapshot, - gdouble width, - gdouble height); +void gtk_css_style_snapshot_background (GtkCssBoxes *boxes, + GtkSnapshot *snapshot); |