Class: XCB::STR
- Inherits:
-
Object
- Object
- XCB::STR
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
Instance Method Details
#name ⇒ Object
744 745 746 747 748 749 750 751 752 |
# File 'ext/xproto.c', line 744 static VALUE r_XCB_STR_get_name(VALUE r_self) { xcb_str_t *str; Data_Get_Struct(r_self, xcb_str_t, str); int __name_len = xcb_str_name_length(str); char *__name = xcb_str_name(str); return rb_str_new(__name, __name_len); } |
#name_len ⇒ Object
737 738 739 740 741 742 743 |
# File 'ext/xproto.c', line 737 static VALUE r_XCB_STR_get_name_len(VALUE r_self) { xcb_str_t *str; Data_Get_Struct(r_self, xcb_str_t, str); return INT2FIX(str->name_len); } |