1/*
2 * Copyright © 2016 Endless
3 * 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 Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 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 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 *
18 * Authors: Benjamin Otte <otte@gnome.org>
19 */
20
21#ifndef __GSK_CAIRO_RENDERER_H__
22#define __GSK_CAIRO_RENDERER_H__
23
24#include <cairo.h>
25#include <gsk/gskrenderer.h>
26
27G_BEGIN_DECLS
28
29#define GSK_TYPE_CAIRO_RENDERER (gsk_cairo_renderer_get_type ())
30
31#define GSK_CAIRO_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GSK_TYPE_CAIRO_RENDERER, GskCairoRenderer))
32#define GSK_IS_CAIRO_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GSK_TYPE_CAIRO_RENDERER))
33#define GSK_CAIRO_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GSK_TYPE_CAIRO_RENDERER, GskCairoRendererClass))
34#define GSK_IS_CAIRO_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GSK_TYPE_CAIRO_RENDERER))
35#define GSK_CAIRO_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GSK_TYPE_CAIRO_RENDERER, GskCairoRendererClass))
36
37/**
38 * GskCairoRenderer:
39 *
40 * A GSK renderer that is using cairo.
41 *
42 * Since it is using cairo, this renderer cannot support
43 * 3D transformations.
44 */
45typedef struct _GskCairoRenderer GskCairoRenderer;
46typedef struct _GskCairoRendererClass GskCairoRendererClass;
47
48GDK_AVAILABLE_IN_ALL
49GType gsk_cairo_renderer_get_type (void) G_GNUC_CONST;
50
51GDK_AVAILABLE_IN_ALL
52GskRenderer * gsk_cairo_renderer_new (void);
53
54G_END_DECLS
55
56#endif /* __GSK_CAIRO_RENDERER_H__ */
57

source code of gtk/gsk/gskcairorenderer.h