1 | /* GDK - The GIMP Drawing Kit |
2 | * |
3 | * gdkcairocontext.h: specific Cairo wrappers |
4 | * |
5 | * Copyright © 2018 Benjamin Otte |
6 | * |
7 | * This library is free software; you can redistribute it and/or |
8 | * modify it under the terms of the GNU Library General Public |
9 | * License as published by the Free Software Foundation; either |
10 | * version 2 of the License, or (at your option) any later version. |
11 | * |
12 | * This library is distributed in the hope that it will be useful, |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | * Library General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU Library General Public |
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
19 | */ |
20 | |
21 | #ifndef __GDK_CAIRO_CONTEXT__ |
22 | #define __GDK_CAIRO_CONTEXT__ |
23 | |
24 | #if !defined (__GDK_H_INSIDE__) && !defined (GTK_COMPILATION) |
25 | #error "Only <gdk/gdk.h> can be included directly." |
26 | #endif |
27 | |
28 | #include <gdk/gdkversionmacros.h> |
29 | #include <gdk/gdktypes.h> |
30 | |
31 | #include <cairo.h> |
32 | |
33 | G_BEGIN_DECLS |
34 | |
35 | #define GDK_TYPE_CAIRO_CONTEXT (gdk_cairo_context_get_type ()) |
36 | #define GDK_CAIRO_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_CAIRO_CONTEXT, GdkCairoContext)) |
37 | #define GDK_IS_CAIRO_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_CAIRO_CONTEXT)) |
38 | |
39 | #define GDK_CAIRO_ERROR (gdk_cairo_error_quark ()) |
40 | |
41 | GDK_AVAILABLE_IN_ALL |
42 | GType gdk_cairo_context_get_type (void) G_GNUC_CONST; |
43 | |
44 | GDK_AVAILABLE_IN_ALL |
45 | cairo_t * gdk_cairo_context_cairo_create (GdkCairoContext *self); |
46 | |
47 | G_END_DECLS |
48 | |
49 | #endif /* __GDK_CAIRO_CONTEXT__ */ |
50 | |