[vala] Add clutter-gtk-0.10 bindings
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] Add clutter-gtk-0.10 bindings
- Date: Wed, 31 Mar 2010 15:18:33 +0000 (UTC)
commit 9c10907f6754551448fe553649fc182cf98393d1
Author: Gordon Allott <gord allott canonical com>
Date: Wed Mar 31 17:16:15 2010 +0200
Add clutter-gtk-0.10 bindings
Fixes bug 614376.
vapi/Makefile.am | 4 +-
vapi/clutter-gtk-0.10.deps | 8 +
vapi/clutter-gtk-0.10.vapi | 74 ++++++
.../clutter-gtk-0.10/clutter-gtk-0.10.defines | 1 +
.../clutter-gtk-0.10/clutter-gtk-0.10.files | 2 +
vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.gi | 252 ++++++++++++++++++++
.../clutter-gtk-0.10/clutter-gtk-0.10.metadata | 12 +
.../clutter-gtk-0.10/clutter-gtk-0.10.namespace | 1 +
8 files changed, 353 insertions(+), 1 deletions(-)
---
diff --git a/vapi/Makefile.am b/vapi/Makefile.am
index 09bb2ad..d11c93c 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 0000000..9d0de2a
--- /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 0000000..e794d6a
--- /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 0000000..374eae0
--- /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 0000000..e0f5b2c
--- /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 0000000..d90b590
--- /dev/null
+++ b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.gi
@@ -0,0 +1,252 @@
+<?xml version="1.0"?>
+<api version="1.0">
+ <namespace name="GtkClutter">
+ <function name="get_base_color" symbol="gtk_clutter_get_base_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="state" type="GtkStateType"/>
+ <parameter name="color" type="ClutterColor*"/>
+ </parameters>
+ </function>
+ <function name="get_bg_color" symbol="gtk_clutter_get_bg_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="state" type="GtkStateType"/>
+ <parameter name="color" type="ClutterColor*"/>
+ </parameters>
+ </function>
+ <function name="get_dark_color" symbol="gtk_clutter_get_dark_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="state" type="GtkStateType"/>
+ <parameter name="color" type="ClutterColor*"/>
+ </parameters>
+ </function>
+ <function name="get_fg_color" symbol="gtk_clutter_get_fg_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="state" type="GtkStateType"/>
+ <parameter name="color" type="ClutterColor*"/>
+ </parameters>
+ </function>
+ <function name="get_light_color" symbol="gtk_clutter_get_light_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="state" type="GtkStateType"/>
+ <parameter name="color" type="ClutterColor*"/>
+ </parameters>
+ </function>
+ <function name="get_mid_color" symbol="gtk_clutter_get_mid_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="state" type="GtkStateType"/>
+ <parameter name="color" type="ClutterColor*"/>
+ </parameters>
+ </function>
+ <function name="get_text_aa_color" symbol="gtk_clutter_get_text_aa_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="state" type="GtkStateType"/>
+ <parameter name="color" type="ClutterColor*"/>
+ </parameters>
+ </function>
+ <function name="get_text_color" symbol="gtk_clutter_get_text_color">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="state" type="GtkStateType"/>
+ <parameter name="color" type="ClutterColor*"/>
+ </parameters>
+ </function>
+ <function name="init" symbol="gtk_clutter_init">
+ <return-type type="ClutterInitError"/>
+ <parameters>
+ <parameter name="argc" type="int*"/>
+ <parameter name="argv" type="char***"/>
+ </parameters>
+ </function>
+ <function name="init_with_args" symbol="gtk_clutter_init_with_args">
+ <return-type type="ClutterInitError"/>
+ <parameters>
+ <parameter name="argc" type="int*"/>
+ <parameter name="argv" type="char***"/>
+ <parameter name="parameter_string" type="char*"/>
+ <parameter name="entries" type="GOptionEntry*"/>
+ <parameter name="translation_domain" type="char*"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
+ <function name="texture_error_quark" symbol="gtk_clutter_texture_error_quark">
+ <return-type type="GQuark"/>
+ </function>
+ <function name="texture_new_from_icon_name" symbol="gtk_clutter_texture_new_from_icon_name">
+ <return-type type="ClutterActor*"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="icon_name" type="gchar*"/>
+ <parameter name="size" type="GtkIconSize"/>
+ </parameters>
+ </function>
+ <function name="texture_new_from_pixbuf" symbol="gtk_clutter_texture_new_from_pixbuf">
+ <return-type type="ClutterActor*"/>
+ <parameters>
+ <parameter name="pixbuf" type="GdkPixbuf*"/>
+ </parameters>
+ </function>
+ <function name="texture_new_from_stock" symbol="gtk_clutter_texture_new_from_stock">
+ <return-type type="ClutterActor*"/>
+ <parameters>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="stock_id" type="gchar*"/>
+ <parameter name="size" type="GtkIconSize"/>
+ </parameters>
+ </function>
+ <function name="texture_set_from_icon_name" symbol="gtk_clutter_texture_set_from_icon_name">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="texture" type="ClutterTexture*"/>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="icon_name" type="gchar*"/>
+ <parameter name="size" type="GtkIconSize"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
+ <function name="texture_set_from_pixbuf" symbol="gtk_clutter_texture_set_from_pixbuf">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="texture" type="ClutterTexture*"/>
+ <parameter name="pixbuf" type="GdkPixbuf*"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
+ <function name="texture_set_from_stock" symbol="gtk_clutter_texture_set_from_stock">
+ <return-type type="gboolean"/>
+ <parameters>
+ <parameter name="texture" type="ClutterTexture*"/>
+ <parameter name="widget" type="GtkWidget*"/>
+ <parameter name="stock_id" type="gchar*"/>
+ <parameter name="size" type="GtkIconSize"/>
+ <parameter name="error" type="GError**"/>
+ </parameters>
+ </function>
+ <enum name="ClutterGtkInitError">
+ <member name="CLUTTER_INIT_ERROR_LAST" value="-3"/>
+ <member name="CLUTTER_INIT_ERROR_GTK" value="-4"/>
+ </enum>
+ <enum name="ClutterGtkTextureError">
+ <member name="CLUTTER_GTK_TEXTURE_INVALID_STOCK_ID" value="0"/>
+ <member name="CLUTTER_GTK_TEXTURE_ERROR_LAST" value="1"/>
+ </enum>
+ <object name="GtkClutterEmbed" parent="GtkContainer" type-name="GtkClutterEmbed" get-type="gtk_clutter_embed_get_type">
+ <implements>
+ <interface name="AtkImplementor"/>
+ <interface name="GtkBuildable"/>
+ </implements>
+ <method name="get_stage" symbol="gtk_clutter_embed_get_stage">
+ <return-type type="ClutterActor*"/>
+ <parameters>
+ <parameter name="embed" type="GtkClutterEmbed*"/>
+ </parameters>
+ </method>
+ <constructor name="new" symbol="gtk_clutter_embed_new">
+ <return-type type="GtkWidget*"/>
+ </constructor>
+ </object>
+ <object name="GtkClutterViewport" parent="ClutterActor" type-name="GtkClutterViewport" get-type="gtk_clutter_viewport_get_type">
+ <implements>
+ <interface name="GtkClutterZoomable"/>
+ <interface name="GtkClutterScrollable"/>
+ <interface name="ClutterContainer"/>
+ <interface name="ClutterScriptable"/>
+ </implements>
+ <method name="get_origin" symbol="gtk_clutter_viewport_get_origin">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="viewport" type="GtkClutterViewport*"/>
+ <parameter name="x" type="gfloat*"/>
+ <parameter name="y" type="gfloat*"/>
+ <parameter name="z" type="gfloat*"/>
+ </parameters>
+ </method>
+ <constructor name="new" symbol="gtk_clutter_viewport_new">
+ <return-type type="ClutterActor*"/>
+ <parameters>
+ <parameter name="h_adjust" type="GtkAdjustment*"/>
+ <parameter name="v_adjust" type="GtkAdjustment*"/>
+ <parameter name="z_adjust" type="GtkAdjustment*"/>
+ </parameters>
+ </constructor>
+ <property name="child" type="ClutterActor*" readable="1" writable="1" construct="0" construct-only="0"/>
+ <property name="origin" type="ClutterVertex*" readable="1" writable="0" construct="0" construct-only="0"/>
+ </object>
+ <interface name="GtkClutterScrollable" type-name="GtkClutterScrollable" get-type="gtk_clutter_scrollable_get_type">
+ <method name="get_adjustments" symbol="gtk_clutter_scrollable_get_adjustments">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="scrollable" type="GtkClutterScrollable*"/>
+ <parameter name="h_adjust" type="GtkAdjustment**"/>
+ <parameter name="v_adjust" type="GtkAdjustment**"/>
+ </parameters>
+ </method>
+ <method name="set_adjustments" symbol="gtk_clutter_scrollable_set_adjustments">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="scrollable" type="GtkClutterScrollable*"/>
+ <parameter name="h_adjust" type="GtkAdjustment*"/>
+ <parameter name="v_adjust" type="GtkAdjustment*"/>
+ </parameters>
+ </method>
+ <vfunc name="get_adjustments">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="scrollable" type="GtkClutterScrollable*"/>
+ <parameter name="h_adjust" type="GtkAdjustment**"/>
+ <parameter name="v_adjust" type="GtkAdjustment**"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="set_adjustments">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="scrollable" type="GtkClutterScrollable*"/>
+ <parameter name="h_adjust" type="GtkAdjustment*"/>
+ <parameter name="v_adjust" type="GtkAdjustment*"/>
+ </parameters>
+ </vfunc>
+ </interface>
+ <interface name="GtkClutterZoomable" type-name="GtkClutterZoomable" get-type="gtk_clutter_zoomable_get_type">
+ <method name="get_adjustment" symbol="gtk_clutter_zoomable_get_adjustment">
+ <return-type type="GtkAdjustment*"/>
+ <parameters>
+ <parameter name="zoomable" type="GtkClutterZoomable*"/>
+ </parameters>
+ </method>
+ <method name="set_adjustment" symbol="gtk_clutter_zoomable_set_adjustment">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="zoomable" type="GtkClutterZoomable*"/>
+ <parameter name="z_adjust" type="GtkAdjustment*"/>
+ </parameters>
+ </method>
+ <vfunc name="get_adjustment">
+ <return-type type="GtkAdjustment*"/>
+ <parameters>
+ <parameter name="zoomable" type="GtkClutterZoomable*"/>
+ </parameters>
+ </vfunc>
+ <vfunc name="set_adjustment">
+ <return-type type="void"/>
+ <parameters>
+ <parameter name="zoomable" type="GtkClutterZoomable*"/>
+ <parameter name="z_adjust" type="GtkAdjustment*"/>
+ </parameters>
+ </vfunc>
+ </interface>
+ </namespace>
+</api>
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 0000000..e299425
--- /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 0000000..b15505d
--- /dev/null
+++ b/vapi/packages/clutter-gtk-0.10/clutter-gtk-0.10.namespace
@@ -0,0 +1 @@
+GtkClutter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]