Guest User

Untitled

a guest
Jun 14th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Vala 6.07 KB | None | 0 0
  1. /* librsvg-2.0.vapi generated by vapigen-0.18, do not modify. */
  2.  
  3. [CCode (cprefix = "Rsvg", gir_namespace = "Rsvg", gir_version = "2.0", lower_case_cprefix = "rsvg_")]
  4. namespace Rsvg {
  5.     namespace Version {
  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);
  16.     }
  17.     [CCode (cheader_filename = "librsvg/rsvg.h")]
  18.     public class Handle : GLib.Object {
  19.         [CCode (has_construct_function = false)]
  20.         public Handle ();
  21.         public bool close () throws GLib.Error;
  22.         [Deprecated (replacement = "GLib.Object.unref")]
  23.         public void free ();
  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) 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) 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) 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; }
  58.         [NoAccessorMethod]
  59.         public string desc { owned get; }
  60.         [NoAccessorMethod]
  61.         public double dpi_x { get; set construct; }
  62.         [NoAccessorMethod]
  63.         public double dpi_y { get; set construct; }
  64.         [NoAccessorMethod]
  65.         public double em { get; }
  66.         [NoAccessorMethod]
  67.         public double ex { get; }
  68.         [NoAccessorMethod]
  69.         public Rsvg.HandleFlags flags { get; construct; }
  70.         [NoAccessorMethod]
  71.         public int height { get; }
  72.         [NoAccessorMethod]
  73.         public string metadata { owned get; }
  74.         [NoAccessorMethod]
  75.         public string title { owned get; }
  76.         [NoAccessorMethod]
  77.         public int width { get; }
  78.     }
  79.     [CCode (cheader_filename = "librsvg/rsvg.h", has_type_id = false)]
  80.     public struct DimensionData {
  81.         public int width;
  82.         public int height;
  83.         public double em;
  84.         public double ex;
  85.     }
  86.     [CCode (cheader_filename = "librsvg/rsvg.h", has_type_id = false)]
  87.     public struct PositionData {
  88.         public int x;
  89.         public int y;
  90.     }
  91.     [CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_HANDLE_FLAGS_")]
  92.     [Flags]
  93.     public enum HandleFlags {
  94.         NONE
  95.     }
  96.     [CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_ERROR_")]
  97.     public errordomain Error {
  98.         FAILED;
  99.         public static GLib.Quark quark ();
  100.     }
  101.     [CCode (cheader_filename = "librsvg/rsvg.h")]
  102.     [Deprecated]
  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")]
  110.     [Deprecated]
  111.     public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
  112.     [CCode (cheader_filename = "librsvg/rsvg.h")]
  113.     [Deprecated]
  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")]
  116.     [Deprecated]
  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")]
  119.     [Deprecated]
  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")]
  122.     [Deprecated]
  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", cname = "librsvg_postinit")]
  125.     public static void postinit (void* app, void* modinfo);
  126.     [CCode (cheader_filename = "librsvg/rsvg.h", cname = "librsvg_preinit")]
  127.     public static void preinit (void* app, void* modinfo);
  128.     [CCode (cheader_filename = "librsvg/rsvg.h")]
  129.     public static void set_default_dpi (double dpi);
  130.     [CCode (cheader_filename = "librsvg/rsvg.h")]
  131.     public static void set_default_dpi_x_y (double dpi_x, double dpi_y);
  132.     [CCode (cheader_filename = "librsvg/rsvg.h")]
  133.     [Deprecated (since = "2.36")]
  134.     public static void term ();
  135. }
Advertisement
Add Comment
Please, Sign In to add comment