[vala] cairo: Add cairo_rectangle struct and set cairo_matrix_t has not type id
- From: Jaap A. Haitsma <jhaitsma src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] cairo: Add cairo_rectangle struct and set cairo_matrix_t has not type id
- Date: Tue, 13 Oct 2009 05:45:47 +0000 (UTC)
commit e36516a2d20600b69fc76ed77612d1c12f442a19
Author: Nicolas Bruguier <nicolas bruguier supersonicimagine fr>
Date: Mon Oct 12 18:31:01 2009 +0200
cairo: Add cairo_rectangle struct and set cairo_matrix_t has not type id
vapi/cairo.vapi | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/vapi/cairo.vapi b/vapi/cairo.vapi
index d43c852..2a070e7 100644
--- a/vapi/cairo.vapi
+++ b/vapi/cairo.vapi
@@ -533,7 +533,7 @@ namespace Cairo {
public int get_depth ();
}
- [CCode (cname = "cairo_matrix_t")]
+ [CCode (cname = "cairo_matrix_t", has_type_id = "false")]
public struct Matrix {
[CCode (cname = "cairo_matrix_init")]
public Matrix (double xx, double yx, double xy, double yy, double x0, double y0);
@@ -548,7 +548,16 @@ namespace Cairo {
public void transform_distance (ref double dx, ref double dy);
public void transform_point (ref double x, ref double y);
}
-
+
+ [CCode (cname = "cairo_rectangle_t", has_type_id = "false")]
+ public struct Rectangle
+ {
+ public double x;
+ public double y;
+ public double width;
+ public double height;
+ }
+
[CCode (cname = "cairo_status_t")]
public enum Status {
SUCCESS,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]