1
/* librsvg-2.0.vapi generated by vapigen-0.18, do not modify. */
3
[CCode (cprefix = "Rsvg", gir_namespace = "Rsvg", gir_version = "2.0", lower_case_cprefix = "rsvg_")]
6
[CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_MAJOR_VERSION")]
7
public const int MAJOR;
8
[CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_MICRO_VERSION")]
9
public const int MICRO;
10
[CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_MINOR_VERSION")]
11
public const int MINOR;
12
[CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_VERSION")]
13
public const string STRING;
14
[CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_CHECK_VERSION")]
15
public static bool check (int major, int minor, int micro);
17
[CCode (cheader_filename = "librsvg/rsvg.h")]
18
public class Handle : GLib.Object {
19
[CCode (has_construct_function = false)]
21
public bool close () throws GLib.Error;
22
[Deprecated (replacement = "GLib.Object.unref")]
24
[CCode (has_construct_function = false)]
25
public Handle.from_data ([CCode (array_length_cname = "data_len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data) throws GLib.Error;
26
[CCode (has_construct_function = false)]
27
public Handle.from_file (string file_name) throws GLib.Error;
28
[CCode (has_construct_function = false)]
29
public Handle.from_gfile_sync (GLib.File file, Rsvg.HandleFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
30
[CCode (has_construct_function = false)]
31
public Handle.from_stream_sync (GLib.InputStream input_stream, GLib.File? base_file, Rsvg.HandleFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
32
public unowned string get_base_uri ();
33
[Deprecated (since = "2.36")]
34
public unowned string get_desc ();
35
public Rsvg.DimensionData get_dimensions ();
36
public bool get_dimensions_sub (out Rsvg.DimensionData dimension_data, string id);
37
[Deprecated (since = "2.36")]
38
public unowned string get_metadata ();
39
public Gdk.Pixbuf get_pixbuf ();
40
public Gdk.Pixbuf get_pixbuf_sub (string id);
41
public bool get_position_sub (out Rsvg.PositionData position_data, string id);
42
[Deprecated (since = "2.36")]
43
public unowned string get_title ();
44
public bool has_sub (string id);
45
public bool read_stream_sync (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
46
public bool render_cairo (Cairo.Context cr);
47
public bool render_cairo_sub (Cairo.Context cr, string id);
48
public void set_base_gfile (GLib.File base_file);
49
public void set_base_uri (string base_uri);
50
public void set_dpi (double dpi);
51
public void set_dpi_x_y (double dpi_x, double dpi_y);
52
[Deprecated (replacement = "render_cairo")]
53
public void set_size_callback (owned Rsvg.SizeFunc size_func);
54
[CCode (has_construct_function = false)]
55
public Handle.with_flags (Rsvg.HandleFlags flags);
56
public bool write ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
57
public string base_uri { get; set construct; }
59
public string desc { owned get; }
61
public double dpi_x { get; set construct; }
63
public double dpi_y { get; set construct; }
65
public double em { get; }
67
public double ex { get; }
69
public Rsvg.HandleFlags flags { get; construct; }
71
public int height { get; }
73
public string metadata { owned get; }
75
public string title { owned get; }
77
public int width { get; }
79
[CCode (cheader_filename = "librsvg/rsvg.h", has_type_id = false)]
80
public struct DimensionData {
86
[CCode (cheader_filename = "librsvg/rsvg.h", has_type_id = false)]
87
public struct PositionData {
91
[CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_HANDLE_FLAGS_", type_id = "rsvg_handle_flags_get_type ()")]
93
public enum HandleFlags {
96
[CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_ERROR_")]
97
public errordomain Error {
99
public static GLib.Quark quark ();
101
[CCode (cheader_filename = "librsvg/rsvg.h")]
103
public delegate void SizeFunc (ref int width, ref int height);
104
[CCode (cheader_filename = "librsvg/rsvg.h")]
105
public static void cleanup ();
106
[CCode (cheader_filename = "librsvg/rsvg.h")]
107
[Deprecated (since = "2.36")]
108
public static void init ();
109
[CCode (cheader_filename = "librsvg/rsvg.h")]
111
public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
112
[CCode (cheader_filename = "librsvg/rsvg.h")]
114
public static Gdk.Pixbuf pixbuf_from_file_at_max_size (string file_name, int max_width, int max_height) throws GLib.Error;
115
[CCode (cheader_filename = "librsvg/rsvg.h")]
117
public static Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
118
[CCode (cheader_filename = "librsvg/rsvg.h")]
120
public static Gdk.Pixbuf pixbuf_from_file_at_zoom (string file_name, double x_zoom, double y_zoom) throws GLib.Error;
121
[CCode (cheader_filename = "librsvg/rsvg.h")]
123
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;
124
[CCode (cheader_filename = "librsvg/rsvg.h")]
125
public static void set_default_dpi (double dpi);
126
[CCode (cheader_filename = "librsvg/rsvg.h")]
127
public static void set_default_dpi_x_y (double dpi_x, double dpi_y);
128
[CCode (cheader_filename = "librsvg/rsvg.h")]
129
[Deprecated (since = "2.36")]
130
public static void term ();