X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=gtk%2Fgtkthemingbackgroundprivate.h;h=23fe092157382ae311841cd78cfd334994e07804;hb=7c2a752b3724ad9ac88b7abfecc63e4e0eb7eb54;hp=27dbc821eea5d3ce59035df3f8f2f3b0090a8cde;hpb=52af00686b5ecb00f86a1255fecd16c49a71514c;p=~andy%2Fgtk diff --git a/gtk/gtkthemingbackgroundprivate.h b/gtk/gtkthemingbackgroundprivate.h index 27dbc821e..23fe09215 100644 --- a/gtk/gtkthemingbackgroundprivate.h +++ b/gtk/gtkthemingbackgroundprivate.h @@ -14,9 +14,7 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * License along with this library. If not, see . */ #ifndef __GTK_THEMING_BACKGROUND_PRIVATE_H__ @@ -28,27 +26,20 @@ #include "gtkcssimageprivate.h" #include "gtkstylecontextprivate.h" #include "gtkroundedboxprivate.h" -#include "gtkshadowprivate.h" G_BEGIN_DECLS typedef struct _GtkThemingBackground GtkThemingBackground; struct _GtkThemingBackground { - GtkThemingEngine *engine; + GtkStyleContext *context; cairo_rectangle_t paint_area; - cairo_rectangle_t image_rect; - - GtkJunctionSides junction; - GtkCssImage *image; - + GtkRoundedBox border_box; GtkRoundedBox padding_box; - GtkRoundedBox clip_box; + GtkRoundedBox content_box; - GtkStateFlags flags; - GtkBorder border; - GtkBorder padding; + GtkJunctionSides junction; GdkRGBA bg_color; }; @@ -60,6 +51,14 @@ void _gtk_theming_background_init (GtkThemingBackground *bg, gdouble height, GtkJunctionSides junction); +void _gtk_theming_background_init_from_context (GtkThemingBackground *bg, + GtkStyleContext *context, + gdouble x, + gdouble y, + gdouble width, + gdouble height, + GtkJunctionSides junction); + void _gtk_theming_background_render (GtkThemingBackground *bg, cairo_t *cr);