]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Add cogl-pango-1.0 bindings
authorEvan Nemerson <evan@coeus-group.com>
Thu, 12 Jan 2012 23:08:08 +0000 (15:08 -0800)
committerEvan Nemerson <evan@coeus-group.com>
Tue, 17 Jan 2012 20:42:55 +0000 (12:42 -0800)
vapi/Makefile.am
vapi/cogl-pango-1.0.deps [new file with mode: 0644]
vapi/cogl-pango-1.0.vapi [new file with mode: 0644]

index 88e22f2dc4d3d0e095ab612f0835ec34f3c4f88d..42b4ed5efaaefaef3e05025bc199407420479f79 100644 (file)
@@ -28,6 +28,8 @@ dist_vapi_DATA = \
        clutter-json-1.0.vapi \
        cogl-1.0.vapi \
        cogl-1.0.deps \
+       cogl-pango-1.0.vapi \
+       cogl-pango-1.0.deps \
        curses.vapi \
        dbus-glib-1.vapi \
        enchant.vapi \
@@ -244,7 +246,7 @@ dist_noinst_DATA = \
        config.vapi \
        $(NULL)
 
-BINDINGS = atk clutter-1.0 clutter-gtk-0.10 clutter-gtk-1.0 cogl-1.0 gconf-2.0 gdk-2.0 gdk-3.0 gdk-pixbuf-2.0 gdk-x11-2.0 gdk-x11-3.0 gdl-1.0 gdu gdu-gtk gedit-2.20 gedit gio-2.0 gio-unix-2.0 gnome-desktop-2.0 gnome-keyring-1 gnome-vfs-2.0 goocanvas gstreamer-0.10 gstreamer-app-0.10 gstreamer-audio-0.10 gstreamer-base-0.10 gstreamer-cdda-0.10 gstreamer-check-0.10 gstreamer-controller-0.10 gstreamer-dataprotocol-0.10 gstreamer-fft-0.10 gstreamer-interfaces-0.10 gstreamer-net-0.10 gstreamer-netbuffer-0.10 gstreamer-pbutils-0.10 gstreamer-riff-0.10 gstreamer-rtp-0.10 gstreamer-rtsp-0.10 gstreamer-sdp-0.10 gstreamer-tag-0.10 gstreamer-video-0.10 gtk+-2.0 gtk+-3.0 gtksourceview-2.0 gtksourceview-3.0 gudev-1.0 hildon-1 hildon-fm-2 json-glib-1.0 libepc-1.0 libgda-4.0 libgda-report-4.0 libgdata libglade-2.0 libgnome-2.0 libgnome-menu libgnomeui-2.0 libgsf-1 libnotify liboobs-1 libpeas-1.0 librsvg-2.0 libsexy libsoup-2.2 libsoup-2.4 libwnck-1.0 loudmouth-1.0 mx-1.0 pango pangocairo poppler-glib purple rest-0.6 rest-extras-0.6 rest-0.7 tracker-indexer-module-1.0 twitter-glib-1.0 unique-1.0 vte vte-2.90 webkit-1.0
+BINDINGS = atk clutter-1.0 clutter-gtk-0.10 clutter-gtk-1.0 cogl-1.0 cogl-pango-1.0 gconf-2.0 gdk-2.0 gdk-3.0 gdk-pixbuf-2.0 gdk-x11-2.0 gdk-x11-3.0 gdl-1.0 gdu gdu-gtk gedit-2.20 gedit gio-2.0 gio-unix-2.0 gnome-desktop-2.0 gnome-keyring-1 gnome-vfs-2.0 goocanvas gstreamer-0.10 gstreamer-app-0.10 gstreamer-audio-0.10 gstreamer-base-0.10 gstreamer-cdda-0.10 gstreamer-check-0.10 gstreamer-controller-0.10 gstreamer-dataprotocol-0.10 gstreamer-fft-0.10 gstreamer-interfaces-0.10 gstreamer-net-0.10 gstreamer-netbuffer-0.10 gstreamer-pbutils-0.10 gstreamer-riff-0.10 gstreamer-rtp-0.10 gstreamer-rtsp-0.10 gstreamer-sdp-0.10 gstreamer-tag-0.10 gstreamer-video-0.10 gtk+-2.0 gtk+-3.0 gtksourceview-2.0 gtksourceview-3.0 gudev-1.0 hildon-1 hildon-fm-2 json-glib-1.0 libepc-1.0 libgda-4.0 libgda-report-4.0 libgdata libglade-2.0 libgnome-2.0 libgnome-menu libgnomeui-2.0 libgsf-1 libnotify liboobs-1 libpeas-1.0 librsvg-2.0 libsexy libsoup-2.2 libsoup-2.4 libwnck-1.0 loudmouth-1.0 mx-1.0 pango pangocairo poppler-glib purple rest-0.6 rest-extras-0.6 rest-0.7 tracker-indexer-module-1.0 twitter-glib-1.0 unique-1.0 vte vte-2.90 webkit-1.0
 
 VAPIGEN = $(top_builddir)/vapigen/vapigen
 VAPIGENFLAGS = --vapidir $(srcdir)
