summaryrefslogtreecommitdiff
path: root/vapi/cairo.vapi
diff options
context:
space:
mode:
authorJuerg Billeter <j@bitron.ch>2008-02-07 12:18:59 +0000
committerJürg Billeter <juergbi@src.gnome.org>2008-02-07 12:18:59 +0000
commit41fd839d52798b043ecad4a49e960f90293c7b8f (patch)
tree9c1544f8206a5688db0cfefe8562b01d9003adef /vapi/cairo.vapi
parenta02d43c6da0a300c7c689ceb3f36d31f9da955f2 (diff)
downloadvala-41fd839d52798b043ecad4a49e960f90293c7b8f.tar.gz
use 0 as array length when array is a null literal
2008-02-07 Juerg Billeter <j@bitron.ch> * gobject/valaccodegenerator.vala: use 0 as array length when array is a null literal * vapigen/valagidlparser.vala: add basic array length support * vapi/cairo.vapi: fix some array length parameters * vapi/atk.vapi, vapi/gconf-2.0.vapi, vapi/gdk-2.0.vapi, vapi/gdk-pixbuf-2.0.vapi, vapi/gio-2.0.vapi, vapi/gnome-desktop-2.0.vapi, vapi/gstreamer-0.10.vapi, vapi/gstreamer-audio-0.10.vapi, vapi/gstreamer-check-0.10.vapi, vapi/gstreamer-netbuffer-0.10.vapi, vapi/gtk+-2.0.vapi, vapi/libgnome-2.0.vapi, vapi/libgnomeui-2.0.vapi, vapi/libnotify.vapi, vapi/libsoup-2.2.vapi, vapi/libsoup-2.4.vapi, vapi/pango.vapi, vapi/vte.vapi: regenerated svn path=/trunk/; revision=988
Diffstat (limited to 'vapi/cairo.vapi')
-rw-r--r--vapi/cairo.vapi26
1 files changed, 9 insertions, 17 deletions
diff --git a/vapi/cairo.vapi b/vapi/cairo.vapi
index cacdbd64d..560d5202b 100644
--- a/vapi/cairo.vapi
+++ b/vapi/cairo.vapi
@@ -1,6 +1,6 @@
/* cairo.vala
*
- * Copyright (C) 2006-2007 Jürg Billeter
+ * Copyright (C) 2006-2008 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -49,8 +49,7 @@ namespace Cairo {
public void set_antialias (Antialias antialias);
public Antialias get_antialias ();
- [NoArrayLength ()]
- public void set_dash (double[] dashes, int num_dashes, double offset);
+ public void set_dash (double[] dashes, double offset);
public void set_fill_rule (FillRule fill_rule);
public FillRule get_fill_rule ();
@@ -116,8 +115,7 @@ namespace Cairo {
public void rectangle (double x, double y, double width, double height);
- [NoArrayLength ()]
- public void glyph_path (Glyph[] glyphs, int num_glyphs);
+ public void glyph_path (Glyph[] glyphs);
public void text_path (string! utf8);
public void rel_curve_to (double dx1, double dy1, double dx2, double dy2, double dx3, double dy3);
@@ -143,16 +141,14 @@ namespace Cairo {
public void get_font_options (ref FontOptions options);
public void show_text (string! utf8);
- [NoArrayLength ()]
- public void show_glyphs (Glyph[] glyphs, int num_glyphs);
+ public void show_glyphs (Glyph[] glyphs);
public weak FontFace get_font_face ();
public void font_extents (ref FontExtents extents);
public void set_font_face (FontFace font_face);
public void set_scaled_font (ScaledFont! font);
public void text_extents (string! utf8, ref TextExtents extents);
- [NoArrayLength ()]
- public void glyph_extents (Glyph[] glyphs, int num_glyphs, ref TextExtents extents);
+ public void glyph_extents (Glyph[] glyphs, ref TextExtents extents);
}
public enum Antialias {
@@ -322,8 +318,7 @@ namespace Cairo {
public Status status ();
public void extents (ref FontExtents extents);
public void text_extents (string! utf8, ref TextExtents extents);
- [NoArrayLength ()]
- public void glyph_extents (Glyph[] glyphs, int num_glyphs, ref TextExtents extents);
+ public void glyph_extents (Glyph[] glyphs, ref TextExtents extents);
public weak FontFace get_font_face ();
public void get_font_options (ref FontOptions options);
public void get_font_matrix (out Matrix font_matrix);
@@ -469,10 +464,8 @@ namespace Cairo {
public void set_size (double width_in_points, double height_in_points);
}
- [NoArrayLength ()]
- public static delegate Status ReadFunc (pointer closure, uchar[] data, uint length);
- [NoArrayLength ()]
- public static delegate Status WriteFunc (pointer closure, uchar[] data, uint length);
+ public static delegate Status ReadFunc (pointer closure, uchar[] data);
+ public static delegate Status WriteFunc (pointer closure, uchar[] data);
[CCode (cname = "cairo_surface_t", cheader_filename = "cairo-ps.h")]
public class PsSurface : Surface {
@@ -493,8 +486,7 @@ namespace Cairo {
[CCode (cname = "cairo_svg_surface_create_for_stream")]
public SvgSurface.for_stream (WriteFunc write_func, pointer closure, double width_in_points, double height_in_points);
public void restrict_to_version (SvgVersion version);
- [NoArrayLength ()]
- public static void get_versions (out SvgVersion[] versions, ref int num_versions);
+ public static void get_versions (out SvgVersion[] versions);
}
[CCode (cname = "cairo_svg_version_t", cprefix = "CAIRO_SVG_")]