source: appstream-generator/src/asgen/bindings/rsvg.d @ 4841

Last change on this file since 4841 was 4841, checked in by Juanma, 2 years ago

Initial release

File size: 1.4 KB
Line 
1/*
2 * Copyright (C) 2016 Matthias Klumpp <matthias@tenstral.net>
3 *
4 * Licensed under the GNU Lesser General Public License Version 3
5 *
6 * This library is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the license, or
9 * (at your option) any later version.
10 *
11 * This software is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20module asgen.bindings.rsvg;
21
22import gi.glibtypes;
23import asgen.bindings.cairo;
24
25extern(C):
26nothrow:
27@nogc:
28
29struct _RsvgHandle {}
30alias RsvgHandle = _RsvgHandle*;
31
32struct RsvgDimensionData {
33    int width;
34    int height;
35    double em;
36    double ex;
37};
38
39RsvgHandle rsvg_handle_new ();
40void g_object_unref (void* object);
41
42bool rsvg_handle_write (RsvgHandle handle, const(ubyte) *buf, long count, GError **error);
43bool rsvg_handle_close (RsvgHandle handle, GError **error);
44void rsvg_handle_get_dimensions (RsvgHandle handle, RsvgDimensionData *dimension_data);
45
46bool rsvg_handle_render_cairo (RsvgHandle handle, cairo_p cr);
Note: See TracBrowser for help on using the repository browser.