* 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 <http://www.gnu.org/licenses/>.
*/
#ifndef __GTK_THEMING_BACKGROUND_PRIVATE_H__
#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;
};
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);