Class: XCB::QueryTreeReply
- Inherits:
-
Object
- Object
- XCB::QueryTreeReply
- Defined in:
- ext/xproto.c
Instance Method Summary collapse
Instance Method Details
#children ⇒ Object
3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 |
# File 'ext/xproto.c', line 3251 static VALUE r_XCB_QueryTreeReply_get_children(VALUE r_self) { xcb_query_tree_reply_t *reply; Data_Get_Struct(r_self, xcb_query_tree_reply_t, reply); int __children_len = xcb_query_tree_children_length(reply); uint32_t *__children = xcb_query_tree_children(reply); VALUE r_children = rb_ary_new2(__children_len); int i; for (i = 0; i < __children_len; i += 1) rb_ary_store(r_children, i, INT2FIX(__children[i])); return r_children; } |
#children_len ⇒ Object
3244 3245 3246 3247 3248 3249 3250 |
# File 'ext/xproto.c', line 3244 static VALUE r_XCB_QueryTreeReply_get_children_len(VALUE r_self) { xcb_query_tree_reply_t *reply; Data_Get_Struct(r_self, xcb_query_tree_reply_t, reply); return INT2FIX(reply->children_len); } |
#parent ⇒ Object
3237 3238 3239 3240 3241 3242 3243 |
# File 'ext/xproto.c', line 3237 static VALUE r_XCB_QueryTreeReply_get_parent(VALUE r_self) { xcb_query_tree_reply_t *reply; Data_Get_Struct(r_self, xcb_query_tree_reply_t, reply); return INT2FIX(reply->parent); } |
#root ⇒ Object
3230 3231 3232 3233 3234 3235 3236 |
# File 'ext/xproto.c', line 3230 static VALUE r_XCB_QueryTreeReply_get_root(VALUE r_self) { xcb_query_tree_reply_t *reply; Data_Get_Struct(r_self, xcb_query_tree_reply_t, reply); return INT2FIX(reply->root); } |