@@ -273,6 +275,9 @@ clutter-gtk-1.0:
 cogl-1.0:
        $(GENVAPI) --library $(srcdir)/cogl-1.0 $(PACKAGESDIR)/cogl-1.0/cogl-1.0-custom.vala $(PACKAGESDIR)/cogl-1.0/cogl-1.0.gi
 
+cogl-pango-1.0:
+       $(GENVAPI) --library $(srcdir)/cogl-pango-1.0 --metadatadir $(METADATADIR) --pkg cogl-1.0 --pkg pango $(GIRDIR)/CoglPango-1.0.gir
+
 gconf-2.0:
        $(GENVAPI) --library $(srcdir)/gconf-2.0 $(PACKAGESDIR)/gconf-2.0/gconf-2.0.gi
 
diff --git a/vapi/cogl-pango-1.0.deps b/vapi/cogl-pango-1.0.deps
new file mode 100644 (file)
index 0000000..ebc27e5
--- /dev/null
@@ -0,0 +1,2 @@
+cogl-1.0
+pango
diff --git a/vapi/cogl-pango-1.0.vapi b/vapi/cogl-pango-1.0.vapi
new file mode 100644 (file)
index 0000000..4b2599c
--- /dev/null
@@ -0,0 +1,30 @@
+/* cogl-pango-1.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "CoglPango", gir_namespace = "CoglPango", gir_version = "1.0", lower_case_cprefix = "cogl_pango_")]
+namespace CoglPango {
+       [CCode (cheader_filename = "cogl-pango/cogl-pango.h")]
+       public class FontMap : Pango.FontMap {
+               [CCode (has_construct_function = false)]
+               protected FontMap ();
+               public static void clear_glyph_cache (Pango.CairoFontMap fm);
+               public static Pango.Context create_context (Pango.CairoFontMap fm);
+               public static unowned Pango.Renderer get_renderer (Pango.CairoFontMap fm);
+               public static bool get_use_mipmapping (Pango.CairoFontMap fm);
+               public static Pango.FontMap @new ();
+               public static void set_resolution (Pango.CairoFontMap font_map, double dpi);
+               public static void set_use_mipmapping (Pango.CairoFontMap fm, bool value);
+       }
+       [CCode (cheader_filename = "cogl-pango/cogl-pango.h", type_id = "cogl_pango_renderer_get_type ()")]
+       public class Renderer : Pango.Renderer {
+               [CCode (has_construct_function = false)]
+               protected Renderer ();
+       }
+       [CCode (cheader_filename = "cogl-pango/cogl-pango.h")]
+       public static void ensure_glyph_cache_for_layout (Pango.Layout layout);
+       [CCode (cheader_filename = "cogl-pango/cogl-pango.h")]
+       public static void render_layout (Pango.Layout layout, int x, int y, Cogl.Color color, int flags);
+       [CCode (cheader_filename = "cogl-pango/cogl-pango.h")]
+       public static void render_layout_line (Pango.LayoutLine line, int x, int y, Cogl.Color color);
+       [CCode (cheader_filename = "cogl-pango/cogl-pango.h")]
+       public static void render_layout_subpixel (Pango.Layout layout, int x, int y, Cogl.Color color, int flags);
+}