From 773382a1eef3514c6984b7e3aa342a8e1a69de81 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrg=20Billeter?= Date: Sat, 2 Sep 2006 08:45:28 +0000 Subject: [PATCH] mark Matrix as reference type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2006-09-02 Jürg Billeter * vapi/cairo.vala: mark Matrix as reference type svn path=/trunk/; revision=115 --- vala/ChangeLog | 4 ++++ vala/vapi/cairo.vala | 20 +++++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/vala/ChangeLog b/vala/ChangeLog index 20d2995..23a5283 100644 --- a/vala/ChangeLog +++ b/vala/ChangeLog @@ -1,3 +1,7 @@ +2006-09-02 Jürg Billeter + + * vapi/cairo.vala: mark Matrix as reference type + 2006-08-24 Jürg Billeter * vapi/atk.vala, vapi/gdk-2.0.vala, vapi/gtk+-2.0.vala, vapi/pango.vala: diff --git a/vala/vapi/cairo.vala b/vala/vapi/cairo.vala index 2d90b86..dff0ca8 100644 --- a/vala/vapi/cairo.vala +++ b/vala/vapi/cairo.vala @@ -125,7 +125,7 @@ namespace Cairo { public void translate (double tx, double ty); public void scale (double sx, double sy); public void rotate (double angle); - public void transform (ref Matrix matrix); + public void transform (Matrix matrix); public void identity_matrix (); public void user_to_device (ref double x, ref double y); @@ -135,8 +135,8 @@ namespace Cairo { public void select_font_face (string! family, FontSlant slant, FontWeight weight); public void set_font_size (double size); - public void set_font_matrix (ref Matrix! matrix); - public void get_font_matrix (ref Matrix matrix); + public void set_font_matrix (Matrix! matrix); + public void get_font_matrix (Matrix matrix); public void set_font_options (ref FontOptions! options); public void get_font_options (ref FontOptions options); @@ -252,8 +252,8 @@ namespace Cairo { public void set_filter (Filter filter); public Filter get_filter (); - public void set_matrix (ref Matrix matrix); - public void get_matrix (ref Matrix matrix); + public void set_matrix (Matrix matrix); + public void get_matrix (Matrix matrix); public PatternType get_type (); } @@ -321,7 +321,7 @@ namespace Cairo { [CCode (cname = "cairo_scaled_font_t")] public struct ScaledFont { [CCode (cname = "cairo_scaled_font_create")] - public construct (ref Matrix font_matrix, ref Matrix ctm, ref FontOptions options); + public construct (Matrix font_matrix, Matrix ctm, ref FontOptions options); public Status status (); public void extents (ref FontExtents extents); public void text_extents (string! utf8, ref TextExtents extents); @@ -329,8 +329,8 @@ namespace Cairo { public void glyph_extents (Glyph[] glyphs, int num_glyphs, ref TextExtents extents); public FontFace get_font_face (); public void get_font_options (ref FontOptions options); - public void get_font_matrix (ref Matrix font_matrix); - public void get_ctm (ref Matrix ctm); + public void get_font_matrix (Matrix font_matrix); + public void get_ctm (Matrix ctm); public FontType get_type (); } @@ -530,6 +530,8 @@ namespace Cairo { public int get_depth (); } + [ReferenceType (free_function = "g_free")] + [CCode (cname = "cairo_matrix_t")] public struct Matrix { public void init (double xx, double yx, double xy, double yy, double x0, double y0); public void init_identity (); @@ -540,7 +542,7 @@ namespace Cairo { public void scale (double sx, double sy); public void rotate (double radians); public Status invert (); - public void multiply (ref Matrix a, ref Matrix b); + public void multiply (Matrix a, Matrix b); public void transform_distance (ref double dx, ref double dy); public void transform_point (ref double x, ref double y); } -- 2.7.4