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 	/**
90 	 * parent instance
91 	 */
92 	GObject parent;
93 	RsvgHandlePrivate* priv;
94 	void*[15] AbiPadding;
95 }
96 
97 /**
98  * Class structure for #RsvgHandle.
99  */
100 struct RsvgHandleClass
101 {
102 	/**
103 	 * parent class
104 	 */
105 	GObjectClass parent;
106 	void*[15] AbiPadding;
107 }
108 
109 struct RsvgHandlePrivate;
110 
111 /**
112  * Position of an SVG fragment.
113  */
114 struct RsvgPositionData
115 {
116 	/**
117 	 * position on the x axis
118 	 */
119 	int x;
120 	/**
121 	 * position on the y axis
122 	 */
123 	int y;
124 }
125 
126 enum MAJOR_VERSION = 2;
127 alias LIBRSVG_MAJOR_VERSION = MAJOR_VERSION;
128 
129 enum MICRO_VERSION = 4;
130 alias LIBRSVG_MICRO_VERSION = MICRO_VERSION;
131 
132 enum MINOR_VERSION = 42;
133 alias LIBRSVG_MINOR_VERSION = MINOR_VERSION;
134 
135 enum VERSION = "2.42.4";
136 alias LIBRSVG_VERSION = VERSION;