]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
xcb: Add Xcb.Connection.create_pixmap
authorRobert Ancell <robert.ancell@canonical.com>
Wed, 14 May 2014 03:06:15 +0000 (15:06 +1200)
committerRobert Ancell <robert.ancell@canonical.com>
Wed, 14 May 2014 22:45:07 +0000 (10:45 +1200)
https://bugzilla.gnome.org/show_bug.cgi?id=730103

vapi/xcb.vapi

index d84290abe1994408e1130b733f47660030146315..46b4ee521ff52a5de3c2026e8b151a5ea57f59b5 100644 (file)
@@ -121,6 +121,11 @@ namespace Xcb {
                public GetGeometryCookie get_geometry(Drawable drawable);
                public GetGeometryCookie get_geometry_unchecked(Drawable drawable);
                public GetGeometryReply ? get_geometry_reply(GetGeometryCookie cookie, out GenericError ? e);
+
+               public VoidCookie create_pixmap_checked (uint8 depth, Pixmap pid, Drawable drawable, uint16 width, uint16 height);
+               public VoidCookie create_pixmap (uint8 depth, Pixmap pid, Drawable drawable, uint16 width, uint16 height);
+               public VoidCookie free_pixmap_checked (Pixmap pid);
+               public VoidCookie free_pixmap (Pixmap pid);
        }
 
        [CCode (cprefix = "XCB_CONN_", cname = "int", has_type_id = false)]
@@ -904,6 +909,11 @@ namespace Xcb {
        public struct Drawable : uint32 {
        }
 
+       [SimpleType]
+       [CCode (cname = "xcb_pixmap_t", has_type_id = false)]
+       public struct Pixmap : uint32 {
+       }
+
        [SimpleType]
        [CCode (cname = "xcb_window_t", has_type_id = false)]
        public struct Window : uint32 {