]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
xcb: Add methods to access pixmap formats
authorRobert Ancell <robert.ancell@canonical.com>
Tue, 13 May 2014 23:24:34 +0000 (11:24 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Wed, 14 May 2014 04:05:43 +0000 (16:05 +1200)
https://bugzilla.gnome.org/show_bug.cgi?id=730092

vapi/xcb.vapi

index 69d9fe2fcd45dd34e2849334ce77f647f5bc079c..a569bebe1b27bbd6a111160f38587ae04eb5d893 100644 (file)
@@ -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 {