[vala] xcb: Add methods to access pixmap formats



commit 67ffb2eab90db37232aa887248af3eb1f1dc089e
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed May 14 11:24:34 2014 +1200

    xcb: Add methods to access pixmap formats
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730092

 vapi/xcb.vapi |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/vapi/xcb.vapi b/vapi/xcb.vapi
index 69d9fe2..a569beb 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 ();
        }
@@ -654,6 +656,24 @@ namespace Xcb {
        }
 
        [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 {
                public Window root;


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