]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
pango: Fix PangoGlyph and PangoGlyphString bindings
authorJürg Billeter <j@bitron.ch>
Mon, 25 Oct 2010 19:05:19 +0000 (21:05 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 26 Oct 2010 18:10:26 +0000 (20:10 +0200)
vapi/packages/pango/pango-custom.vala
vapi/packages/pango/pango.metadata
vapi/pango.vapi

index 5da8cf64aca2d5c653b18655fcb6e0daebc182b8..34739f15bcfa2139f301e9a92777e9525d4bcf20 100644 (file)
  */
 
 namespace Pango {
+       [CCode (cheader_filename = "pango/pango.h")]
+       public struct Glyph : uint32 {
+       }
+
        [CCode (cheader_filename = "pango/pango.h")]
        namespace Scale {
                [CCode (cname = "PANGO_SCALE_XX_SMALL")]
index d271c2c30cb40cb8a11fde524cf72698e8730825..76efe5b46eb612566d58f1cf65564c5d451ef047 100644 (file)
@@ -41,9 +41,12 @@ pango_attr_iterator_copy transfer_ownership="1"
 pango_coverage_copy transfer_ownership="1"
 pango_font_description_copy transfer_ownership="1"
 pango_font_description_copy_static hidden="1"
+PangoGlyph hidden="1"
 pango_glyph_item_copy transfer_ownership="1"
 pango_glyph_item_iter_copy transfer_ownership="1"
 pango_glyph_string_copy transfer_ownership="1"
+PangoGlyphString.glyphs is_array="1" weak="0" array_length_cname="num_glyphs"
+PangoGlyphString.log_clusters is_array="1" weak="0" array_length_cname="num_glyphs"
 pango_item_copy transfer_ownership="1"
 pango_layout_copy transfer_ownership="1"
 pango_layout_iter_copy transfer_ownership="1"
index 784319b797ee9823208bf09117f60a608549c8f2..2fd1642bc273aeed905efbfced1d4d038a7a58b8 100644 (file)
@@ -259,10 +259,6 @@ namespace Pango {
                public unowned Pango.FontMetrics get_metrics ();
        }
        [Compact]
-       [CCode (cheader_filename = "pango/pango.h")]
-       public class Glyph {
-       }
-       [Compact]
        [CCode (copy_function = "pango_glyph_item_copy", type_id = "PANGO_TYPE_GLYPH_ITEM", cheader_filename = "pango/pango.h")]
        public class GlyphItem {
                public weak Pango.GlyphString glyphs;
@@ -276,8 +272,10 @@ namespace Pango {
        [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;
-               public int log_clusters;
+               [CCode (array_length_cname = "num_glyphs")]
+               public Pango.GlyphInfo[] glyphs;
+               [CCode (array_length_cname = "num_glyphs")]
+               public int[] log_clusters;
                public int num_glyphs;
                public int space;
                [CCode (has_construct_function = false)]
@@ -501,6 +499,11 @@ namespace Pango {
                public bool parse (string spec);
                public unowned string to_string ();
        }
+       [CCode (cheader_filename = "pango/pango.h")]
+       [SimpleType]
+       [IntegerType (rank = 0)]
+       public struct Glyph : uint32 {
+       }
        [CCode (type_id = "PANGO_TYPE_GLYPH_GEOMETRY", cheader_filename = "pango/pango.h")]
        public struct GlyphGeometry {
                public weak Pango.GlyphUnit width;
@@ -509,7 +512,7 @@ namespace Pango {
        }
        [CCode (type_id = "PANGO_TYPE_GLYPH_INFO", cheader_filename = "pango/pango.h")]
        public struct GlyphInfo {
-               public weak Pango.Glyph glyph;
+               public Pango.Glyph glyph;
                public Pango.GlyphGeometry geometry;
                public Pango.GlyphVisAttr attr;
        }