]> Pileus Git - ~andy/gtk/blob - gtk/gtkborderimageprivate.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkborderimageprivate.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2010 Carlos Garnacho <carlosg@gnome.org>
3  * Copyright (C) 2011 Red Hat, Inc.
4  *
5  * Authors: Carlos Garnacho <carlosg@gnome.org>
6  *          Cosimo Cecchi <cosimoc@gnome.org>
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20  */
21
22 #ifndef __GTK_BORDER_IMAGE_H__
23 #define __GTK_BORDER_IMAGE_H__
24
25 #include "gtkborder.h"
26 #include "gtkcssimageprivate.h"
27 #include "gtkcssvalueprivate.h"
28 #include "gtkthemingengine.h"
29
30 G_BEGIN_DECLS
31
32 typedef struct _GtkBorderImage GtkBorderImage;
33
34 struct _GtkBorderImage {
35   GtkCssImage *source;
36
37   GtkCssValue *slice;
38   GtkCssValue *width;
39   GtkCssValue *repeat;
40 };
41
42 gboolean          _gtk_border_image_init             (GtkBorderImage       *image,
43                                                       GtkThemingEngine     *engine);
44
45 void              _gtk_border_image_render           (GtkBorderImage       *image,
46                                                       const double          border_width[4],
47                                                       cairo_t              *cr,
48                                                       gdouble               x,
49                                                       gdouble               y,
50                                                       gdouble               width,
51                                                       gdouble               height);
52
53 G_END_DECLS
54
55 #endif /* __GTK_BORDER_IMAGE_H__ */