xcb_aux.h | xcb_aux.h | |||
---|---|---|---|---|
skipping to change at line 27 | skipping to change at line 27 | |||
xcb_visualtype_t *xcb_aux_get_visualtype (xcb_connection_t *c, | xcb_visualtype_t *xcb_aux_get_visualtype (xcb_connection_t *c, | |||
int screen, | int screen, | |||
xcb_visualid_t vid); | xcb_visualid_t vid); | |||
xcb_visualtype_t * | xcb_visualtype_t * | |||
xcb_aux_find_visual_by_id (xcb_screen_t *screen, | xcb_aux_find_visual_by_id (xcb_screen_t *screen, | |||
xcb_visualid_t id); | xcb_visualid_t id); | |||
xcb_visualtype_t * | xcb_visualtype_t * | |||
xcb_aux_find_visual_by_attrs (xcb_screen_t *screen, | xcb_aux_find_visual_by_attrs (xcb_screen_t *screen, | |||
int8_t class, | int8_t class_, | |||
int8_t depth); | int8_t depth); | |||
void xcb_aux_sync (xcb_connection_t *c); | void xcb_aux_sync (xcb_connection_t *c); | |||
/* less error prone to use structs instead of value lists */ | /* internal helper macro for XCB_AUX_ADD_PARAM | |||
It gives the offset of the field 'param' in the structure pointed to by | ||||
#define _XCB_AUX_OFFSETOF(paramsp, param) \ | 'paramsp' in multiples of an uint32_t's size. */ | |||
((void*)(&((paramsp)->param))-(void*)(paramsp)) | #define XCB_AUX_INTERNAL_OFFSETOF(paramsp, param) \ | |||
((uint32_t const*)(&((paramsp)->param))-(uint32_t const*)(paramsp)) | ||||
/* add an optional parameter to an xcb_params_* structure | ||||
parameters: | ||||
maskp: pointer to bitmask whos bits mark used parameters | ||||
paramsp: pointer to structure with parameters | ||||
param: parameter to set | ||||
value: value to set the parameter to | ||||
*/ | ||||
#define XCB_AUX_ADD_PARAM(maskp, paramsp, param, value) \ | #define XCB_AUX_ADD_PARAM(maskp, paramsp, param, value) \ | |||
((*(maskp)|=1<<(_XCB_AUX_OFFSETOF((paramsp),param)/sizeof(uint32_t))), \ | ((*(maskp)|=1<<XCB_AUX_INTERNAL_OFFSETOF((paramsp),param)), \ | |||
((paramsp)->param=(value))) | ((paramsp)->param=(value))) | |||
typedef struct { | typedef struct { | |||
uint32_t back_pixmap; | uint32_t back_pixmap; | |||
uint32_t back_pixel; | uint32_t back_pixel; | |||
uint32_t border_pixmap; | uint32_t border_pixmap; | |||
uint32_t border_pixel; | uint32_t border_pixel; | |||
uint32_t bit_gravity; | uint32_t bit_gravity; | |||
uint32_t win_gravity; | uint32_t win_gravity; | |||
uint32_t backing_store; | uint32_t backing_store; | |||
skipping to change at line 69 | skipping to change at line 77 | |||
xcb_void_cookie_t | xcb_void_cookie_t | |||
xcb_aux_create_window (xcb_connection_t *c, | xcb_aux_create_window (xcb_connection_t *c, | |||
uint8_t depth, | uint8_t depth, | |||
xcb_window_t wid, | xcb_window_t wid, | |||
xcb_window_t parent, | xcb_window_t parent, | |||
int16_t x, | int16_t x, | |||
int16_t y, | int16_t y, | |||
uint16_t width, | uint16_t width, | |||
uint16_t height, | uint16_t height, | |||
uint16_t border_width, | uint16_t border_width, | |||
uint16_t _class, | uint16_t class_, | |||
xcb_visualid_t visual, | xcb_visualid_t visual, | |||
uint32_t mask, | uint32_t mask, | |||
const xcb_params_cw_t *params); | const xcb_params_cw_t *params); | |||
xcb_void_cookie_t | xcb_void_cookie_t | |||
xcb_aux_create_window_checked (xcb_connection_t *c, | xcb_aux_create_window_checked (xcb_connection_t *c, | |||
uint8_t depth, | uint8_t depth, | |||
xcb_window_t wid, | xcb_window_t wid, | |||
xcb_window_t parent, | xcb_window_t parent, | |||
int16_t x, | int16_t x, | |||
int16_t y, | int16_t y, | |||
uint16_t width, | uint16_t width, | |||
uint16_t height, | uint16_t height, | |||
uint16_t border_width, | uint16_t border_width, | |||
uint16_t _class, | uint16_t class_, | |||
xcb_visualid_t visual, | xcb_visualid_t visual, | |||
uint32_t mask, | uint32_t mask, | |||
const xcb_params_cw_t *params); | const xcb_params_cw_t *params); | |||
xcb_void_cookie_t | xcb_void_cookie_t | |||
xcb_aux_change_window_attributes (xcb_connection_t *c, | xcb_aux_change_window_attributes (xcb_connection_t *c, | |||
xcb_window_t window, | xcb_window_t window, | |||
uint32_t mask, | uint32_t mask, | |||
const xcb_params_cw_t *params); | const xcb_params_cw_t *params); | |||
End of changes. 5 change blocks. | ||||
9 lines changed or deleted | 17 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |