Rsvg-2.0-custom.vala 2.12 KB
Newer Older
Evan Nemerson's avatar
Evan Nemerson committed
1 2
namespace Rsvg {
	public class Handle : GLib.Object {
3
		[Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
4
		public unowned string get_desc ();
5
		[Version (deprecated = true, deprecated_since = "2.13.90", replacement = "GLib.Object.unref")]
Evan Nemerson's avatar
Evan Nemerson committed
6
		public void free ();
7
		[Version (deprecated = true, deprecated_since = "2.13.90", replacement = "render_cairo")]
Evan Nemerson's avatar
Evan Nemerson committed
8
		public void set_size_callback (owned Rsvg.SizeFunc size_func);
9
		[Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
10
		public unowned string get_title ();
11
		[Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
12 13 14 15 16 17 18 19
		public unowned string get_metadata ();
	}

	namespace Version {
		[CCode (cname = "LIBRSVG_CHECK_VERSION")]
		public static bool check (int major, int minor, int micro);
	}

20
	[Version (deprecated = true, deprecated_since = "2.13.90", replacement = "render_cairo")]
Evan Nemerson's avatar
Evan Nemerson committed
21 22
	public delegate void SizeFunc (ref int width, ref int height);

23
	[Version (deprecated = true, deprecated_since = "2.36", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
24
	public static void init ();
25
	[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
26
	public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
27
	[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
28
	public static Gdk.Pixbuf pixbuf_from_file_at_max_size (string file_name, int max_width, int max_height) throws GLib.Error;
29
	[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
30
	public static Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
31
	[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
32
	public static Gdk.Pixbuf pixbuf_from_file_at_zoom (string file_name, double x_zoom, double y_zoom) throws GLib.Error;
33
	[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
34
	public static Gdk.Pixbuf pixbuf_from_file_at_zoom_with_max (string file_name, double x_zoom, double y_zoom, int max_width, int max_height) throws GLib.Error;
35
	[Version (deprecated = true, deprecated_since = "2.35.0", replacement = "")]
Evan Nemerson's avatar
Evan Nemerson committed
36 37
	public static void term ();
}