@@ -31,7 +31,13 @@ xcb_generic_error_t = record
3131 end ;
3232 Pxcb_generic_error_t = ^xcb_generic_error_t;
3333 PPxcb_generic_error_t = ^Pxcb_generic_error_t;
34-
34+
35+ xcb_void_cookie_t = record
36+ sequence: cuint;
37+ end ;
38+
39+ Pxcb_void_cookie_t = ^xcb_void_cookie_t;
40+
3541 PBool = ^TBool;
3642 TBool = cint;
3743 TBoolResult = cint;
@@ -51,6 +57,7 @@ XRectangle = record
5157
5258 Window = cuint; // Maps to xcb_window_t
5359 TWindow = Window; // For mshape.pas
60+ xcb_drawable_t = cuint32;
5461 Drawable = cuint; // Maps to xcb_drawable_t
5562 TDrawable = Drawable; // For mseguiintf.pas
5663 GC = Pointer; // Maps to xcb_gcontext_t
@@ -291,9 +298,7 @@ XModifierKeymap = record
291298
292299 // XCB-specific types
293300 xcb_window_t = cuint;
294- xcb_drawable_t = cuint;
295301 xcb_gcontext_t = cuint;
296- xcb_void_cookie_t = cuint;
297302 xcb_visualid_t = cuint;
298303 xcb_colormap_t = cuint;
299304 xcb_pixmap_t = cuint;
@@ -1152,6 +1157,12 @@ XRRCrtcInfo = record
11521157 KeyPress = 2 ;
11531158 Expose = 12 ;
11541159 ClientMessage = 33 ;
1160+ XCB_IMAGE_FORMAT_XY_BITMAP = 1 ;
1161+ XCB_IMAGE_FORMAT_XY_PIXMAP = 2 ;
1162+ XCB_IMAGE_FORMAT_Z_PIXMAP = 2 ;
1163+ XCB_KEY_PRESS = 2 ;
1164+ XCB_KEY_RELEASE = 3 ;
1165+ XCB_EXPOSE = 12 ;
11551166 InputOnly = 2 ;
11561167 InputOutput = 1 ;
11571168 CopyFromParent = 0 ;
@@ -1341,6 +1352,8 @@ XRRCrtcInfo = record
13411352 XNClientWindow = ' clientWindow' ;
13421353 XNDestroyCallback = ' destroyCallback' ;
13431354
1355+ var
1356+ GlobalXCBConnection: PDisplay;
13441357
13451358function XOpenDisplay (display_name: PChar): PDisplay; cdecl;
13461359procedure XCloseDisplay (display: PDisplay); cdecl;
@@ -1546,7 +1559,7 @@ function xcb_poly_text_16(c: pxcb_connection_t; drawable: xcb_drawable_t; gc: xc
15461559
15471560// fred
15481561
1549- function xcb_put_image (c: xcb_connection_t ; format: cuint8; drawable: xcb_drawable_t;
1562+ function xcb_put_image (c: pxcb_connection_t ; format: cuint8; drawable: xcb_drawable_t;
15501563 gc: xcb_gcontext_t; width, height: cuint16; dst_x, dst_y: cint16; left_pad: cuint8;
15511564 depth: cuint8; data_len: cuint32; data: PByte): xcb_void_cookie_t; cdecl; external libxcb;
15521565
@@ -1557,17 +1570,17 @@ function xcb_put_image(c: xcb_connection_t; format: cuint8; drawable: xcb_drawab
15571570// function xcb_shape_query_extension_reply(c: xcb_connection_t; cookie: Pointer; e: Pointer): xcb_shape_query_extension_reply_t; cdecl; external libxcb_shape;
15581571// function xcb_shape_combine_region(c: xcb_connection_t; operation: cuint8; destination_kind: cuint8; destination: xcb_window_t; x, y: cint16; region: xcb_region_t): Pointer; cdecl; external libxcb_shape;
15591572
1560- function xcb_create_colormap (c: xcb_connection_t ; alloc: cuint8; mid: xcb_colormap_t; window: xcb_window_t; visual: xcb_visualid_t): Pointer; cdecl; external libxcb;
1561- function xcb_free_colormap (c: xcb_connection_t ; cmap: xcb_colormap_t): Pointer; cdecl; external libxcb;
1562- function xcb_create_pixmap (c: xcb_connection_t ; depth: cuint8; pid: xcb_pixmap_t; drawable: xcb_drawable_t; width, height: cuint16): Pointer; cdecl; external libxcb;
1563- function xcb_render_create_picture (c: xcb_connection_t ; pid: xcb_render_picture_t; drawable: xcb_drawable_t; format: xcb_render_pictformat_t; value_mask: cuint32; value_list: Pointer): Pointer; cdecl; external libxcb_render;
1564- function xcb_render_free_picture (c: xcb_connection_t ; picture: xcb_render_picture_t): Pointer; cdecl; external libxcb_render;
1565- function xcb_render_composite (c: xcb_connection_t ; op: cuint8; src: xcb_render_picture_t; mask: xcb_render_picture_t; dst: xcb_render_picture_t; src_x, src_y, mask_x, mask_y, dst_x, dst_y: cint16; width, height: cuint16): Pointer; cdecl; external libxcb_render;
1573+ function xcb_create_colormap (c: pxcb_connection_t ; alloc: cuint8; mid: xcb_colormap_t; window: xcb_window_t; visual: xcb_visualid_t): Pointer; cdecl; external libxcb;
1574+ function xcb_free_colormap (c: pxcb_connection_t ; cmap: xcb_colormap_t): Pointer; cdecl; external libxcb;
1575+ function xcb_create_pixmap (c: pxcb_connection_t ; depth: cuint8; pid: xcb_pixmap_t; drawable: xcb_drawable_t; width, height: cuint16): Pointer; cdecl; external libxcb;
1576+ function xcb_render_create_picture (c: pxcb_connection_t ; pid: xcb_render_picture_t; drawable: xcb_drawable_t; format: xcb_render_pictformat_t; value_mask: cuint32; value_list: Pointer): Pointer; cdecl; external libxcb_render;
1577+ function xcb_render_free_picture (c: pxcb_connection_t ; picture: xcb_render_picture_t): Pointer; cdecl; external libxcb_render;
1578+ function xcb_render_composite (c: pxcb_connection_t ; op: cuint8; src: xcb_render_picture_t; mask: xcb_render_picture_t; dst: xcb_render_picture_t; src_x, src_y, mask_x, mask_y, dst_x, dst_y: cint16; width, height: cuint16): Pointer; cdecl; external libxcb_render;
15661579
1567- function xcb_shape_combine (c: xcb_connection_t ; operation: cuint8; destination_kind: cuint8; destination: xcb_window_t; x, y: cint16; source: xcb_window_t; source_kind: cuint8): Pointer; cdecl; external libxcb_shape;
1580+ function xcb_shape_combine (c: pxcb_connection_t ; operation: cuint8; destination_kind: cuint8; destination: xcb_window_t; x, y: cint16; source: xcb_window_t; source_kind: cuint8): Pointer; cdecl; external libxcb_shape;
15681581
1569- function xcb_shape_rectangles (c: xcb_connection_t ; operation: cuint8; destination_kind: cuint8; ordering: cuint8; destination: xcb_window_t; x, y: cint16; rectangles_len: cuint32; rectangles: PXRectangle): Pointer; cdecl; external libxcb_shape;
1570- function xcb_shape_mask (c: xcb_connection_t ; operation: cuint8; destination_kind: cuint8; destination: xcb_window_t; x, y: cint16; mask: xcb_pixmap_t): Pointer; cdecl; external libxcb_shape;
1582+ function xcb_shape_rectangles (c: pxcb_connection_t ; operation: cuint8; destination_kind: cuint8; ordering: cuint8; destination: xcb_window_t; x, y: cint16; rectangles_len: cuint32; rectangles: PXRectangle): Pointer; cdecl; external libxcb_shape;
1583+ function xcb_shape_mask (c: pxcb_connection_t ; operation: cuint8; destination_kind: cuint8; destination: xcb_window_t; x, y: cint16; mask: xcb_pixmap_t): Pointer; cdecl; external libxcb_shape;
15711584
15721585// Implementation
15731586function XOpenDisplay (display_name: PChar): PDisplay; cdecl;
0 commit comments