From: Robert Ancell Date: Tue, 13 May 2014 23:24:34 +0000 (+1200) Subject: xcb: Add methods to access pixmap formats X-Git-Tag: 0.25.1~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67ffb2eab90db37232aa887248af3eb1f1dc089e;p=thirdparty%2Fvala.git xcb: Add methods to access pixmap formats https://bugzilla.gnome.org/show_bug.cgi?id=730092 --- diff --git a/vapi/xcb.vapi b/vapi/xcb.vapi index 69d9fe2fc..a569bebe1 100644 --- a/vapi/xcb.vapi +++ b/vapi/xcb.vapi @@ -369,6 +369,8 @@ namespace Xcb { public uint8 bitmap_format_scanline_pad; public Keycode min_keycode; public Keycode max_keycode; + public int pixmap_formats_length (); + public FormatIterator pixmap_formats_iterator (); public int roots_length (); public ScreenIterator roots_iterator (); } @@ -653,6 +655,24 @@ namespace Xcb { OWNER_GRAB_BUTTON } + [Compact] + [CCode (cname = "xcb_format_t", ref_function = "", unref_function = "")] + public class Format { + public uint8 depth; + public uint8 bits_per_pixel; + public uint8 scanline_pad; + } + + [SimpleType] + [CCode (cname = "xcb_format_iterator_t", has_type_id = false)] + public struct FormatIterator { + public unowned Format data; + public int rem; + public int index; + [CCode (cname = "xcb_format_next")] + public static void next (ref FormatIterator iter); + } + [Compact] [CCode (cname = "xcb_screen_t", ref_function = "", unref_function = "")] public class Screen {