From: Jürg Billeter Date: Thu, 10 Feb 2011 23:03:28 +0000 (+0100) Subject: Add clutter-gtk-1.0 bindings X-Git-Tag: 0.11.6~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f321e4109ed90fdc28a5c7d1ae315090fdcd5ce7;p=thirdparty%2Fvala.git Add clutter-gtk-1.0 bindings Fixes bug 642013. --- diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 0c32fbf2b..964fa4e2f 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -21,6 +21,8 @@ dist_vapi_DATA = \ clutter-gst-1.0.vapi \ clutter-gtk-0.10.deps \ clutter-gtk-0.10.vapi \ + clutter-gtk-1.0.deps \ + clutter-gtk-1.0.vapi \ clutter-json-1.0.vapi \ cogl-1.0.vapi \ cogl-1.0.deps \ diff --git a/vapi/clutter-gtk-1.0.deps b/vapi/clutter-gtk-1.0.deps new file mode 100644 index 000000000..2c800596b --- /dev/null +++ b/vapi/clutter-gtk-1.0.deps @@ -0,0 +1,8 @@ +gio-2.0 +atk +gdk-pixbuf-2.0 +pango +cairo +gdk-3.0 +clutter-1.0 +gtk+-3.0 diff --git a/vapi/clutter-gtk-1.0.vapi b/vapi/clutter-gtk-1.0.vapi new file mode 100644 index 000000000..baadc2734 --- /dev/null +++ b/vapi/clutter-gtk-1.0.vapi @@ -0,0 +1,74 @@ +/* clutter-gtk-1.0.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, Clutter.Scriptable, Clutter.Animatable, Atk.Implementor, Clutter.Container, GtkClutter.Scrollable, GtkClutter.Zoomable { + [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 ([CCode (array_length_pos = 0.9)] ref unowned string[] argv, string parameter_string, [CCode (array_length = false)] 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-1.0/clutter-gtk-1.0.defines b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.defines new file mode 100644 index 000000000..374eae047 --- /dev/null +++ b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.defines @@ -0,0 +1 @@ +-DCLUTTER_GTK_COMPILATION diff --git a/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.files b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.files new file mode 100644 index 000000000..e0f5b2ceb --- /dev/null +++ b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.files @@ -0,0 +1,2 @@ +include/clutter-1.0/clutter-gtk +lib/libclutter-gtk-0.10.so diff --git a/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.gi b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.gi new file mode 100644 index 000000000..81c548486 --- /dev/null +++ b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.gi @@ -0,0 +1,254 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.metadata b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.metadata new file mode 100644 index 000000000..2d843bc75 --- /dev/null +++ b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.metadata @@ -0,0 +1,16 @@ +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" +gtk_clutter_init_with_args.argc hidden="1" +gtk_clutter_init_with_args.argv is_array="1" is_ref="1" array_length_pos="0.9" +gtk_clutter_init_with_args.entries is_array="1" no_array_length="1" +gtk_clutter_init_with_args.translation_domain nullable="1" + diff --git a/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.namespace b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.namespace new file mode 100644 index 000000000..b15505d68 --- /dev/null +++ b/vapi/packages/clutter-gtk-1.0/clutter-gtk-1.0.namespace @@ -0,0 +1 @@ +GtkClutter