summaryrefslogtreecommitdiff
path: root/vapi/gdk-pixbuf-2.0.vapi
diff options
context:
space:
mode:
authorLuca Bruno <lucabru@src.gnome.org>2016-01-30 15:10:07 +0100
committerLuca Bruno <lucabru@src.gnome.org>2016-01-30 15:10:07 +0100
commitac33d2d5c6fc5cf6ff74852580dc8819478fc4e4 (patch)
treefc4b0d3cce7a9c7e06569a7cbdfbb1b79542a74a /vapi/gdk-pixbuf-2.0.vapi
parent238196ecc1a1ca6738da66a8e389c11dac6f76c3 (diff)
downloadvala-ac33d2d5c6fc5cf6ff74852580dc8819478fc4e4.tar.gz
Regenerate all bindings with [Version]
Diffstat (limited to 'vapi/gdk-pixbuf-2.0.vapi')
-rw-r--r--vapi/gdk-pixbuf-2.0.vapi58
1 files changed, 51 insertions, 7 deletions
diff --git a/vapi/gdk-pixbuf-2.0.vapi b/vapi/gdk-pixbuf-2.0.vapi
index e533a9756..af405faf2 100644
--- a/vapi/gdk-pixbuf-2.0.vapi
+++ b/vapi/gdk-pixbuf-2.0.vapi
@@ -7,6 +7,7 @@ namespace Gdk {
[CCode (has_construct_function = false)]
public Pixbuf (Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height);
public Gdk.Pixbuf add_alpha (bool substitute_color, uint8 r, uint8 g, uint8 b);
+ [Version (since = "2.12")]
public Gdk.Pixbuf apply_embedded_orientation ();
public void composite (Gdk.Pixbuf dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, Gdk.InterpType interp_type, int overall_alpha);
public void composite_color (Gdk.Pixbuf dest, int dest_x, int dest_y, int dest_width, int dest_height, double offset_x, double offset_y, double scale_x, double scale_y, Gdk.InterpType interp_type, int overall_alpha, int check_x, int check_y, int check_size, uint32 color1, uint32 color2);
@@ -14,68 +15,88 @@ namespace Gdk {
public Gdk.Pixbuf copy ();
public void copy_area (int src_x, int src_y, int width, int height, Gdk.Pixbuf dest_pixbuf, int dest_x, int dest_y);
public void fill (uint32 pixel);
+ [Version (since = "2.6")]
public Gdk.Pixbuf? flip (bool horizontal);
[CCode (has_construct_function = false)]
+ [Version (since = "2.32")]
public Pixbuf.from_bytes (GLib.Bytes data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride);
[CCode (has_construct_function = false)]
public Pixbuf.from_data ([CCode (array_length = false)] owned uint8[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, [CCode (type = "GdkPixbufDestroyNotify")] Gdk.PixbufDestroyNotify? destroy_fn = GLib.free);
[CCode (has_construct_function = false)]
public Pixbuf.from_file (string filename) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.6")]
public Pixbuf.from_file_at_scale (string filename, int width, int height, bool preserve_aspect_ratio) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.4")]
public Pixbuf.from_file_at_size (string filename, int width, int height) throws GLib.Error;
[CCode (has_construct_function = false)]
- [Deprecated (since = "2.32")]
+ [Version (deprecated = true, deprecated_since = "2.32")]
public Pixbuf.from_inline ([CCode (array_length_cname = "data_length", array_length_pos = 0.5)] uint8[] data, bool copy_pixels = true) throws GLib.Error;
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixdata.h")]
- [Deprecated (since = "2.32")]
+ [Version (deprecated = true, deprecated_since = "2.32")]
public static Gdk.Pixbuf from_pixdata (Gdk.Pixdata pixdata, bool copy_pixels = true) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.26")]
public Pixbuf.from_resource (string resource_path) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.26")]
public Pixbuf.from_resource_at_scale (string resource_path, int width, int height, bool preserve_aspect_ratio) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.14")]
public Pixbuf.from_stream (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "gdk_pixbuf_new_from_stream_async", has_construct_function = false)]
+ [Version (since = "2.24")]
public async Pixbuf.from_stream_async (GLib.InputStream stream, GLib.Cancellable? cancellable) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.14")]
public Pixbuf.from_stream_at_scale (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "gdk_pixbuf_new_from_stream_at_scale_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
public async Pixbuf.from_stream_at_scale_async (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false)]
public Pixbuf.from_xpm_data ([CCode (array_length = false, array_null_terminated = true)] string[] data);
public int get_bits_per_sample ();
+ [Version (since = "2.26")]
public size_t get_byte_length ();
public Gdk.Colorspace get_colorspace ();
+ [Version (since = "2.4")]
public static unowned Gdk.PixbufFormat? get_file_info (string filename, out int width, out int height);
+ [Version (since = "2.32")]
public static async unowned Gdk.PixbufFormat get_file_info_async (string filename, GLib.Cancellable? cancellable, out int width, out int height) throws GLib.Error;
+ [Version (since = "2.2")]
public static GLib.SList<weak Gdk.PixbufFormat> get_formats ();
public bool get_has_alpha ();
public int get_height ();
public int get_n_channels ();
public unowned string get_option (string key);
+ [Version (since = "2.32")]
public GLib.HashTable<weak string,weak string> get_options ();
[CCode (array_length = false)]
public unowned uint8[] get_pixels ();
[CCode (array_length_pos = 0.1, array_length_type = "guint")]
+ [Version (since = "2.26")]
public unowned uint8[] get_pixels_with_length ();
public int get_rowstride ();
public int get_width ();
[CCode (cname = "gdk_pixbuf_new_from_stream_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
- [Deprecated (replacement = "Pixbuf.from_stream_async", since = "vala-0.18")]
+ [Version (deprecated_since = "vala-0.18", replacement = "Pixbuf.from_stream_async")]
public static async Gdk.Pixbuf new_from_stream_async (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "gdk_pixbuf_new_from_stream_at_scale_async", finish_name = "gdk_pixbuf_new_from_stream_finish")]
- [Deprecated (replacement = "Pixbuf.from_stream_at_scale_async", since = "vala-0.18")]
+ [Version (deprecated_since = "vala-0.18", replacement = "Pixbuf.from_stream_at_scale_async")]
public static async Gdk.Pixbuf new_from_stream_at_scale_async (GLib.InputStream stream, int width, int height, bool preserve_aspect_ratio, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [Version (since = "2.32")]
public GLib.Bytes read_pixel_bytes ();
+ [Version (since = "2.32")]
public uint8 read_pixels ();
+ [Version (since = "2.6")]
public Gdk.Pixbuf? rotate_simple (Gdk.PixbufRotation angle);
public void saturate_and_pixelate (Gdk.Pixbuf dest, float saturation, bool pixelate);
public bool save (string filename, string type, ...) throws GLib.Error;
public bool save_to_buffer ([CCode (array_length_type = "gsize", type = "gchar**")] out uint8[] buffer, string type, ...) throws GLib.Error;
+ [Version (since = "2.4")]
public bool save_to_bufferv ([CCode (array_length_cname = "buffer_size", array_length_pos = 1.5, array_length_type = "gsize")] out uint8[] buffer, string type, [CCode (array_length = false, array_null_terminated = true)] string[] option_keys, [CCode (array_length = false, array_null_terminated = true)] string[] option_values) throws GLib.Error;
public bool save_to_callback (Gdk.PixbufSaveFunc save_func, string type, ...) throws GLib.Error;
+ [Version (since = "2.4")]
public bool save_to_callbackv ([CCode (delegate_target_pos = 1.5)] Gdk.PixbufSaveFunc save_func, string type, [CCode (array_length = false, array_null_terminated = true)] string[] option_keys, [CCode (array_length = false, array_null_terminated = true)] string[] option_values) throws GLib.Error;
public bool save_to_stream (GLib.OutputStream stream, string type, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
[CCode (finish_name = "gdk_pixbuf_save_to_stream_finish")]
@@ -105,10 +126,13 @@ namespace Gdk {
[CCode (has_construct_function = false)]
public PixbufAnimation.from_file (string filename) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.28")]
public PixbufAnimation.from_resource (string resource_path) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.28")]
public PixbufAnimation.from_stream (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (cname = "gdk_pixbuf_animation_new_from_stream_async", has_construct_function = false)]
+ [Version (since = "2.28")]
public async PixbufAnimation.from_stream_async (GLib.InputStream stream, GLib.Cancellable? cancellable) throws GLib.Error;
public int get_height ();
public Gdk.PixbufAnimationIter get_iter (GLib.TimeVal? start_time);
@@ -128,18 +152,29 @@ namespace Gdk {
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "gdk_pixbuf_format_get_type ()")]
[Compact]
public class PixbufFormat {
+ [Version (since = "2.22")]
public Gdk.PixbufFormat copy ();
+ [Version (since = "2.22")]
public void free ();
+ [Version (since = "2.2")]
public string get_description ();
[CCode (array_length = false, array_null_terminated = true)]
+ [Version (since = "2.2")]
public string[] get_extensions ();
+ [Version (since = "2.6")]
public string get_license ();
[CCode (array_length = false, array_null_terminated = true)]
+ [Version (since = "2.2")]
public string[] get_mime_types ();
+ [Version (since = "2.2")]
public string get_name ();
+ [Version (since = "2.6")]
public bool is_disabled ();
+ [Version (since = "2.6")]
public bool is_scalable ();
+ [Version (since = "2.2")]
public bool is_writable ();
+ [Version (since = "2.6")]
public void set_disabled (bool disabled);
}
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", type_id = "gdk_pixbuf_loader_get_type ()")]
@@ -148,14 +183,18 @@ namespace Gdk {
public PixbufLoader ();
public bool close () throws GLib.Error;
public unowned Gdk.PixbufAnimation get_animation ();
+ [Version (since = "2.2")]
public unowned Gdk.PixbufFormat? get_format ();
public unowned Gdk.Pixbuf get_pixbuf ();
+ [Version (since = "2.2")]
public void set_size (int width, int height);
[CCode (has_construct_function = false)]
+ [Version (since = "2.4")]
public PixbufLoader.with_mime_type (string mime_type) throws GLib.Error;
[CCode (has_construct_function = false)]
public PixbufLoader.with_type (string image_type) throws GLib.Error;
public bool write ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
+ [Version (since = "2.30")]
public bool write_bytes (GLib.Bytes buffer) throws GLib.Error;
public virtual signal void area_prepared ();
public virtual signal void area_updated (int x, int y, int width, int height);
@@ -165,10 +204,15 @@ namespace Gdk {
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", type_id = "gdk_pixbuf_simple_anim_get_type ()")]
public class PixbufSimpleAnim : Gdk.PixbufAnimation {
[CCode (has_construct_function = false)]
+ [Version (since = "2.8")]
public PixbufSimpleAnim (int width, int height, float rate);
+ [Version (since = "2.8")]
public void add_frame (Gdk.Pixbuf pixbuf);
+ [Version (since = "2.18")]
public bool get_loop ();
+ [Version (since = "2.18")]
public void set_loop (bool loop);
+ [Version (since = "2.18")]
public bool loop { get; set; }
}
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", type_id = "gdk_pixbuf_simple_anim_iter_get_type ()")]
@@ -186,12 +230,12 @@ namespace Gdk {
public uint32 height;
[CCode (array_length = false, array_null_terminated = true)]
public weak uint8[] pixel_data;
- [Deprecated (since = "2.32")]
+ [Version (deprecated = true, deprecated_since = "2.32")]
public bool deserialize ([CCode (array_length_cname = "stream_length", array_length_pos = 0.5, array_length_type = "guint")] uint8[] stream) throws GLib.Error;
[CCode (array_length_pos = 0.1, array_length_type = "guint")]
- [Deprecated (since = "2.32")]
+ [Version (deprecated = true, deprecated_since = "2.32")]
public uint8[] serialize ();
- [Deprecated (since = "2.32")]
+ [Version (deprecated = true, deprecated_since = "2.32")]
public GLib.StringBuilder to_csource (string name, Gdk.PixdataDumpType dump_type);
}
[CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h", cprefix = "GDK_COLORSPACE_", type_id = "gdk_colorspace_get_type ()")]