summaryrefslogtreecommitdiff
path: root/vapi/cairo.vapi
diff options
context:
space:
mode:
authorNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>2009-10-12 18:31:01 +0200
committerJaap A. Haitsma <jaap@haitsma.org>2009-10-13 07:44:52 +0200
commite36516a2d20600b69fc76ed77612d1c12f442a19 (patch)
tree58ae224235c27a7c2ba5869f182590eb4a034c0e /vapi/cairo.vapi
parentccd85eec10860b71370f0eb01285e003472d11d9 (diff)
downloadvala-e36516a2d20600b69fc76ed77612d1c12f442a19.tar.gz
cairo: Add cairo_rectangle struct and set cairo_matrix_t has not type id
Diffstat (limited to 'vapi/cairo.vapi')
-rw-r--r--vapi/cairo.vapi13
1 files changed, 11 insertions, 2 deletions
diff --git a/vapi/cairo.vapi b/vapi/cairo.vapi
index d43c85284..2a070e751 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,