[vala/staging] cogl-1.0: Fix Cogl.Path.new binding
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] cogl-1.0: Fix Cogl.Path.new binding
- Date: Sun, 29 Jan 2012 15:26:19 +0000 (UTC)
commit f813fea5447707f06a0910d03df0a50d341f08d2
Author: Luca Bruno <lucabru src gnome org>
Date: Sun Jan 29 16:26:08 2012 +0100
cogl-1.0: Fix Cogl.Path.new binding
vapi/cogl-1.0.vapi | 3 +--
vapi/packages/cogl-1.0/cogl-1.0-custom.vala | 6 ++++++
vapi/packages/cogl-1.0/cogl-1.0.metadata | 1 +
3 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/vapi/cogl-1.0.vapi b/vapi/cogl-1.0.vapi
index d4d9db8..6e6b51c 100644
--- a/vapi/cogl-1.0.vapi
+++ b/vapi/cogl-1.0.vapi
@@ -159,8 +159,6 @@ namespace Cogl {
[CCode (cheader_filename = "cogl/cogl.h", copy_function = "cogl_path_copy")]
[Compact]
public class Path {
- [CCode (has_construct_function = false, type = "void")]
- public Path ();
public static void arc (float center_x, float center_y, float radius_x, float radius_y, float angle_1, float angle_2);
public static void close ();
public unowned Cogl.Path copy ();
@@ -173,6 +171,7 @@ namespace Cogl {
public static void line (float x_1, float y_1, float x_2, float y_2);
public static void line_to (float x, float y);
public static void move_to (float x, float y);
+ public static void @new ();
public static void polygon ([CCode (array_length = false)] float[] coords, int num_points);
public static void polyline ([CCode (array_length = false)] float[] coords, int num_points);
public static void rectangle (float x_1, float y_1, float x_2, float y_2);
diff --git a/vapi/packages/cogl-1.0/cogl-1.0-custom.vala b/vapi/packages/cogl-1.0/cogl-1.0-custom.vala
index b355de7..e894be4 100644
--- a/vapi/packages/cogl-1.0/cogl-1.0-custom.vala
+++ b/vapi/packages/cogl-1.0/cogl-1.0-custom.vala
@@ -105,6 +105,12 @@ namespace Cogl {
public static void push_draw_buffer ();
}
+ [CCode (cheader_filename = "cogl/cogl.h", copy_function = "cogl_path_copy")]
+ [Compact]
+ public class Path {
+ public static void @new ();
+ }
+
[Compact]
public class PixelBuffer: Handle {
public PixelBuffer (uint size);
diff --git a/vapi/packages/cogl-1.0/cogl-1.0.metadata b/vapi/packages/cogl-1.0/cogl-1.0.metadata
index 47f9c77..5ddf1fc 100644
--- a/vapi/packages/cogl-1.0/cogl-1.0.metadata
+++ b/vapi/packages/cogl-1.0/cogl-1.0.metadata
@@ -120,6 +120,7 @@ cogl_material_layer_get_type hidden="1"
cogl_offscreen_* hidden="1"
+cogl_path_new hidden="1"
cogl_path_polygon.coords is_array="1" no_array_length="1"
cogl_path_polyline.coords is_array="1" no_array_length="1"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]