]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
cairo: Add cairo_rectangle struct and set cairo_matrix_t has not type id
authorNicolas Bruguier <nicolas.bruguier@supersonicimagine.fr>
Mon, 12 Oct 2009 16:31:01 +0000 (18:31 +0200)
committerJaap A. Haitsma <jaap@haitsma.org>
Tue, 13 Oct 2009 05:44:52 +0000 (07:44 +0200)
vapi/cairo.vapi

index d43c852849db083b803a72f9b2d329f01fbdd531..2a070e7513e8209cd206c229f9980a30b261aab6 100644 (file)
@@ -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,