Class: XCB::AllocColorPlanesReply

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

Instance Method Summary collapse

Instance Method Details

#blue_maskObject



4097
4098
4099
4100
4101
4102
4103
# File 'ext/xproto.c', line 4097

static VALUE
r_XCB_AllocColorPlanesReply_get_blue_mask(VALUE r_self)
{
  xcb_alloc_color_planes_reply_t *reply;
  Data_Get_Struct(r_self, xcb_alloc_color_planes_reply_t, reply);
  return INT2FIX(reply->blue_mask);
}

#green_maskObject



4090
4091
4092
4093
4094
4095
4096
# File 'ext/xproto.c', line 4090

static VALUE
r_XCB_AllocColorPlanesReply_get_green_mask(VALUE r_self)
{
  xcb_alloc_color_planes_reply_t *reply;
  Data_Get_Struct(r_self, xcb_alloc_color_planes_reply_t, reply);
  return INT2FIX(reply->green_mask);
}

#pixelsObject



4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
# File 'ext/xproto.c', line 4104

static VALUE
r_XCB_AllocColorPlanesReply_get_pixels(VALUE r_self)
{
  xcb_alloc_color_planes_reply_t *reply;
  Data_Get_Struct(r_self, xcb_alloc_color_planes_reply_t, reply);
  int __pixels_len = xcb_alloc_color_planes_pixels_length(reply);
  uint32_t *__pixels = xcb_alloc_color_planes_pixels(reply);
  VALUE r_pixels = rb_ary_new2(__pixels_len);
  int i;
  for (i = 0; i < __pixels_len; i += 1)
    rb_ary_store(r_pixels, i, INT2FIX(__pixels[i]));
  return r_pixels;
}

#pixels_lenObject



4076
4077
4078
4079
4080
4081
4082
# File 'ext/xproto.c', line 4076

static VALUE
r_XCB_AllocColorPlanesReply_get_pixels_len(VALUE r_self)
{
  xcb_alloc_color_planes_reply_t *reply;
  Data_Get_Struct(r_self, xcb_alloc_color_planes_reply_t, reply);
  return INT2FIX(reply->pixels_len);
}

#red_maskObject



4083
4084
4085
4086
4087
4088
4089
# File 'ext/xproto.c', line 4083

static VALUE
r_XCB_AllocColorPlanesReply_get_red_mask(VALUE r_self)
{
  xcb_alloc_color_planes_reply_t *reply;
  Data_Get_Struct(r_self, xcb_alloc_color_planes_reply_t, reply);
  return INT2FIX(reply->red_mask);
}