From: Juerg Billeter Date: Tue, 22 Jan 2008 14:35:05 +0000 (+0000) Subject: add bindings for gdk-pixbuf-2.0, fixes bug 501589 X-Git-Tag: VALA_0_1_7~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef79c8912ca5abd4f8aa87d85529324adbf1e12e;p=thirdparty%2Fvala.git add bindings for gdk-pixbuf-2.0, fixes bug 501589 2008-01-22 Juerg Billeter * vapi/packages/gdk-pixbuf-2.0/, vapi/packages/gdk-2.0/, vapi/gdk-pixbuf-2.0.vapi, vapi/gdk-2.0.vapi: add bindings for gdk-pixbuf-2.0, fixes bug 501589 * vapi/packages/gnome-desktop-2.0/, vapi/packages/gtk+-2.0/, vapi/packages/gtksourceview-2.0/, vapi/packages/hildon-1/, vapi/packages/libglade-2.0/, vapi/packages/libgnomeui-2.0/, vapi/packages/libnotify/. vapi/packages/libwnck-1.0/. vapi/packages/poppler-glib/, vapi/packages/vte/, vapi/gdk-2.0.deps, vapi/gnome-desktop-2.0.deps, vapi/gtk+-2.0.deps, vapi/gtksourceview-2.0.deps, vapi/hildon-1.deps, vapi/libglade-2.0.deps, vapi/libgnomeui-2.0.deps, vapi/libnotify.deps, vapi/libwnck-1.0.deps, vapi/poppler-glib.deps, vapi/vte.deps: update dependencies * vapi/Makefile.am: updated svn path=/trunk/; revision=883 --- diff --git a/ChangeLog b/ChangeLog index 4faf959ec..db978ab6c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,22 @@ +2008-01-22 Jürg Billeter + + * vapi/packages/gdk-pixbuf-2.0/, vapi/packages/gdk-2.0/, + vapi/gdk-pixbuf-2.0.vapi, vapi/gdk-2.0.vapi: add bindings for + gdk-pixbuf-2.0, fixes bug 501589 + + * vapi/packages/gnome-desktop-2.0/, vapi/packages/gtk+-2.0/, + vapi/packages/gtksourceview-2.0/, vapi/packages/hildon-1/, + vapi/packages/libglade-2.0/, vapi/packages/libgnomeui-2.0/, + vapi/packages/libnotify/. vapi/packages/libwnck-1.0/. + vapi/packages/poppler-glib/, vapi/packages/vte/, vapi/gdk-2.0.deps, + vapi/gnome-desktop-2.0.deps, vapi/gtk+-2.0.deps, + vapi/gtksourceview-2.0.deps, vapi/hildon-1.deps, + vapi/libglade-2.0.deps, vapi/libgnomeui-2.0.deps, vapi/libnotify.deps, + vapi/libwnck-1.0.deps, vapi/poppler-glib.deps, vapi/vte.deps: update + dependencies + + * vapi/Makefile.am: updated + 2008-01-22 Jürg Billeter * gee/arraylist.vala, gee/hashmap.vala, gee/hashset.vala, diff --git a/vapi/Makefile.am b/vapi/Makefile.am index e15e7f30d..eb9acfdf5 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -18,6 +18,7 @@ dist_vapi_DATA = \ glib-2.0.vapi \ gdk-2.0.deps \ gdk-2.0.vapi \ + gdk-pixbuf-2.0.vapi \ gio-2.0.vapi \ gnome-desktop-2.0.deps \ gnome-desktop-2.0.vapi \ @@ -76,6 +77,7 @@ dist_vapi_DATA = \ liboobs-1.vapi \ libpanelapplet-2.0.deps \ libpanelapplet-2.0.vapi \ + libwnck-1.0.deps \ libwnck-1.0.vapi \ libsoup-2.2.vapi \ libxml-2.0.vapi \ diff --git a/vapi/gdk-2.0.deps b/vapi/gdk-2.0.deps index 76490661c..25643ca35 100644 --- a/vapi/gdk-2.0.deps +++ b/vapi/gdk-2.0.deps @@ -1,3 +1,4 @@ +gdk-pixbuf-2.0 cairo pango pangocairo diff --git a/vapi/gdk-2.0.vapi b/vapi/gdk-2.0.vapi index 8db0ff331..d8b613da4 100644 --- a/vapi/gdk-2.0.vapi +++ b/vapi/gdk-2.0.vapi @@ -25,10 +25,6 @@ namespace Gdk { ROUND, PROJECTING, } - [CCode (cprefix = "GDK_COLORSPACE_", cheader_filename = "gdk/gdk.h")] - public enum Colorspace { - RGB, - } [CCode (cprefix = "GDK_CROSSING_", cheader_filename = "gdk/gdk.h")] public enum CrossingMode { NORMAL, @@ -255,13 +251,6 @@ namespace Gdk { ERASER, CURSOR, } - [CCode (cprefix = "GDK_INTERP_", cheader_filename = "gdk/gdk.h")] - public enum InterpType { - NEAREST, - TILES, - BILINEAR, - HYPER, - } [CCode (cprefix = "GDK_JOIN_", cheader_filename = "gdk/gdk.h")] public enum JoinStyle { MITER, @@ -295,49 +284,6 @@ namespace Gdk { DESTROY, CLOSE, } - [CCode (cprefix = "GDK_PIXBUF_ALPHA_", cheader_filename = "gdk/gdk.h")] - public enum PixbufAlphaMode { - BILEVEL, - FULL, - } - [CCode (cprefix = "GDK_PIXBUF_ERROR_", cheader_filename = "gdk/gdk.h")] - public enum PixbufError { - CORRUPT_IMAGE, - INSUFFICIENT_MEMORY, - BAD_OPTION, - UNKNOWN_TYPE, - UNSUPPORTED_OPERATION, - FAILED, - } - [CCode (cprefix = "GDK_PIXBUF_ROTATE_", cheader_filename = "gdk/gdk.h")] - public enum PixbufRotation { - NONE, - COUNTERCLOCKWISE, - UPSIDEDOWN, - CLOCKWISE, - } - [CCode (cprefix = "GDK_PIXDATA_DUMP_", cheader_filename = "gdk/gdk.h")] - public enum PixdataDumpType { - PIXDATA_STREAM, - PIXDATA_STRUCT, - MACROS, - GTYPES, - CTYPES, - STATIC, - CONST, - RLE_DECODER, - } - [CCode (cprefix = "GDK_PIXDATA_", cheader_filename = "gdk/gdk.h")] - public enum PixdataType { - COLOR_TYPE_RGB, - COLOR_TYPE_RGBA, - COLOR_TYPE_MASK, - SAMPLE_WIDTH_8, - SAMPLE_WIDTH_MASK, - ENCODING_RAW, - ENCODING_RLE, - ENCODING_MASK, - } [CCode (cprefix = "GDK_PROP_MODE_", cheader_filename = "gdk/gdk.h")] public enum PropMode { REPLACE, @@ -876,35 +822,6 @@ namespace Gdk { public PangoAttrStipple (Gdk.Bitmap stipple); } [CCode (cheader_filename = "gdk/gdk.h")] - public class PixbufFormat { - public weak string get_description (); - public weak string get_extensions (); - public weak string get_license (); - public weak string get_mime_types (); - public weak string get_name (); - public bool is_disabled (); - public bool is_scalable (); - public bool is_writable (); - public void set_disabled (bool disabled); - } - [CCode (cheader_filename = "gdk/gdk.h")] - public class PixbufSimpleAnimClass { - } - [CCode (cheader_filename = "gdk/gdk.h")] - public class Pixdata { - public uint magic; - public int length; - public uint pixdata_type; - public uint rowstride; - public uint width; - public uint height; - public uchar pixel_data; - public bool deserialize (uint stream_length, uchar stream) throws GLib.Error; - public pointer from_pixbuf (Gdk.Pixbuf pixbuf, bool use_rle); - public uchar serialize (uint stream_length_p); - public weak GLib.String to_csource (string name, Gdk.PixdataDumpType dump_type); - } - [CCode (cheader_filename = "gdk/gdk.h")] public class Point { public int x; public int y; @@ -1254,116 +1171,6 @@ namespace Gdk { public weak Gdk.Screen screen { get; construct; } } [CCode (cheader_filename = "gdk/gdk.h")] - public class Pixbuf : GLib.Object { - public weak Gdk.Pixbuf add_alpha (bool substitute_color, uchar r, uchar g, uchar b); - public weak 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, uint color1, uint color2); - public weak Gdk.Pixbuf composite_color_simple (int dest_width, int dest_height, Gdk.InterpType interp_type, int overall_alpha, int check_size, uint color1, uint color2); - public weak 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 static GLib.Quark error_quark (); - public void fill (uint pixel); - public weak Gdk.Pixbuf flip (bool horizontal); - public static weak Gdk.Pixbuf from_pixdata (Gdk.Pixdata pixdata, bool copy_pixels) throws GLib.Error; - public int get_bits_per_sample (); - public Gdk.Colorspace get_colorspace (); - public static weak Gdk.PixbufFormat get_file_info (string filename, int width, int height); - public static weak GLib.SList get_formats (); - public weak Gdk.Pixbuf get_from_drawable (Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height); - public weak Gdk.Pixbuf get_from_image (Gdk.Image src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height); - public bool get_has_alpha (); - public int get_height (); - public int get_n_channels (); - public weak string get_option (string key); - [NoArrayLength] - public weak uchar[] get_pixels (); - public int get_rowstride (); - public int get_width (); - public Pixbuf (Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height); - [NoArrayLength] - public Pixbuf.from_data (uchar[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify destroy_fn, pointer destroy_fn_data); - public Pixbuf.from_file (string filename) throws GLib.Error; - public Pixbuf.from_file_at_scale (string filename, int width, int height, bool preserve_aspect_ratio) throws GLib.Error; - public Pixbuf.from_file_at_size (string filename, int width, int height) throws GLib.Error; - public Pixbuf.from_inline (int data_length, uchar data, bool copy_pixels) throws GLib.Error; - [NoArrayLength] - public Pixbuf.from_xpm_data (string[] data); - public Pixbuf.subpixbuf (Gdk.Pixbuf src_pixbuf, int src_x, int src_y, int width, int height); - public void render_pixmap_and_mask (out weak Gdk.Pixmap pixmap_return, out weak Gdk.Bitmap mask_return, int alpha_threshold); - public void render_pixmap_and_mask_for_colormap (Gdk.Colormap colormap, out weak Gdk.Pixmap pixmap_return, out weak Gdk.Bitmap mask_return, int alpha_threshold); - public void render_threshold_alpha (Gdk.Bitmap bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold); - public weak 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 (string buffer, ulong buffer_size, string type) throws GLib.Error; - [NoArrayLength] - public bool save_to_bufferv (string buffer, ulong buffer_size, string type, string[] option_keys, string[] option_values) throws GLib.Error; - public bool save_to_callback (Gdk.PixbufSaveFunc save_func, pointer user_data, string type) throws GLib.Error; - [NoArrayLength] - public bool save_to_callbackv (Gdk.PixbufSaveFunc save_func, pointer user_data, string type, string[] option_keys, string[] option_values) throws GLib.Error; - public bool savev (string filename, string type, out weak string option_keys, out weak string option_values) throws GLib.Error; - public void scale (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); - public weak Gdk.Pixbuf scale_simple (int dest_width, int dest_height, Gdk.InterpType interp_type); - [NoAccessorMethod] - public weak int bits_per_sample { get; construct; } - [NoAccessorMethod] - public weak Gdk.Colorspace colorspace { get; construct; } - [NoAccessorMethod] - public weak bool has_alpha { get; construct; } - [NoAccessorMethod] - public weak int height { get; construct; } - [NoAccessorMethod] - public weak int n_channels { get; construct; } - [NoAccessorMethod] - public weak pointer pixels { get; construct; } - [NoAccessorMethod] - public weak int rowstride { get; construct; } - [NoAccessorMethod] - public weak int width { get; construct; } - } - [CCode (cheader_filename = "gdk/gdk.h")] - public class PixbufAnimation : GLib.Object { - public int get_height (); - public weak Gdk.PixbufAnimationIter get_iter (GLib.TimeVal start_time); - public weak Gdk.Pixbuf get_static_image (); - public int get_width (); - public bool is_static_image (); - public PixbufAnimation.from_file (string filename) throws GLib.Error; - } - [CCode (cheader_filename = "gdk/gdk.h")] - public class PixbufAnimationIter : GLib.Object { - public bool advance (GLib.TimeVal current_time); - public int get_delay_time (); - public weak Gdk.Pixbuf get_pixbuf (); - public bool on_currently_loading_frame (); - } - [CCode (cheader_filename = "gdk/gdk.h")] - public class PixbufLoader : GLib.Object { - public bool close () throws GLib.Error; - public weak Gdk.PixbufAnimation get_animation (); - public weak Gdk.PixbufFormat get_format (); - public weak Gdk.Pixbuf get_pixbuf (); - public PixbufLoader (); - public PixbufLoader.with_mime_type (string mime_type) throws GLib.Error; - public PixbufLoader.with_type (string image_type) throws GLib.Error; - public void set_size (int width, int height); - [NoArrayLength] - public bool write (uchar[] buf, ulong count) throws GLib.Error; - public signal void area_prepared (); - public signal void area_updated (int x, int y, int width, int height); - public signal void closed (); - public signal void size_prepared (int width, int height); - } - [CCode (cheader_filename = "gdk/gdk.h")] - public class PixbufSimpleAnim : Gdk.PixbufAnimation { - public void add_frame (Gdk.Pixbuf pixbuf); - public PixbufSimpleAnim (int width, int height, float rate); - } - [CCode (cheader_filename = "gdk/gdk.h")] - public class PixbufSimpleAnimIter : Gdk.PixbufAnimationIter { - } - [CCode (cheader_filename = "gdk/gdk.h")] public class Pixmap : Gdk.Drawable { public static weak Gdk.Pixmap colormap_create_from_xpm (Gdk.Drawable drawable, Gdk.Colormap colormap, out weak Gdk.Bitmap mask, Gdk.Color transparent_color, string filename); public static weak Gdk.Pixmap colormap_create_from_xpm_d (Gdk.Drawable drawable, Gdk.Colormap colormap, out weak Gdk.Bitmap mask, Gdk.Color transparent_color, string data); @@ -1617,19 +1424,10 @@ namespace Gdk { public static delegate void EventFunc (Gdk.Event event, pointer data); public static delegate Gdk.FilterReturn FilterFunc (Gdk.XEvent xevent, Gdk.Event event, pointer data); public static delegate void InputFunction (pointer data, int source, Gdk.InputCondition condition); - public static delegate void PixbufDestroyNotify (uchar[] pixels, pointer data); - public static delegate bool PixbufSaveFunc (string buf, ulong count, GLib.Error error, pointer data); public static delegate void SpanFunc (Gdk.Span span, pointer data); public const int CURRENT_TIME; public const int MAX_TIMECOORD_AXES; public const int PARENT_RELATIVE; - public const int PIXBUF_FEATURES_H; - public const int PIXBUF_MAGIC_NUMBER; - public const int PIXBUF_MAJOR; - public const int PIXBUF_MICRO; - public const int PIXBUF_MINOR; - public const string PIXBUF_VERSION; - public const int PIXDATA_HEADER_LENGTH; public const int PRIORITY_REDRAW; public static void add_client_message_filter (Gdk.Atom message_type, Gdk.FilterFunc func, pointer data); public static void add_option_entries_libgtk_only (GLib.OptionGroup group); @@ -1719,6 +1517,11 @@ namespace Gdk { public static weak Gdk.Region pango_layout_get_clip_region (Pango.Layout layout, int x_origin, int y_origin, int index_ranges, int n_ranges); public static weak Gdk.Region pango_layout_line_get_clip_region (Pango.LayoutLine line, int x_origin, int y_origin, int index_ranges, int n_ranges); public static void parse_args (int argc, string argv); + public static weak Gdk.Pixbuf pixbuf_get_from_drawable (Gdk.Pixbuf dest, Gdk.Drawable src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height); + public static weak Gdk.Pixbuf pixbuf_get_from_image (Gdk.Pixbuf dest, Gdk.Image src, Gdk.Colormap cmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height); + public static void pixbuf_render_pixmap_and_mask (Gdk.Pixbuf pixbuf, out weak Gdk.Pixmap pixmap_return, out weak Gdk.Bitmap mask_return, int alpha_threshold); + public static void pixbuf_render_pixmap_and_mask_for_colormap (Gdk.Pixbuf pixbuf, Gdk.Colormap colormap, out weak Gdk.Pixmap pixmap_return, out weak Gdk.Bitmap mask_return, int alpha_threshold); + public static void pixbuf_render_threshold_alpha (Gdk.Pixbuf pixbuf, Gdk.Bitmap bitmap, int src_x, int src_y, int dest_x, int dest_y, int width, int height, int alpha_threshold); public static Gdk.GrabStatus pointer_grab (Gdk.Window window, bool owner_events, Gdk.EventMask event_mask, Gdk.Window confine_to, Gdk.Cursor cursor, uint time_); public static bool pointer_grab_info_libgtk_only (Gdk.Display display, out weak Gdk.Window grab_window, bool owner_events); public static bool pointer_is_grabbed (); diff --git a/vapi/gdk-pixbuf-2.0.vapi b/vapi/gdk-pixbuf-2.0.vapi new file mode 100644 index 000000000..e19863cd9 --- /dev/null +++ b/vapi/gdk-pixbuf-2.0.vapi @@ -0,0 +1,202 @@ +/* gdk-pixbuf-2.0.vapi generated by lt-vapigen, do not modify. */ + +[CCode (cprefix = "Gdk", lower_case_cprefix = "gdk_")] +namespace Gdk { + [CCode (cprefix = "GDK_COLORSPACE_", cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public enum Colorspace { + RGB, + } + [CCode (cprefix = "GDK_INTERP_", cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public enum InterpType { + NEAREST, + TILES, + BILINEAR, + HYPER, + } + [CCode (cprefix = "GDK_PIXBUF_ALPHA_", cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public enum PixbufAlphaMode { + BILEVEL, + FULL, + } + [CCode (cprefix = "GDK_PIXBUF_ERROR_", cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public enum PixbufError { + CORRUPT_IMAGE, + INSUFFICIENT_MEMORY, + BAD_OPTION, + UNKNOWN_TYPE, + UNSUPPORTED_OPERATION, + FAILED, + } + [CCode (cprefix = "GDK_PIXBUF_ROTATE_", cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public enum PixbufRotation { + NONE, + COUNTERCLOCKWISE, + UPSIDEDOWN, + CLOCKWISE, + } + [CCode (cprefix = "GDK_PIXDATA_DUMP_", cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public enum PixdataDumpType { + PIXDATA_STREAM, + PIXDATA_STRUCT, + MACROS, + GTYPES, + CTYPES, + STATIC, + CONST, + RLE_DECODER, + } + [CCode (cprefix = "GDK_PIXDATA_", cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public enum PixdataType { + COLOR_TYPE_RGB, + COLOR_TYPE_RGBA, + COLOR_TYPE_MASK, + SAMPLE_WIDTH_8, + SAMPLE_WIDTH_MASK, + ENCODING_RAW, + ENCODING_RLE, + ENCODING_MASK, + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class PixbufFormat { + public weak string get_description (); + public weak string get_extensions (); + public weak string get_license (); + public weak string get_mime_types (); + public weak string get_name (); + public bool is_disabled (); + public bool is_scalable (); + public bool is_writable (); + public void set_disabled (bool disabled); + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class PixbufSimpleAnimClass { + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class Pixdata { + public uint magic; + public int length; + public uint pixdata_type; + public uint rowstride; + public uint width; + public uint height; + public uchar pixel_data; + public bool deserialize (uint stream_length, uchar stream) throws GLib.Error; + public pointer from_pixbuf (Gdk.Pixbuf pixbuf, bool use_rle); + public uchar serialize (uint stream_length_p); + public weak GLib.String to_csource (string name, Gdk.PixdataDumpType dump_type); + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class Pixbuf : GLib.Object { + public weak Gdk.Pixbuf add_alpha (bool substitute_color, uchar r, uchar g, uchar b); + public weak 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, uint color1, uint color2); + public weak Gdk.Pixbuf composite_color_simple (int dest_width, int dest_height, Gdk.InterpType interp_type, int overall_alpha, int check_size, uint color1, uint color2); + public weak 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 static GLib.Quark error_quark (); + public void fill (uint pixel); + public weak Gdk.Pixbuf flip (bool horizontal); + public static weak Gdk.Pixbuf from_pixdata (Gdk.Pixdata pixdata, bool copy_pixels) throws GLib.Error; + public int get_bits_per_sample (); + public Gdk.Colorspace get_colorspace (); + public static weak Gdk.PixbufFormat get_file_info (string filename, int width, int height); + public static weak GLib.SList get_formats (); + public bool get_has_alpha (); + public int get_height (); + public int get_n_channels (); + public weak string get_option (string key); + [NoArrayLength] + public weak uchar[] get_pixels (); + public int get_rowstride (); + public int get_width (); + public Pixbuf (Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height); + [NoArrayLength] + public Pixbuf.from_data (uchar[] data, Gdk.Colorspace colorspace, bool has_alpha, int bits_per_sample, int width, int height, int rowstride, Gdk.PixbufDestroyNotify destroy_fn, pointer destroy_fn_data); + public Pixbuf.from_file (string filename) throws GLib.Error; + public Pixbuf.from_file_at_scale (string filename, int width, int height, bool preserve_aspect_ratio) throws GLib.Error; + public Pixbuf.from_file_at_size (string filename, int width, int height) throws GLib.Error; + public Pixbuf.from_inline (int data_length, uchar data, bool copy_pixels) throws GLib.Error; + [NoArrayLength] + public Pixbuf.from_xpm_data (string[] data); + public Pixbuf.subpixbuf (Gdk.Pixbuf src_pixbuf, int src_x, int src_y, int width, int height); + public weak 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 (string buffer, ulong buffer_size, string type) throws GLib.Error; + [NoArrayLength] + public bool save_to_bufferv (string buffer, ulong buffer_size, string type, string[] option_keys, string[] option_values) throws GLib.Error; + public bool save_to_callback (Gdk.PixbufSaveFunc save_func, pointer user_data, string type) throws GLib.Error; + [NoArrayLength] + public bool save_to_callbackv (Gdk.PixbufSaveFunc save_func, pointer user_data, string type, string[] option_keys, string[] option_values) throws GLib.Error; + public bool savev (string filename, string type, out weak string option_keys, out weak string option_values) throws GLib.Error; + public void scale (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); + public weak Gdk.Pixbuf scale_simple (int dest_width, int dest_height, Gdk.InterpType interp_type); + [NoAccessorMethod] + public weak int bits_per_sample { get; construct; } + [NoAccessorMethod] + public weak Gdk.Colorspace colorspace { get; construct; } + [NoAccessorMethod] + public weak bool has_alpha { get; construct; } + [NoAccessorMethod] + public weak int height { get; construct; } + [NoAccessorMethod] + public weak int n_channels { get; construct; } + [NoAccessorMethod] + public weak pointer pixels { get; construct; } + [NoAccessorMethod] + public weak int rowstride { get; construct; } + [NoAccessorMethod] + public weak int width { get; construct; } + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class PixbufAnimation : GLib.Object { + public int get_height (); + public weak Gdk.PixbufAnimationIter get_iter (GLib.TimeVal start_time); + public weak Gdk.Pixbuf get_static_image (); + public int get_width (); + public bool is_static_image (); + public PixbufAnimation.from_file (string filename) throws GLib.Error; + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class PixbufAnimationIter : GLib.Object { + public bool advance (GLib.TimeVal current_time); + public int get_delay_time (); + public weak Gdk.Pixbuf get_pixbuf (); + public bool on_currently_loading_frame (); + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class PixbufLoader : GLib.Object { + public bool close () throws GLib.Error; + public weak Gdk.PixbufAnimation get_animation (); + public weak Gdk.PixbufFormat get_format (); + public weak Gdk.Pixbuf get_pixbuf (); + public PixbufLoader (); + public PixbufLoader.with_mime_type (string mime_type) throws GLib.Error; + public PixbufLoader.with_type (string image_type) throws GLib.Error; + public void set_size (int width, int height); + [NoArrayLength] + public bool write (uchar[] buf, ulong count) throws GLib.Error; + public signal void area_prepared (); + public signal void area_updated (int x, int y, int width, int height); + public signal void closed (); + public signal void size_prepared (int width, int height); + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class PixbufSimpleAnim : Gdk.PixbufAnimation { + public void add_frame (Gdk.Pixbuf pixbuf); + public PixbufSimpleAnim (int width, int height, float rate); + } + [CCode (cheader_filename = "gdk-pixbuf/gdk-pixbuf.h")] + public class PixbufSimpleAnimIter : Gdk.PixbufAnimationIter { + } + public static delegate void PixbufDestroyNotify (uchar[] pixels, pointer data); + public static delegate bool PixbufSaveFunc (string buf, ulong count, GLib.Error error, pointer data); + public const int PIXBUF_FEATURES_H; + public const int PIXBUF_MAGIC_NUMBER; + public const int PIXBUF_MAJOR; + public const int PIXBUF_MICRO; + public const int PIXBUF_MINOR; + public const string PIXBUF_VERSION; + public const int PIXDATA_HEADER_LENGTH; +} diff --git a/vapi/gnome-desktop-2.0.deps b/vapi/gnome-desktop-2.0.deps index 659d658dd..57ed9cf58 100644 --- a/vapi/gnome-desktop-2.0.deps +++ b/vapi/gnome-desktop-2.0.deps @@ -1,5 +1,6 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango gtk+-2.0 diff --git a/vapi/gtk+-2.0.deps b/vapi/gtk+-2.0.deps index e02a9ef81..341815e6b 100644 --- a/vapi/gtk+-2.0.deps +++ b/vapi/gtk+-2.0.deps @@ -1,4 +1,5 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango diff --git a/vapi/gtksourceview-2.0.deps b/vapi/gtksourceview-2.0.deps index 24a223777..96053965b 100644 --- a/vapi/gtksourceview-2.0.deps +++ b/vapi/gtksourceview-2.0.deps @@ -1 +1,6 @@ +atk +cairo +gdk-pixbuf-2.0 +gdk-2.0 +pango gtk+-2.0 diff --git a/vapi/hildon-1.deps b/vapi/hildon-1.deps index 0dec08afe..449f66cea 100644 --- a/vapi/hildon-1.deps +++ b/vapi/hildon-1.deps @@ -1,4 +1,5 @@ gtk+-2.0 +gdk-pixbuf-2.0 gdk-2.0 pango atk diff --git a/vapi/libglade-2.0.deps b/vapi/libglade-2.0.deps index 0dec08afe..96053965b 100644 --- a/vapi/libglade-2.0.deps +++ b/vapi/libglade-2.0.deps @@ -1,5 +1,6 @@ -gtk+-2.0 -gdk-2.0 -pango atk cairo +gdk-pixbuf-2.0 +gdk-2.0 +pango +gtk+-2.0 diff --git a/vapi/libgnomeui-2.0.deps b/vapi/libgnomeui-2.0.deps index 1a5d5c29f..687dfd6b6 100644 --- a/vapi/libgnomeui-2.0.deps +++ b/vapi/libgnomeui-2.0.deps @@ -1,5 +1,6 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango gtk+-2.0 diff --git a/vapi/libnotify.deps b/vapi/libnotify.deps index 24a223777..96053965b 100644 --- a/vapi/libnotify.deps +++ b/vapi/libnotify.deps @@ -1 +1,6 @@ +atk +cairo +gdk-pixbuf-2.0 +gdk-2.0 +pango gtk+-2.0 diff --git a/vapi/libwnck-1.0.deps b/vapi/libwnck-1.0.deps new file mode 100644 index 000000000..96053965b --- /dev/null +++ b/vapi/libwnck-1.0.deps @@ -0,0 +1,6 @@ +atk +cairo +gdk-pixbuf-2.0 +gdk-2.0 +pango +gtk+-2.0 diff --git a/vapi/packages/gdk-2.0/gdk-2.0.defines b/vapi/packages/gdk-2.0/gdk-2.0.defines index c6bf89887..fcc34bdc0 100644 --- a/vapi/packages/gdk-2.0/gdk-2.0.defines +++ b/vapi/packages/gdk-2.0/gdk-2.0.defines @@ -1,2 +1,2 @@ -DGDK_DISABLE_DEPRECATED --DGDK_PIXBUF_DISABLE_DEPRECATED + diff --git a/vapi/packages/gdk-2.0/gdk-2.0.deps b/vapi/packages/gdk-2.0/gdk-2.0.deps index 76490661c..25643ca35 100644 --- a/vapi/packages/gdk-2.0/gdk-2.0.deps +++ b/vapi/packages/gdk-2.0/gdk-2.0.deps @@ -1,3 +1,4 @@ +gdk-pixbuf-2.0 cairo pango pangocairo diff --git a/vapi/packages/gdk-2.0/gdk-2.0.files b/vapi/packages/gdk-2.0/gdk-2.0.files index d3c9c3619..2e4fb69b8 100644 --- a/vapi/packages/gdk-2.0/gdk-2.0.files +++ b/vapi/packages/gdk-2.0/gdk-2.0.files @@ -1,3 +1,2 @@ include/gtk-2.0/gdk -include/gtk-2.0/gdk-pixbuf lib/libgdk-x11-2.0.so diff --git a/vapi/packages/gdk-2.0/gdk-2.0.gi b/vapi/packages/gdk-2.0/gdk-2.0.gi index 9f197e136..f2f60bb48 100644 --- a/vapi/packages/gdk-2.0/gdk-2.0.gi +++ b/vapi/packages/gdk-2.0/gdk-2.0.gi @@ -648,6 +648,67 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1100,22 +1161,6 @@ - - - - - - - - - - - - - - - - @@ -1426,106 +1471,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2073,9 +2018,6 @@ - - - @@ -2287,12 +2229,6 @@ - - - - - - @@ -2321,44 +2257,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -3782,612 +3680,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5571,13 +4863,6 @@ - - - - - - - diff --git a/vapi/packages/gdk-2.0/gdk-2.0.metadata b/vapi/packages/gdk-2.0/gdk-2.0.metadata index 3016ace2f..47016fd66 100644 --- a/vapi/packages/gdk-2.0/gdk-2.0.metadata +++ b/vapi/packages/gdk-2.0/gdk-2.0.metadata @@ -8,11 +8,6 @@ gdk_colormap_free_colors.colors is_array="1" gdk_colormap_query_color.result is_out="1" GdkCursor is_value_type="0" GdkDisplay.closed hidden="1" -gdk_pixbuf_new_from_xpm_data.data is_array="1" -gdk_pixbuf_save_to_bufferv.option_keys is_array="1" -gdk_pixbuf_save_to_bufferv.option_values is_array="1" -gdk_pixbuf_save_to_callbackv.option_keys is_array="1" -gdk_pixbuf_save_to_callbackv.option_values is_array="1" GdkPixmapObject hidden="1" GdkPixmapObjectClass hidden="1" gdk_property_get.actual_property_type is_out="1" diff --git a/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.defines b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.defines new file mode 100644 index 000000000..ab923f7c8 --- /dev/null +++ b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.defines @@ -0,0 +1 @@ +-DGDK_PIXBUF_DISABLE_DEPRECATED diff --git a/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.files b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.files new file mode 100644 index 000000000..0a12133d7 --- /dev/null +++ b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.files @@ -0,0 +1,2 @@ +include/gtk-2.0/gdk-pixbuf +lib/libgdk_pixbuf-2.0.so diff --git a/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.gi b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.gi new file mode 100644 index 000000000..5a5f439ca --- /dev/null +++ b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.gi @@ -0,0 +1,720 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata new file mode 100644 index 000000000..cd1f99e87 --- /dev/null +++ b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.metadata @@ -0,0 +1,7 @@ +Gdk cheader_filename="gdk-pixbuf/gdk-pixbuf.h" +gdk_pixbuf_new_from_xpm_data.data is_array="1" +gdk_pixbuf_save_to_bufferv.option_keys is_array="1" +gdk_pixbuf_save_to_bufferv.option_values is_array="1" +gdk_pixbuf_save_to_callbackv.option_keys is_array="1" +gdk_pixbuf_save_to_callbackv.option_values is_array="1" + diff --git a/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.namespace b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.namespace new file mode 100644 index 000000000..2617db96f --- /dev/null +++ b/vapi/packages/gdk-pixbuf-2.0/gdk-pixbuf-2.0.namespace @@ -0,0 +1 @@ +Gdk diff --git a/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps b/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps index 659d658dd..57ed9cf58 100644 --- a/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps +++ b/vapi/packages/gnome-desktop-2.0/gnome-desktop-2.0.deps @@ -1,5 +1,6 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango gtk+-2.0 diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.deps b/vapi/packages/gtk+-2.0/gtk+-2.0.deps index e02a9ef81..341815e6b 100644 --- a/vapi/packages/gtk+-2.0/gtk+-2.0.deps +++ b/vapi/packages/gtk+-2.0/gtk+-2.0.deps @@ -1,4 +1,5 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango diff --git a/vapi/packages/gtk+-2.0/gtk+-2.0.gi b/vapi/packages/gtk+-2.0/gtk+-2.0.gi index 5fed2461d..b1af10a1f 100644 --- a/vapi/packages/gtk+-2.0/gtk+-2.0.gi +++ b/vapi/packages/gtk+-2.0/gtk+-2.0.gi @@ -24708,13 +24708,13 @@ - + - + - + diff --git a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.deps b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.deps index 41a2aa1b5..96053965b 100644 --- a/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.deps +++ b/vapi/packages/gtksourceview-2.0/gtksourceview-2.0.deps @@ -1,5 +1,6 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango gtk+-2.0 diff --git a/vapi/packages/hildon-1/hildon-1.deps b/vapi/packages/hildon-1/hildon-1.deps index 0dec08afe..449f66cea 100644 --- a/vapi/packages/hildon-1/hildon-1.deps +++ b/vapi/packages/hildon-1/hildon-1.deps @@ -1,4 +1,5 @@ gtk+-2.0 +gdk-pixbuf-2.0 gdk-2.0 pango atk diff --git a/vapi/packages/libglade-2.0/libglade-2.0.deps b/vapi/packages/libglade-2.0/libglade-2.0.deps index 41a2aa1b5..96053965b 100644 --- a/vapi/packages/libglade-2.0/libglade-2.0.deps +++ b/vapi/packages/libglade-2.0/libglade-2.0.deps @@ -1,5 +1,6 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango gtk+-2.0 diff --git a/vapi/packages/libgnomeui-2.0/libgnomeui-2.0.deps b/vapi/packages/libgnomeui-2.0/libgnomeui-2.0.deps index 1a5d5c29f..687dfd6b6 100644 --- a/vapi/packages/libgnomeui-2.0/libgnomeui-2.0.deps +++ b/vapi/packages/libgnomeui-2.0/libgnomeui-2.0.deps @@ -1,5 +1,6 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango gtk+-2.0 diff --git a/vapi/packages/libnotify/libnotify.deps b/vapi/packages/libnotify/libnotify.deps index 41a2aa1b5..96053965b 100644 --- a/vapi/packages/libnotify/libnotify.deps +++ b/vapi/packages/libnotify/libnotify.deps @@ -1,5 +1,6 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango gtk+-2.0 diff --git a/vapi/packages/libwnck-1.0/libwnck-1.0.deps b/vapi/packages/libwnck-1.0/libwnck-1.0.deps index 41a2aa1b5..96053965b 100644 --- a/vapi/packages/libwnck-1.0/libwnck-1.0.deps +++ b/vapi/packages/libwnck-1.0/libwnck-1.0.deps @@ -1,5 +1,6 @@ atk cairo +gdk-pixbuf-2.0 gdk-2.0 pango gtk+-2.0 diff --git a/vapi/packages/poppler-glib/poppler-glib.deps b/vapi/packages/poppler-glib/poppler-glib.deps index fd098cda4..f2c20337e 100644 --- a/vapi/packages/poppler-glib/poppler-glib.deps +++ b/vapi/packages/poppler-glib/poppler-glib.deps @@ -1,3 +1,4 @@ pango +gdk-pixbuf-2.0 gdk-2.0 cairo diff --git a/vapi/packages/vte/vte.deps b/vapi/packages/vte/vte.deps index 0dec08afe..449f66cea 100644 --- a/vapi/packages/vte/vte.deps +++ b/vapi/packages/vte/vte.deps @@ -1,4 +1,5 @@ gtk+-2.0 +gdk-pixbuf-2.0 gdk-2.0 pango atk diff --git a/vapi/poppler-glib.deps b/vapi/poppler-glib.deps index ed798603b..f2c20337e 100644 --- a/vapi/poppler-glib.deps +++ b/vapi/poppler-glib.deps @@ -1,4 +1,4 @@ -cairo pango +gdk-pixbuf-2.0 gdk-2.0 - +cairo diff --git a/vapi/vte.deps b/vapi/vte.deps index 0dec08afe..449f66cea 100644 --- a/vapi/vte.deps +++ b/vapi/vte.deps @@ -1,4 +1,5 @@ gtk+-2.0 +gdk-pixbuf-2.0 gdk-2.0 pango atk