1 | /* GDK - The GIMP Drawing Kit |
2 | * |
3 | * gdkcairocontextprivate.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_PRIVATE__ |
22 | #define __GDK_CAIRO_CONTEXT_PRIVATE__ |
23 | |
24 | #include "gdkcairocontext.h" |
25 | |
26 | #include "gdkdrawcontextprivate.h" |
27 | |
28 | #include <cairo.h> |
29 | |
30 | G_BEGIN_DECLS |
31 | |
32 | #define GDK_CAIRO_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_CAIRO_CONTEXT, GdkCairoContextClass)) |
33 | #define GDK_IS_CAIRO_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_CAIRO_CONTEXT)) |
34 | #define GDK_CAIRO_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_CAIRO_CONTEXT, GdkCairoContextClass)) |
35 | |
36 | typedef struct _GdkCairoContextClass GdkCairoContextClass; |
37 | |
38 | struct _GdkCairoContext |
39 | { |
40 | GdkDrawContext parent_instance; |
41 | }; |
42 | |
43 | struct _GdkCairoContextClass |
44 | { |
45 | GdkDrawContextClass parent_class; |
46 | |
47 | cairo_t * (* cairo_create) (GdkCairoContext *self); |
48 | }; |
49 | |
50 | G_END_DECLS |
51 | |
52 | #endif /* __GDK__CAIRO_CONTEXT_PRIVATE__ */ |
53 | |