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"];
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_set_default_dpi, "rsvg_set_default_dpi", LIBRARY_RSVG);
67 	Linker.link(rsvg_set_default_dpi_x_y, "rsvg_set_default_dpi_x_y", LIBRARY_RSVG);
68 }
69 
70 __gshared extern(C)
71 {
72 
73 	// rsvg.Handle
74 
75 	GType function() c_rsvg_handle_get_type;
76 	RsvgHandle* function() c_rsvg_handle_new;
77 	RsvgHandle* function(ubyte* data, size_t dataLen, GError** err) c_rsvg_handle_new_from_data;
78 	RsvgHandle* function(const(char)* fileName, GError** err) c_rsvg_handle_new_from_file;
79 	RsvgHandle* function(GFile* file, RsvgHandleFlags flags, GCancellable* cancellable, GError** err) c_rsvg_handle_new_from_gfile_sync;
80 	RsvgHandle* function(GInputStream* inputStream, GFile* baseFile, RsvgHandleFlags flags, GCancellable* cancellable, GError** err) c_rsvg_handle_new_from_stream_sync;
81 	RsvgHandle* function(RsvgHandleFlags flags) c_rsvg_handle_new_with_flags;
82 	int function(RsvgHandle* handle, GError** err) c_rsvg_handle_close;
83 	const(char)* function(RsvgHandle* handle) c_rsvg_handle_get_base_uri;
84 	void function(RsvgHandle* handle, RsvgDimensionData* dimensionData) c_rsvg_handle_get_dimensions;
85 	int function(RsvgHandle* handle, RsvgDimensionData* dimensionData, const(char)* id) c_rsvg_handle_get_dimensions_sub;
86 	GdkPixbuf* function(RsvgHandle* handle) c_rsvg_handle_get_pixbuf;
87 	GdkPixbuf* function(RsvgHandle* handle, const(char)* id) c_rsvg_handle_get_pixbuf_sub;
88 	int function(RsvgHandle* handle, RsvgPositionData* positionData, const(char)* id) c_rsvg_handle_get_position_sub;
89 	int function(RsvgHandle* handle, const(char)* id) c_rsvg_handle_has_sub;
90 	void function(RsvgHandle* handle, int testing) c_rsvg_handle_internal_set_testing;
91 	int function(RsvgHandle* handle, GInputStream* stream, GCancellable* cancellable, GError** err) c_rsvg_handle_read_stream_sync;
92 	int function(RsvgHandle* handle, cairo_t* cr) c_rsvg_handle_render_cairo;
93 	int function(RsvgHandle* handle, cairo_t* cr, const(char)* id) c_rsvg_handle_render_cairo_sub;
94 	void function(RsvgHandle* handle, GFile* baseFile) c_rsvg_handle_set_base_gfile;
95 	void function(RsvgHandle* handle, const(char)* baseUri) c_rsvg_handle_set_base_uri;
96 	void function(RsvgHandle* handle, double dpi) c_rsvg_handle_set_dpi;
97 	void function(RsvgHandle* handle, double dpiX, double dpiY) c_rsvg_handle_set_dpi_x_y;
98 	int function(RsvgHandle* handle, char* buf, size_t count, GError** err) c_rsvg_handle_write;
99 	void function(double dpi) c_rsvg_set_default_dpi;
100 	void function(double dpiX, double dpiY) c_rsvg_set_default_dpi_x_y;
101 }
102 
103 
104 // rsvg.Handle
105 
106 alias c_rsvg_handle_get_type rsvg_handle_get_type;
107 alias c_rsvg_handle_new rsvg_handle_new;
108 alias c_rsvg_handle_new_from_data rsvg_handle_new_from_data;
109 alias c_rsvg_handle_new_from_file rsvg_handle_new_from_file;
110 alias c_rsvg_handle_new_from_gfile_sync rsvg_handle_new_from_gfile_sync;
111 alias c_rsvg_handle_new_from_stream_sync rsvg_handle_new_from_stream_sync;
112 alias c_rsvg_handle_new_with_flags rsvg_handle_new_with_flags;
113 alias c_rsvg_handle_close rsvg_handle_close;
114 alias c_rsvg_handle_get_base_uri rsvg_handle_get_base_uri;
115 alias c_rsvg_handle_get_dimensions rsvg_handle_get_dimensions;
116 alias c_rsvg_handle_get_dimensions_sub rsvg_handle_get_dimensions_sub;
117 alias c_rsvg_handle_get_pixbuf rsvg_handle_get_pixbuf;
118 alias c_rsvg_handle_get_pixbuf_sub rsvg_handle_get_pixbuf_sub;
119 alias c_rsvg_handle_get_position_sub rsvg_handle_get_position_sub;
120 alias c_rsvg_handle_has_sub rsvg_handle_has_sub;
121 alias c_rsvg_handle_internal_set_testing rsvg_handle_internal_set_testing;
122 alias c_rsvg_handle_read_stream_sync rsvg_handle_read_stream_sync;
123 alias c_rsvg_handle_render_cairo rsvg_handle_render_cairo;
124 alias c_rsvg_handle_render_cairo_sub rsvg_handle_render_cairo_sub;
125 alias c_rsvg_handle_set_base_gfile rsvg_handle_set_base_gfile;
126 alias c_rsvg_handle_set_base_uri rsvg_handle_set_base_uri;
127 alias c_rsvg_handle_set_dpi rsvg_handle_set_dpi;
128 alias c_rsvg_handle_set_dpi_x_y rsvg_handle_set_dpi_x_y;
129 alias c_rsvg_handle_write rsvg_handle_write;
130 alias c_rsvg_set_default_dpi rsvg_set_default_dpi;
131 alias c_rsvg_set_default_dpi_x_y rsvg_set_default_dpi_x_y;