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 gtkc.rsvgtypes;
26 
27 public import gtkc.cairotypes;
28 public import gtkc.glibtypes;
29 public import gtkc.gobjecttypes;
30 public import gtkc.gdkpixbuftypes;
31 
32 /**
33  * An enumeration representing possible errors
34  */
35 public enum RsvgError
36 {
37 	/**
38 	 * the request failed
39 	 */
40 	FAILED = 0,
41 }
42 alias RsvgError Error;
43 
44 public enum RsvgHandleFlags
45 {
46 	/**
47 	 * none
48 	 */
49 	FLAGS_NONE = 0,
50 	/**
51 	 * Allow any SVG XML without size limitations.
52 	 * For security reasons, this should only be used for trusted input!
53 	 * Since: 2.40.3
54 	 */
55 	FLAG_UNLIMITED = 1,
56 	/**
57 	 * Keeps the image data when loading images,
58 	 * for use by cairo when painting to e.g. a PDF surface. This will make the
59 	 * resulting PDF file smaller and faster.
60 	 * Since: 2.40.3
61 	 */
62 	FLAG_KEEP_IMAGE_DATA = 2,
63 }
64 alias RsvgHandleFlags HandleFlags;
65 
66 struct RsvgDimensionData
67 {
68 	/**
69 	 * SVG's width, in pixels
70 	 */
71 	int width;
72 	/**
73 	 * SVG's height, in pixels
74 	 */
75 	int height;
76 	/**
77 	 * em
78 	 */
79 	double em;
80 	/**
81 	 * ex
82 	 */
83 	double ex;
84 }
85 
86 struct RsvgHandle
87 {
88 	GObject parent;
89 	RsvgHandlePrivate* priv;
90 	void*[15] AbiPadding;
91 }
92 
93 /**
94  * Class structure for #RsvgHandle
95  */
96 struct RsvgHandleClass
97 {
98 	/**
99 	 * parent class
100 	 */
101 	GObjectClass parent;
102 	void*[15] AbiPadding;
103 }
104 
105 struct RsvgHandlePrivate;
106 
107 /**
108  * Position of an SVG fragment.
109  */
110 struct RsvgPositionData
111 {
112 	/**
113 	 * position on the x axis
114 	 */
115 	int x;
116 	/**
117 	 * position on the y axis
118 	 */
119 	int y;
120 }