Class: XCB::GetImageReply
- Inherits:
-
Object
- Object
- XCB::GetImageReply
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
Instance Method Details
#data ⇒ Object
3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 |
# File 'ext/xproto.c', line 3926
static VALUE
r_XCB_GetImageReply_get_data(VALUE r_self)
{
xcb_get_image_reply_t *reply;
Data_Get_Struct(r_self, xcb_get_image_reply_t, reply);
int __data_len = xcb_get_image_data_length(reply);
uint8_t *__data = xcb_get_image_data(reply);
VALUE r_data = rb_ary_new2(__data_len);
int i;
for (i = 0; i < __data_len; i += 1)
rb_ary_store(r_data, i, INT2FIX(__data[i]));
return r_data;
}
|
#depth ⇒ Object
3912 3913 3914 3915 3916 3917 3918 |
# File 'ext/xproto.c', line 3912
static VALUE
r_XCB_GetImageReply_get_depth(VALUE r_self)
{
xcb_get_image_reply_t *reply;
Data_Get_Struct(r_self, xcb_get_image_reply_t, reply);
return INT2FIX(reply->depth);
}
|
#visual ⇒ Object
3919 3920 3921 3922 3923 3924 3925 |
# File 'ext/xproto.c', line 3919
static VALUE
r_XCB_GetImageReply_get_visual(VALUE r_self)
{
xcb_get_image_reply_t *reply;
Data_Get_Struct(r_self, xcb_get_image_reply_t, reply);
return INT2FIX(reply->visual);
}
|