1/* cairo - a vector graphics library with display and print output
2 *
3 * Copyright © 2010 Red Hat Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it either under the terms of the GNU Lesser General Public
7 * License version 2.1 as published by the Free Software Foundation
8 * (the "LGPL") or, at your option, under the terms of the Mozilla
9 * Public License Version 1.1 (the "MPL"). If you do not alter this
10 * notice, a recipient may use your version of this file under either
11 * the MPL or the LGPL.
12 *
13 * You should have received a copy of the LGPL along with this library
14 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
16 * You should have received a copy of the MPL along with this library
17 * in the file COPYING-MPL-1.1
18 *
19 * The contents of this file are subject to the Mozilla Public License
20 * Version 1.1 (the "License"); you may not use this file except in
21 * compliance with the License. You may obtain a copy of the License at
22 * http://www.mozilla.org/MPL/
23 *
24 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
25 * OF ANY KIND, either express or implied. See the LGPL or the MPL for
26 * the specific language governing rights and limitations.
27 *
28 * The Original Code is the cairo graphics library.
29 *
30 * The Initial Developer of the Original Code is University of Southern
31 * California.
32 *
33 * Contributor(s):
34 * Benjamin Otte <otte@redhat.com>
35 */
36
37#ifndef CAIRO_GOBJECT_H
38#define CAIRO_GOBJECT_H
39
40#include <cairo.h>
41
42#if CAIRO_HAS_GOBJECT_FUNCTIONS
43
44#include <glib-object.h>
45
46CAIRO_BEGIN_DECLS
47
48/* structs */
49
50#define CAIRO_GOBJECT_TYPE_CONTEXT cairo_gobject_context_get_type ()
51cairo_public GType
52cairo_gobject_context_get_type (void);
53
54#define CAIRO_GOBJECT_TYPE_DEVICE cairo_gobject_device_get_type ()
55cairo_public GType
56cairo_gobject_device_get_type (void);
57
58#define CAIRO_GOBJECT_TYPE_MATRIX cairo_gobject_matrix_get_type ()
59cairo_public GType
60cairo_gobject_matrix_get_type (void);
61
62#define CAIRO_GOBJECT_TYPE_PATTERN cairo_gobject_pattern_get_type ()
63cairo_public GType
64cairo_gobject_pattern_get_type (void);
65
66#define CAIRO_GOBJECT_TYPE_SURFACE cairo_gobject_surface_get_type ()
67cairo_public GType
68cairo_gobject_surface_get_type (void);
69
70#define CAIRO_GOBJECT_TYPE_RECTANGLE cairo_gobject_rectangle_get_type ()
71cairo_public GType
72cairo_gobject_rectangle_get_type (void);
73
74#define CAIRO_GOBJECT_TYPE_SCALED_FONT cairo_gobject_scaled_font_get_type ()
75cairo_public GType
76cairo_gobject_scaled_font_get_type (void);
77
78#define CAIRO_GOBJECT_TYPE_FONT_FACE cairo_gobject_font_face_get_type ()
79cairo_public GType
80cairo_gobject_font_face_get_type (void);
81
82#define CAIRO_GOBJECT_TYPE_FONT_OPTIONS cairo_gobject_font_options_get_type ()
83cairo_public GType
84cairo_gobject_font_options_get_type (void);
85
86#define CAIRO_GOBJECT_TYPE_RECTANGLE_INT cairo_gobject_rectangle_int_get_type ()
87cairo_public GType
88cairo_gobject_rectangle_int_get_type (void);
89
90#define CAIRO_GOBJECT_TYPE_REGION cairo_gobject_region_get_type ()
91cairo_public GType
92cairo_gobject_region_get_type (void);
93
94/* enums */
95
96#define CAIRO_GOBJECT_TYPE_STATUS cairo_gobject_status_get_type ()
97cairo_public GType
98cairo_gobject_status_get_type (void);
99
100#define CAIRO_GOBJECT_TYPE_CONTENT cairo_gobject_content_get_type ()
101cairo_public GType
102cairo_gobject_content_get_type (void);
103
104#define CAIRO_GOBJECT_TYPE_OPERATOR cairo_gobject_operator_get_type ()
105cairo_public GType
106cairo_gobject_operator_get_type (void);
107
108#define CAIRO_GOBJECT_TYPE_ANTIALIAS cairo_gobject_antialias_get_type ()
109cairo_public GType
110cairo_gobject_antialias_get_type (void);
111
112#define CAIRO_GOBJECT_TYPE_FILL_RULE cairo_gobject_fill_rule_get_type ()
113cairo_public GType
114cairo_gobject_fill_rule_get_type (void);
115
116#define CAIRO_GOBJECT_TYPE_LINE_CAP cairo_gobject_line_cap_get_type ()
117cairo_public GType
118cairo_gobject_line_cap_get_type (void);
119
120#define CAIRO_GOBJECT_TYPE_LINE_JOIN cairo_gobject_line_join_get_type ()
121cairo_public GType
122cairo_gobject_line_join_get_type (void);
123
124#define CAIRO_GOBJECT_TYPE_TEXT_CLUSTER_FLAGS cairo_gobject_text_cluster_flags_get_type ()
125cairo_public GType
126cairo_gobject_text_cluster_flags_get_type (void);
127
128#define CAIRO_GOBJECT_TYPE_FONT_SLANT cairo_gobject_font_slant_get_type ()
129cairo_public GType
130cairo_gobject_font_slant_get_type (void);
131
132#define CAIRO_GOBJECT_TYPE_FONT_WEIGHT cairo_gobject_font_weight_get_type ()
133cairo_public GType
134cairo_gobject_font_weight_get_type (void);
135
136#define CAIRO_GOBJECT_TYPE_SUBPIXEL_ORDER cairo_gobject_subpixel_order_get_type ()
137cairo_public GType
138cairo_gobject_subpixel_order_get_type (void);
139
140#define CAIRO_GOBJECT_TYPE_HINT_STYLE cairo_gobject_hint_style_get_type ()
141cairo_public GType
142cairo_gobject_hint_style_get_type (void);
143
144/* historical accident */
145#define CAIRO_GOBJECT_TYPE_HNT_METRICS cairo_gobject_hint_metrics_get_type ()
146#define CAIRO_GOBJECT_TYPE_HINT_METRICS cairo_gobject_hint_metrics_get_type ()
147cairo_public GType
148cairo_gobject_hint_metrics_get_type (void);
149
150#define CAIRO_GOBJECT_TYPE_FONT_TYPE cairo_gobject_font_type_get_type ()
151cairo_public GType
152cairo_gobject_font_type_get_type (void);
153
154#define CAIRO_GOBJECT_TYPE_PATH_DATA_TYPE cairo_gobject_path_data_type_get_type ()
155cairo_public GType
156cairo_gobject_path_data_type_get_type (void);
157
158#define CAIRO_GOBJECT_TYPE_DEVICE_TYPE cairo_gobject_device_type_get_type ()
159cairo_public GType
160cairo_gobject_device_type_get_type (void);
161
162#define CAIRO_GOBJECT_TYPE_SURFACE_TYPE cairo_gobject_surface_type_get_type ()
163cairo_public GType
164cairo_gobject_surface_type_get_type (void);
165
166#define CAIRO_GOBJECT_TYPE_FORMAT cairo_gobject_format_get_type ()
167cairo_public GType
168cairo_gobject_format_get_type (void);
169
170#define CAIRO_GOBJECT_TYPE_PATTERN_TYPE cairo_gobject_pattern_type_get_type ()
171cairo_public GType
172cairo_gobject_pattern_type_get_type (void);
173
174#define CAIRO_GOBJECT_TYPE_EXTEND cairo_gobject_extend_get_type ()
175cairo_public GType
176cairo_gobject_extend_get_type (void);
177
178#define CAIRO_GOBJECT_TYPE_FILTER cairo_gobject_filter_get_type ()
179cairo_public GType
180cairo_gobject_filter_get_type (void);
181
182#define CAIRO_GOBJECT_TYPE_REGION_OVERLAP cairo_gobject_region_overlap_get_type ()
183cairo_public GType
184cairo_gobject_region_overlap_get_type (void);
185
186CAIRO_END_DECLS
187
188#else /* CAIRO_HAS_GOBJECT_FUNCTIONS */
189# error Cairo was not compiled with support for GObject
190#endif /* CAIRO_HAS_GOBJECT_FUNCTIONS */
191
192#endif /* CAIRO_GOBJECT_H */
193

source code of include/cairo/cairo-gobject.h