]> Pileus Git - ~andy/gtk/blob - gtk/gtkborderimageprivate.h
Merge branch 'win32-theme2'
[~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, write to the
20  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21  * Boston, MA 02111-1307, USA.
22  */
23
24 #ifndef __GTK_BORDER_IMAGE_H__
25 #define __GTK_BORDER_IMAGE_H__
26
27 #include "gtkborder.h"
28 #include "gtkgradient.h"
29 #include "gtkstyleproperties.h"
30 #include "gtkthemingengine.h"
31 #include "gtkcsstypesprivate.h"
32 #include "gtkstylecontextprivate.h"
33
34 G_BEGIN_DECLS
35
36 typedef struct _GtkBorderImage GtkBorderImage;
37
38 #define GTK_TYPE_BORDER_IMAGE (_gtk_border_image_get_type ())
39
40 GType             _gtk_border_image_get_type         (void) G_GNUC_CONST;
41
42 GtkBorderImage *  _gtk_border_image_new              (cairo_pattern_t      *source,
43                                                       GtkBorder            *slice,
44                                                       GtkBorder            *width,
45                                                       GtkCssBorderImageRepeat *repeat);
46 GtkBorderImage *  _gtk_border_image_new_for_boxed    (GType                 boxed_type,
47                                                       gpointer              boxed,
48                                                       GtkBorder            *slice,
49                                                       GtkBorder            *width,
50                                                       GtkCssBorderImageRepeat *repeat);
51
52 GtkBorderImage *  _gtk_border_image_ref              (GtkBorderImage       *image);
53 void              _gtk_border_image_unref            (GtkBorderImage       *image);
54
55 void              _gtk_border_image_render           (GtkBorderImage       *image,
56                                                       GtkBorder            *border_width,
57                                                       cairo_t              *cr,
58                                                       gdouble               x,
59                                                       gdouble               y,
60                                                       gdouble               width,
61                                                       gdouble               height);
62
63 GParameter *      _gtk_border_image_unpack           (const GValue         *value,
64                                                       guint                *n_params);
65 void              _gtk_border_image_pack             (GValue               *value,
66                                                       GtkStyleProperties   *props,
67                                                       GtkStateFlags         state,
68                                                       GtkStylePropertyContext *context);
69
70 G_END_DECLS
71
72 #endif /* __GTK_BORDER_IMAGE_H__ */