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