From: Gordon Allott Date: Wed, 31 Mar 2010 15:16:15 +0000 (+0200) Subject: Add clutter-gtk-0.10 bindings X-Git-Tag: 0.8.0~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c10907f6754551448fe553649fc182cf98393d1;p=thirdparty%2Fvala.git Add clutter-gtk-0.10 bindings Fixes bug 614376. --- diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 09bb2ad0e..d11c93c75 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -15,8 +15,10 @@ dist_vapi_DATA = \ cairo-xcb.deps \ cairo-xcb.vapi \ ccss-1.vapi \ - clutter-1.0.vapi \ clutter-1.0.deps \ + clutter-1.0.vapi \ + clutter-gtk-0.10.deps \ + clutter-gtk-0.10.vapi \ clutter-json-1.0.vapi \ cogl-1.0.vapi \ cogl-1.0.deps \ diff --git a/vapi/clutter-gtk-0.10.deps b/vapi/clutter-gtk-0.10.deps new file mode 100644 index 000000000..9d0de2a2c --- /dev/null +++ b/vapi/clutter-gtk-0.10.deps @@ -0,0 +1,8 @@ +gio-2.0 +atk +gdk-pixbuf-2.0 +pango +cairo +gdk-2.0 +clutter-1.0 +gtk+-2.0 diff --git a/vapi/clutter-gtk-0.10.vapi b/vapi/clutter-gtk-0.10.vapi new file mode 100644 index 000000000..e794d6add --- /dev/null +++ b/vapi/clutter-gtk-0.10.vapi @@ -0,0 +1,74 @@ +/* clutter-gtk-0.10.vapi generated by vapigen, do not modify. */ + +[CCode (cprefix = "GtkClutter", lower_case_cprefix = "gtk_clutter_")] +namespace GtkClutter { + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public class Embed : Gtk.Container, Atk.Implementor, Gtk.Buildable { + [CCode (type = "GtkWidget*", has_construct_function = false)] + public Embed (); + public unowned Clutter.Actor get_stage (); + } + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public class Viewport : Clutter.Actor, GtkClutter.Zoomable, GtkClutter.Scrollable, Clutter.Container, Clutter.Scriptable { + [CCode (type = "ClutterActor*", has_construct_function = false)] + public Viewport (Gtk.Adjustment h_adjust, Gtk.Adjustment v_adjust, Gtk.Adjustment z_adjust); + public void get_origin (float x, float y, float z); + [NoAccessorMethod] + public Clutter.Actor child { owned get; set; } + public Clutter.Vertex origin { get; } + } + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public interface Scrollable { + public abstract void get_adjustments (out unowned Gtk.Adjustment h_adjust, out unowned Gtk.Adjustment v_adjust); + public abstract void set_adjustments (Gtk.Adjustment h_adjust, Gtk.Adjustment v_adjust); + } + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public interface Zoomable { + public abstract unowned Gtk.Adjustment get_adjustment (); + public abstract void set_adjustment (Gtk.Adjustment z_adjust); + } + [CCode (cprefix = "CLUTTER_INIT_ERROR_", has_type_id = false, cheader_filename = "clutter-gtk/clutter-gtk.h")] + public enum ClutterGtkInitError { + LAST, + GTK + } + [CCode (cprefix = "CLUTTER_GTK_TEXTURE_", has_type_id = false, cheader_filename = "clutter-gtk/clutter-gtk.h")] + public enum ClutterGtkTextureError { + INVALID_STOCK_ID, + ERROR_LAST + } + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static void get_base_color (Gtk.Widget widget, Gtk.StateType state, out Clutter.Color color); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static void get_bg_color (Gtk.Widget widget, Gtk.StateType state, out Clutter.Color color); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static void get_dark_color (Gtk.Widget widget, Gtk.StateType state, out Clutter.Color color); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static void get_fg_color (Gtk.Widget widget, Gtk.StateType state, out Clutter.Color color); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static void get_light_color (Gtk.Widget widget, Gtk.StateType state, out Clutter.Color color); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static void get_mid_color (Gtk.Widget widget, Gtk.StateType state, out Clutter.Color color); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static void get_text_aa_color (Gtk.Widget widget, Gtk.StateType state, out Clutter.Color color); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static void get_text_color (Gtk.Widget widget, Gtk.StateType state, out Clutter.Color color); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static Clutter.InitError init ([CCode (array_length_pos = 0.9)] ref unowned string[] argv); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static Clutter.InitError init_with_args (int argc, out unowned string argv, string parameter_string, GLib.OptionEntry entries, string translation_domain) throws GLib.Error; + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static GLib.Quark texture_error_quark (); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static unowned Clutter.Actor texture_new_from_icon_name (Gtk.Widget widget, string icon_name, Gtk.IconSize size); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static unowned Clutter.Actor texture_new_from_pixbuf (Gdk.Pixbuf pixbuf); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static unowned Clutter.Actor texture_new_from_stock (Gtk.Widget widget, string stock_id, Gtk.IconSize size); + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static bool texture_set_from_icon_name (Clutter.Texture texture, Gtk.Widget widget, string icon_name, Gtk.IconSize size) throws GLib.Error; + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static bool texture_set_from_pixbuf (Clutter.Texture texture, Gdk.Pixbuf pixbuf) throws GLib.Error; + [CCode (cheader_filename = "clutter-gtk/clutter-gtk.h")] + public static bool texture_set_from_stock (Clutter.Texture texture, Gtk.Widget widget, string stock_id, Gtk.IconSize size) throws GLib.Error; +} diff --git a/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.defines b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.defines new file mode 100644 index 000000000..374eae047 --- /dev/null +++ b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.defines @@ -0,0 +1 @@ +-DCLUTTER_GTK_COMPILATION diff --git a/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.files b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.files new file mode 100644 index 000000000..e0f5b2ceb --- /dev/null +++ b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.files @@ -0,0 +1,2 @@ +include/clutter-1.0/clutter-gtk +lib/libclutter-gtk-0.10.so diff --git a/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.gi b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.gi new file mode 100644 index 000000000..d90b590a9 --- /dev/null +++ b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.gi @@ -0,0 +1,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.metadata b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.metadata new file mode 100644 index 000000000..e299425fa --- /dev/null +++ b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.metadata @@ -0,0 +1,12 @@ +GtkClutter cheader_filename="clutter-gtk/clutter-gtk.h" +gtk_clutter_get_fg_color.color is_out="1" +gtk_clutter_get_bg_color.color is_out="1" +gtk_clutter_get_dark_color.color is_out="1" +gtk_clutter_get_base_color.color is_out="1" +gtk_clutter_get_text_color.color is_out="1" +gtk_clutter_get_text_aa_color.color is_out="1" +gtk_clutter_get_light_color.color is_out="1" +gtk_clutter_get_mid_color.color is_out="1" +gtk_clutter_init.argc hidden="1" +gtk_clutter_init.argv is_array="1" is_ref="1" array_length_pos="0.9" + diff --git a/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.namespace b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.namespace new file mode 100644 index 000000000..b15505d68 --- /dev/null +++ b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.namespace @@ -0,0 +1 @@ +GtkClutter