Class: XCB::GetPointerMappingReply
- Inherits:
-
Object
- Object
- XCB::GetPointerMappingReply
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
Instance Method Details
#map ⇒ Object
4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 |
# File 'ext/xproto.c', line 4421
static VALUE
r_XCB_GetPointerMappingReply_get_map(VALUE r_self)
{
xcb_get_pointer_mapping_reply_t *reply;
Data_Get_Struct(r_self, xcb_get_pointer_mapping_reply_t, reply);
int __map_len = xcb_get_pointer_mapping_map_length(reply);
uint8_t *__map = xcb_get_pointer_mapping_map(reply);
VALUE r_map = rb_ary_new2(__map_len);
int i;
for (i = 0; i < __map_len; i += 1)
rb_ary_store(r_map, i, INT2FIX(__map[i]));
return r_map;
}
|
#map_len ⇒ Object
4414 4415 4416 4417 4418 4419 4420 |
# File 'ext/xproto.c', line 4414
static VALUE
r_XCB_GetPointerMappingReply_get_map_len(VALUE r_self)
{
xcb_get_pointer_mapping_reply_t *reply;
Data_Get_Struct(r_self, xcb_get_pointer_mapping_reply_t, reply);
return INT2FIX(reply->map_len);
}
|