5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
|
# File 'ext/xproto.c', line 5982
static VALUE
r_XCB_Connection_store_named_color(VALUE r_self, VALUE r_flags, VALUE r_cmap, VALUE r_pixel, VALUE r_name)
{
xcb_connection_t *connection;
Data_Get_Struct(r_self, xcb_connection_t, connection);
uint8_t __flags = FIX2INT(r_flags);
uint32_t __cmap = FIX2INT(r_cmap);
uint32_t __pixel = FIX2INT(r_pixel);
Check_Type(r_name, T_ARRAY);
int __name_len = RARRAY_LEN(r_name);
char __name[__name_len];
int i;
for (i = 0; i < __name_len; i += 1)
__name[i] = FIX2INT(rb_ary_entry(r_name, i));
xcb_store_named_color(connection, __flags, __cmap, __pixel, __name_len, __name);
return Qnil;
}
|