5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
|
# File 'ext/xproto.c', line 5913
static VALUE
r_XCB_Connection_alloc_color_cells(VALUE r_self, VALUE r_contiguous, VALUE r_cmap, VALUE r_colors, VALUE r_planes)
{
xcb_connection_t *connection;
Data_Get_Struct(r_self, xcb_connection_t, connection);
uint8_t __contiguous = RTEST(r_contiguous);
uint32_t __cmap = FIX2INT(r_cmap);
uint16_t __colors = FIX2INT(r_colors);
uint16_t __planes = FIX2INT(r_planes);
xcb_alloc_color_cells_cookie_t cookie = xcb_alloc_color_cells(connection, __contiguous, __cmap, __colors, __planes);
xcb_alloc_color_cells_reply_t *reply = xcb_alloc_color_cells_reply(connection, cookie, NULL);
if (reply == NULL)
return Qnil;
return Data_Wrap_Struct(r_XCB_AllocColorCellsReply, NULL, NULL, reply);
}
|