Re: [Vala] [PATCH] Add missing functions of Pango's cairo backend



I've improved vapigen to fix this issue.
Updated the pango vapi with SVN revision 261.

Raffaele

On Mit, 2007-03-21 at 12:29 +0100, Mathias Hasselmann wrote:
---
 trunk/vala/vapi/pango.vala |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/trunk/vala/vapi/pango.vala b/trunk/vala/vapi/pango.vala
index b9fea37..493c4bc 100644
--- a/trunk/vala/vapi/pango.vala
+++ b/trunk/vala/vapi/pango.vala
@@ -1413,6 +1413,34 @@ namespace Pango {
              [CCode (cname = "pango_attr_weight_new")]
              public static weak Pango.Attribute weight_new (Pango.Weight weight);
      }
+
+     [CCode (cheader_filename = "pango/pangocairo.h")]
+     public struct Cairo
+     {
+             [CCode] public static Layout
+             create_layout (Cairo.Context cr);
+             [CCode] public static void 
+             update_layout (Cairo.Context cr, Layout layout);
+
+             [CCode] public static void 
+             show_glyph_string (Cairo.Context cr, Font font, GlyphString glyphs);
+             [CCode] public static void 
+             show_layout_line (Cairo.Context cr, LayoutLine line);
+             [CCode] public static void 
+             show_layout (Cairo.Context cr, Layout layout);
+             [CCode] public static void 
+             show_error_underline (Cairo.Context cr, double x, double y, double width, double height);
+
+             [CCode] public static void 
+             glyph_string_path (Cairo.Context cr, Font font, GlyphString glyphs);
+             [CCode] public static void 
+             layout_line_path (Cairo.Context cr, LayoutLine line);
+             [CCode] public static void 
+             layout_path (Cairo.Context cr, Layout layout);
+             [CCode] public static void 
+             error_underline_path (Cairo.Context cr, double x, double y, double width, double height);
+     }
+
      [ReferenceType ()]
      public struct Units {
              [NoArrayLength ()]




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