1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD 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
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module rsvg.c.types;
26 
27 public import cairo.c.types;
28 public import gdkpixbuf.c.types;
29 public import gio.c.types;
30 public import gobject.c.types;
31 
32 
33 /**
34  * An enumeration representing possible errors
35  */
36 public enum RsvgError
37 {
38 	/**
39 	 * the request failed
40 	 */
41 	FAILED = 0,
42 }
43 alias RsvgError Error;
44 
45 public enum RsvgHandleFlags
46 {
47 	/**
48 	 * none
49 	 */
50 	FLAGS_NONE = 0,
51 	/**
52 	 * Allow any SVG XML without size limitations.
53 	 * For security reasons, this should only be used for trusted input!
54 	 * Since: 2.40.3
55 	 */
56 	FLAG_UNLIMITED = 1,
57 	/**
58 	 * Keeps the image data when loading images,
59 	 * for use by cairo when painting to e.g. a PDF surface. This will make the
60 	 * resulting PDF file smaller and faster.
61 	 * Since: 2.40.3
62 	 */
63 	FLAG_KEEP_IMAGE_DATA = 2,
64 }
65 alias RsvgHandleFlags HandleFlags;
66 
67 struct RsvgDimensionData
68 {
69 	/**
70 	 * SVG's width, in pixels
71 	 */
72 	int width;
73 	/**
74 	 * SVG's height, in pixels
75 	 */
76 	int height;
77 	/**
78 	 * em
79 	 */
80 	double em;
81 	/**
82 	 * ex
83 	 */
84 	double ex;
85 }
86 
87 struct RsvgHandle
88 {
89 	GObject parent;
90 	RsvgHandlePrivate* priv;
91 	void*[15] AbiPadding;
92 }
93 
94 /**
95  * Class structure for #RsvgHandle
96  */
97 struct RsvgHandleClass
98 {
99 	/**
100 	 * parent class
101 	 */
102 	GObjectClass parent;
103 	void*[15] AbiPadding;
104 }
105 
106 struct RsvgHandlePrivate;
107 
108 /**
109  * Position of an SVG fragment.
110  */
111 struct RsvgPositionData
112 {
113 	/**
114 	 * position on the x axis
115 	 */
116 	int x;
117 	/**
118 	 * position on the y axis
119 	 */
120 	int y;
121 }
122 
123 enum MAJOR_VERSION = 2;
124 alias LIBRSVG_MAJOR_VERSION = MAJOR_VERSION;
125 
126 enum MICRO_VERSION = 19;
127 alias LIBRSVG_MICRO_VERSION = MICRO_VERSION;
128 
129 enum MINOR_VERSION = 40;
130 alias LIBRSVG_MINOR_VERSION = MINOR_VERSION;
131 
132 enum VERSION = "2.40.19";
133 alias LIBRSVG_VERSION = VERSION;