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.functions;
26 
27 import std.stdio;
28 import rsvg.c.types;
29 import gtkd.Loader;
30 
31 version (Windows)
32 	static immutable LIBRARY_RSVG = ["librsvg-2-2.dll;rsvg-2-2.2.dll;rsvg-2.dll"];
33 else version (OSX)
34 	static immutable LIBRARY_RSVG = ["librsvg-2.2.dylib"];
35 else
36 	static immutable LIBRARY_RSVG = ["librsvg-2.so.2"];
37 
38 shared static this()
39 {
40 	// rsvg.Handle
41 
42 	Linker.link(rsvg_handle_get_type, "rsvg_handle_get_type", LIBRARY_RSVG);
43 	Linker.link(rsvg_handle_new, "rsvg_handle_new", LIBRARY_RSVG);
44 	Linker.link(rsvg_handle_new_from_data, "rsvg_handle_new_from_data", LIBRARY_RSVG);
45 	Linker.link(rsvg_handle_new_from_file, "rsvg_handle_new_from_file", LIBRARY_RSVG);
46 	Linker.link(rsvg_handle_new_from_gfile_sync, "rsvg_handle_new_from_gfile_sync", LIBRARY_RSVG);
47 	Linker.link(rsvg_handle_new_from_stream_sync, "rsvg_handle_new_from_stream_sync", LIBRARY_RSVG);
48 	Linker.link(rsvg_handle_new_with_flags, "rsvg_handle_new_with_flags", LIBRARY_RSVG);
49 	Linker.link(rsvg_handle_close, "rsvg_handle_close", LIBRARY_RSVG);
50 	Linker.link(rsvg_handle_get_base_uri, "rsvg_handle_get_base_uri", LIBRARY_RSVG);
51 	Linker.link(rsvg_handle_get_dimensions, "rsvg_handle_get_dimensions", LIBRARY_RSVG);
52 	Linker.link(rsvg_handle_get_dimensions_sub, "rsvg_handle_get_dimensions_sub", LIBRARY_RSVG);
53 	Linker.link(rsvg_handle_get_pixbuf, "rsvg_handle_get_pixbuf", LIBRARY_RSVG);
54 	Linker.link(rsvg_handle_get_pixbuf_sub, "rsvg_handle_get_pixbuf_sub", LIBRARY_RSVG);
55 	Linker.link(rsvg_handle_get_position_sub, "rsvg_handle_get_position_sub", LIBRARY_RSVG);
56 	Linker.link(rsvg_handle_has_sub, "rsvg_handle_has_sub", LIBRARY_RSVG);
57 	Linker.link(rsvg_handle_internal_set_testing, "rsvg_handle_internal_set_testing", LIBRARY_RSVG);
58 	Linker.link(rsvg_handle_read_stream_sync, "rsvg_handle_read_stream_sync", LIBRARY_RSVG);
59 	Linker.link(rsvg_handle_render_cairo, "rsvg_handle_render_cairo", LIBRARY_RSVG);
60 	Linker.link(rsvg_handle_render_cairo_sub, "rsvg_handle_render_cairo_sub", LIBRARY_RSVG);
61 	Linker.link(rsvg_handle_set_base_gfile, "rsvg_handle_set_base_gfile", LIBRARY_RSVG);
62 	Linker.link(rsvg_handle_set_base_uri, "rsvg_handle_set_base_uri", LIBRARY_RSVG);
63 	Linker.link(rsvg_handle_set_dpi, "rsvg_handle_set_dpi", LIBRARY_RSVG);
64 	Linker.link(rsvg_handle_set_dpi_x_y, "rsvg_handle_set_dpi_x_y", LIBRARY_RSVG);
65 	Linker.link(rsvg_handle_write, "rsvg_handle_write", LIBRARY_RSVG);
66 	Linker.link(rsvg_cleanup, "rsvg_cleanup", LIBRARY_RSVG);
67 	Linker.link(rsvg_set_default_dpi, "rsvg_set_default_dpi", LIBRARY_RSVG);
68 	Linker.link(rsvg_set_default_dpi_x_y, "rsvg_set_default_dpi_x_y", LIBRARY_RSVG);
69 }
70 
71 __gshared extern(C)
72 {
73 
74 	// rsvg.Handle
75 
76 	GType function() c_rsvg_handle_get_type;
77 	RsvgHandle* function() c_rsvg_handle_new;
78 	RsvgHandle* function(ubyte* data, size_t dataLen, GError** err) c_rsvg_handle_new_from_data;
79 	RsvgHandle* function(const(char)* fileName, GError** err) c_rsvg_handle_new_from_file;
80 	RsvgHandle* function(GFile* file, RsvgHandleFlags flags, GCancellable* cancellable, GError** err) c_rsvg_handle_new_from_gfile_sync;
81 	RsvgHandle* function(GInputStream* inputStream, GFile* baseFile, RsvgHandleFlags flags, GCancellable* cancellable, GError** err) c_rsvg_handle_new_from_stream_sync;
82 	RsvgHandle* function(RsvgHandleFlags flags) c_rsvg_handle_new_with_flags;
83 	int function(RsvgHandle* handle, GError** err) c_rsvg_handle_close;
84 	const(char)* function(RsvgHandle* handle) c_rsvg_handle_get_base_uri;
85 	void function(RsvgHandle* handle, RsvgDimensionData* dimensionData) c_rsvg_handle_get_dimensions;
86 	int function(RsvgHandle* handle, RsvgDimensionData* dimensionData, const(char)* id) c_rsvg_handle_get_dimensions_sub;
87 	GdkPixbuf* function(RsvgHandle* handle) c_rsvg_handle_get_pixbuf;
88 	GdkPixbuf* function(RsvgHandle* handle, const(char)* id) c_rsvg_handle_get_pixbuf_sub;
89 	int function(RsvgHandle* handle, RsvgPositionData* positionData, const(char)* id) c_rsvg_handle_get_position_sub;
90 	int function(RsvgHandle* handle, const(char)* id) c_rsvg_handle_has_sub;
91 	void function(RsvgHandle* handle, int testing) c_rsvg_handle_internal_set_testing;
92 	int function(RsvgHandle* handle, GInputStream* stream, GCancellable* cancellable, GError** err) c_rsvg_handle_read_stream_sync;
93 	int function(RsvgHandle* handle, cairo_t* cr) c_rsvg_handle_render_cairo;
94 	int function(RsvgHandle* handle, cairo_t* cr, const(char)* id) c_rsvg_handle_render_cairo_sub;
95 	void function(RsvgHandle* handle, GFile* baseFile) c_rsvg_handle_set_base_gfile;
96 	void function(RsvgHandle* handle, const(char)* baseUri) c_rsvg_handle_set_base_uri;
97 	void function(RsvgHandle* handle, double dpi) c_rsvg_handle_set_dpi;
98 	void function(RsvgHandle* handle, double dpiX, double dpiY) c_rsvg_handle_set_dpi_x_y;
99 	int function(RsvgHandle* handle, char* buf, size_t count, GError** err) c_rsvg_handle_write;
100 	void function() c_rsvg_cleanup;
101 	void function(double dpi) c_rsvg_set_default_dpi;
102 	void function(double dpiX, double dpiY) c_rsvg_set_default_dpi_x_y;
103 }
104 
105 
106 // rsvg.Handle
107 
108 alias c_rsvg_handle_get_type rsvg_handle_get_type;
109 alias c_rsvg_handle_new rsvg_handle_new;
110 alias c_rsvg_handle_new_from_data rsvg_handle_new_from_data;
111 alias c_rsvg_handle_new_from_file rsvg_handle_new_from_file;
112 alias c_rsvg_handle_new_from_gfile_sync rsvg_handle_new_from_gfile_sync;
113 alias c_rsvg_handle_new_from_stream_sync rsvg_handle_new_from_stream_sync;
114 alias c_rsvg_handle_new_with_flags rsvg_handle_new_with_flags;
115 alias c_rsvg_handle_close rsvg_handle_close;
116 alias c_rsvg_handle_get_base_uri rsvg_handle_get_base_uri;
117 alias c_rsvg_handle_get_dimensions rsvg_handle_get_dimensions;
118 alias c_rsvg_handle_get_dimensions_sub rsvg_handle_get_dimensions_sub;
119 alias c_rsvg_handle_get_pixbuf rsvg_handle_get_pixbuf;
120 alias c_rsvg_handle_get_pixbuf_sub rsvg_handle_get_pixbuf_sub;
121 alias c_rsvg_handle_get_position_sub rsvg_handle_get_position_sub;
122 alias c_rsvg_handle_has_sub rsvg_handle_has_sub;
123 alias c_rsvg_handle_internal_set_testing rsvg_handle_internal_set_testing;
124 alias c_rsvg_handle_read_stream_sync rsvg_handle_read_stream_sync;
125 alias c_rsvg_handle_render_cairo rsvg_handle_render_cairo;
126 alias c_rsvg_handle_render_cairo_sub rsvg_handle_render_cairo_sub;
127 alias c_rsvg_handle_set_base_gfile rsvg_handle_set_base_gfile;
128 alias c_rsvg_handle_set_base_uri rsvg_handle_set_base_uri;
129 alias c_rsvg_handle_set_dpi rsvg_handle_set_dpi;
130 alias c_rsvg_handle_set_dpi_x_y rsvg_handle_set_dpi_x_y;
131 alias c_rsvg_handle_write rsvg_handle_write;
132 alias c_rsvg_cleanup rsvg_cleanup;
133 alias c_rsvg_set_default_dpi rsvg_set_default_dpi;
134 alias c_rsvg_set_default_dpi_x_y rsvg_set_default_dpi_x_y;