1/* GDK - The GIMP Drawing Kit
2 *
3 * Copyright © 2018 Benjamin Otte
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __GDK_WAYLAND_CAIRO_CONTEXT__
20#define __GDK_WAYLAND_CAIRO_CONTEXT__
21
22#include "gdkconfig.h"
23
24#include "gdkcairocontextprivate.h"
25
26G_BEGIN_DECLS
27
28#define GDK_TYPE_WAYLAND_CAIRO_CONTEXT (gdk_wayland_cairo_context_get_type ())
29#define GDK_WAYLAND_CAIRO_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_WAYLAND_CAIRO_CONTEXT, GdkWaylandCairoContext))
30#define GDK_IS_WAYLAND_CAIRO_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_WAYLAND_CAIRO_CONTEXT))
31#define GDK_WAYLAND_CAIRO_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_WAYLAND_CAIRO_CONTEXT, GdkWaylandCairoContextClass))
32#define GDK_IS_WAYLAND_CAIRO_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_WAYLAND_CAIRO_CONTEXT))
33#define GDK_WAYLAND_CAIRO_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_WAYLAND_CAIRO_CONTEXT, GdkWaylandCairoContextClass))
34
35typedef struct _GdkWaylandCairoContext GdkWaylandCairoContext;
36typedef struct _GdkWaylandCairoContextClass GdkWaylandCairoContextClass;
37
38struct _GdkWaylandCairoContext
39{
40 GdkCairoContext parent_instance;
41
42 GSList *surfaces;
43 cairo_surface_t *cached_surface;
44 cairo_surface_t *paint_surface;
45};
46
47struct _GdkWaylandCairoContextClass
48{
49 GdkCairoContextClass parent_class;
50};
51
52GDK_AVAILABLE_IN_ALL
53GType gdk_wayland_cairo_context_get_type (void) G_GNUC_CONST;
54
55G_END_DECLS
56
57#endif /* __GDK_WAYLAND_CAIRO_CONTEXT__ */
58

source code of gtk/gdk/wayland/gdkcairocontext-wayland.h