Class: XCB::ListInstalledColormapsReply

Inherits:
Object
  • Object
show all
Defined in:
ext/xproto.c

Instance Method Summary collapse

Instance Method Details

#cmapsObject



3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
# File 'ext/xproto.c', line 3946

static VALUE
r_XCB_ListInstalledColormapsReply_get_cmaps(VALUE r_self)
{
  xcb_list_installed_colormaps_reply_t *reply;
  Data_Get_Struct(r_self, xcb_list_installed_colormaps_reply_t, reply);
  int __cmaps_len = xcb_list_installed_colormaps_cmaps_length(reply);
  uint32_t *__cmaps = xcb_list_installed_colormaps_cmaps(reply);
  VALUE r_cmaps = rb_ary_new2(__cmaps_len);
  int i;
  for (i = 0; i < __cmaps_len; i += 1)
    rb_ary_store(r_cmaps, i, INT2FIX(__cmaps[i]));
  return r_cmaps;
}

#cmaps_lenObject



3939
3940
3941
3942
3943
3944
3945
# File 'ext/xproto.c', line 3939

static VALUE
r_XCB_ListInstalledColormapsReply_get_cmaps_len(VALUE r_self)
{
  xcb_list_installed_colormaps_reply_t *reply;
  Data_Get_Struct(r_self, xcb_list_installed_colormaps_reply_t, reply);
  return INT2FIX(reply->cmaps_len);
}