1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2010 Carlos Garnacho <carlosg@gnome.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __GTK_RENDER_H__
19#define __GTK_RENDER_H__
20
21#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gtk/gtk.h> can be included directly."
23#endif
24
25#include <cairo.h>
26#include <pango/pango.h>
27#include <gdk/gdk.h>
28
29#include <gtk/gtkenums.h>
30#include <gtk/gtktypes.h>
31
32G_BEGIN_DECLS
33
34GDK_AVAILABLE_IN_ALL
35void gtk_render_check (GtkStyleContext *context,
36 cairo_t *cr,
37 double x,
38 double y,
39 double width,
40 double height);
41GDK_AVAILABLE_IN_ALL
42void gtk_render_option (GtkStyleContext *context,
43 cairo_t *cr,
44 double x,
45 double y,
46 double width,
47 double height);
48GDK_AVAILABLE_IN_ALL
49void gtk_render_arrow (GtkStyleContext *context,
50 cairo_t *cr,
51 double angle,
52 double x,
53 double y,
54 double size);
55GDK_AVAILABLE_IN_ALL
56void gtk_render_background (GtkStyleContext *context,
57 cairo_t *cr,
58 double x,
59 double y,
60 double width,
61 double height);
62
63GDK_AVAILABLE_IN_ALL
64void gtk_render_frame (GtkStyleContext *context,
65 cairo_t *cr,
66 double x,
67 double y,
68 double width,
69 double height);
70GDK_AVAILABLE_IN_ALL
71void gtk_render_expander (GtkStyleContext *context,
72 cairo_t *cr,
73 double x,
74 double y,
75 double width,
76 double height);
77GDK_AVAILABLE_IN_ALL
78void gtk_render_focus (GtkStyleContext *context,
79 cairo_t *cr,
80 double x,
81 double y,
82 double width,
83 double height);
84GDK_AVAILABLE_IN_ALL
85void gtk_render_layout (GtkStyleContext *context,
86 cairo_t *cr,
87 double x,
88 double y,
89 PangoLayout *layout);
90GDK_AVAILABLE_IN_ALL
91void gtk_render_line (GtkStyleContext *context,
92 cairo_t *cr,
93 double x0,
94 double y0,
95 double x1,
96 double y1);
97GDK_AVAILABLE_IN_ALL
98void gtk_render_handle (GtkStyleContext *context,
99 cairo_t *cr,
100 double x,
101 double y,
102 double width,
103 double height);
104GDK_AVAILABLE_IN_ALL
105void gtk_render_activity (GtkStyleContext *context,
106 cairo_t *cr,
107 double x,
108 double y,
109 double width,
110 double height);
111GDK_AVAILABLE_IN_ALL
112void gtk_render_icon (GtkStyleContext *context,
113 cairo_t *cr,
114 GdkTexture *texture,
115 double x,
116 double y);
117G_END_DECLS
118
119#endif /* __GTK_RENDER_H__ */
120

source code of gtk/gtk/gtkrender.h