1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 2011 Red Hat, Inc.
4 * Author: Cosimo Cecchi <cosimoc@gnome.org>
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __GTK_THEMING_BACKGROUND_PRIVATE_H__
21 #define __GTK_THEMING_BACKGROUND_PRIVATE_H__
23 #include <glib-object.h>
26 #include "gtkcssimageprivate.h"
27 #include "gtkstylecontextprivate.h"
28 #include "gtkroundedboxprivate.h"
32 typedef struct _GtkThemingBackground GtkThemingBackground;
34 struct _GtkThemingBackground {
35 GtkStyleContext *context;
37 cairo_rectangle_t paint_area;
38 GtkRoundedBox border_box;
39 GtkRoundedBox padding_box;
41 GtkJunctionSides junction;
48 void _gtk_theming_background_init (GtkThemingBackground *bg,
49 GtkThemingEngine *engine,
54 GtkJunctionSides junction);
56 void _gtk_theming_background_init_from_context (GtkThemingBackground *bg,
57 GtkStyleContext *context,
62 GtkJunctionSides junction);
64 void _gtk_theming_background_render (GtkThemingBackground *bg,
67 gboolean _gtk_theming_background_has_background_image (GtkThemingBackground *bg);
71 #endif /* __GTK_THEMING_BACKGROUND_PRIVATE_H__ */