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, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #ifndef __GTK_THEMING_BACKGROUND_PRIVATE_H__
23 #define __GTK_THEMING_BACKGROUND_PRIVATE_H__
25 #include <glib-object.h>
28 #include "gtkcssimageprivate.h"
29 #include "gtkstylecontextprivate.h"
30 #include "gtkroundedboxprivate.h"
31 #include "gtkshadowprivate.h"
35 typedef struct _GtkThemingBackground GtkThemingBackground;
37 struct _GtkThemingBackground {
38 GtkThemingEngine *engine;
40 cairo_rectangle_t paint_area;
41 cairo_rectangle_t image_rect;
43 GtkJunctionSides junction;
46 GtkRoundedBox padding_box;
47 GtkRoundedBox clip_box;
55 void _gtk_theming_background_init (GtkThemingBackground *bg,
56 GtkThemingEngine *engine,
61 GtkJunctionSides junction);
63 void _gtk_theming_background_render (GtkThemingBackground *bg,
66 gboolean _gtk_theming_background_has_background_image (GtkThemingBackground *bg);
70 #endif /* __GTK_THEMING_BACKGROUND_PRIVATE_H__ */