[vala/0.10] pango: Fix PangoGlyphItemIter binding



commit 2210b878393e053d0a26e8fc49cd113bb8e7b0e0
Author: Jürg Billeter <j bitron ch>
Date:   Fri Oct 22 09:10:39 2010 +0200

    pango: Fix PangoGlyphItemIter binding

 vapi/packages/pango/pango.metadata |    1 +
 vapi/pango.vapi                    |   34 +++++++++++++++++-----------------
 2 files changed, 18 insertions(+), 17 deletions(-)
---
diff --git a/vapi/packages/pango/pango.metadata b/vapi/packages/pango/pango.metadata
index e56a3f2..a7f248c 100644
--- a/vapi/packages/pango/pango.metadata
+++ b/vapi/packages/pango/pango.metadata
@@ -60,6 +60,7 @@ PangoFontDescription is_immutable="1"
 pango_font_description_from_string transfer_ownership="1"
 PangoGlyphInfo is_value_type="1"
 pango_glyph_item_letter_space.log_attrs is_array="1"
+PangoGlyphItemIter is_value_type="1"
 PangoGlyphGeometry is_value_type="1"
 pango_glyph_string_extents.ink_rect is_out="1"
 pango_glyph_string_extents.logical_rect is_out="1"
diff --git a/vapi/pango.vapi b/vapi/pango.vapi
index 7d891f9..4205893 100644
--- a/vapi/pango.vapi
+++ b/vapi/pango.vapi
@@ -287,23 +287,6 @@ namespace Pango {
 		public unowned Pango.GlyphItem split (string text, int split_index);
 	}
 	[Compact]
-	[CCode (copy_function = "pango_glyph_item_iter_copy", type_id = "PANGO_TYPE_GLYPH_ITEM_ITER", cheader_filename = "pango/pango.h")]
-	public class GlyphItemIter {
-		public int end_char;
-		public int end_glyph;
-		public int end_index;
-		public weak Pango.GlyphItem glyph_item;
-		public int start_char;
-		public int start_glyph;
-		public int start_index;
-		public weak string text;
-		public Pango.GlyphItemIter copy ();
-		public bool init_end (Pango.GlyphItem glyph_item, string text);
-		public bool init_start (Pango.GlyphItem glyph_item, string text);
-		public bool next_cluster ();
-		public bool prev_cluster ();
-	}
-	[Compact]
 	[CCode (copy_function = "pango_glyph_string_copy", type_id = "PANGO_TYPE_GLYPH_STRING", cheader_filename = "pango/pango.h")]
 	public class GlyphString {
 		public Pango.GlyphInfo glyphs;
@@ -531,6 +514,23 @@ namespace Pango {
 		public Pango.GlyphGeometry geometry;
 		public Pango.GlyphVisAttr attr;
 	}
+	[CCode (type_id = "PANGO_TYPE_GLYPH_ITEM_ITER", cheader_filename = "pango/pango.h")]
+	public struct GlyphItemIter {
+		public weak Pango.GlyphItem glyph_item;
+		public weak string text;
+		public int start_glyph;
+		public int start_index;
+		public int start_char;
+		public int end_glyph;
+		public int end_index;
+		public int end_char;
+		public Pango.GlyphItemIter copy ();
+		public void free ();
+		public bool init_end (Pango.GlyphItem glyph_item, string text);
+		public bool init_start (Pango.GlyphItem glyph_item, string text);
+		public bool next_cluster ();
+		public bool prev_cluster ();
+	}
 	[CCode (type_id = "PANGO_TYPE_GLYPH_VIS_ATTR", cheader_filename = "pango/pango.h")]
 	public struct GlyphVisAttr {
 		public uint is_cluster_start;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]