Class: XCB::GetModifierMappingReply
- Inherits:
-
Object
- Object
- XCB::GetModifierMappingReply
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
Instance Method Details
#keycodes ⇒ Object
4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 |
# File 'ext/xproto.c', line 4448 static VALUE r_XCB_GetModifierMappingReply_get_keycodes(VALUE r_self) { xcb_get_modifier_mapping_reply_t *reply; Data_Get_Struct(r_self, xcb_get_modifier_mapping_reply_t, reply); int __keycodes_len = xcb_get_modifier_mapping_keycodes_length(reply); uint8_t *__keycodes = xcb_get_modifier_mapping_keycodes(reply); VALUE r_keycodes = rb_ary_new2(__keycodes_len); int i; for (i = 0; i < __keycodes_len; i += 1) rb_ary_store(r_keycodes, i, INT2FIX(__keycodes[i])); return r_keycodes; } |
#keycodes_per_modifier ⇒ Object
4441 4442 4443 4444 4445 4446 4447 |
# File 'ext/xproto.c', line 4441 static VALUE r_XCB_GetModifierMappingReply_get_keycodes_per_modifier(VALUE r_self) { xcb_get_modifier_mapping_reply_t *reply; Data_Get_Struct(r_self, xcb_get_modifier_mapping_reply_t, reply); return INT2FIX(reply->keycodes_per_modifier); } |