Class: XCB::MapRequestEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::MapRequestEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_parent, r_window) ⇒ Object
2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 |
# File 'ext/xproto.c', line 2579 static VALUE r_XCB_MapRequestEvent_new(VALUE r_klass, VALUE r_parent, VALUE r_window) { xcb_map_request_event_t *self = malloc(sizeof(xcb_map_request_event_t)); if (self == NULL) rb_raise(rb_eNoMemError, "NoMemoryError"); VALUE r_self = Data_Wrap_Struct(r_klass, NULL, NULL, self); self->response_type = XCB_MAP_REQUEST; self->sequence = 0; self->parent = FIX2INT(r_parent); self->window = FIX2INT(r_window); return r_self; } |
Instance Method Details
#parent ⇒ Object
1496 1497 1498 1499 1500 1501 1502 |
# File 'ext/xproto.c', line 1496 static VALUE r_XCB_MapRequestEvent_get_parent(VALUE r_self) { xcb_map_request_event_t *event; Data_Get_Struct(r_self, xcb_map_request_event_t, event); return INT2FIX(event->parent); } |
#visit(r_visitor) ⇒ Object
2592 2593 2594 2595 2596 |
# File 'ext/xproto.c', line 2592 static VALUE r_XCB_MapRequestEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_map_request"), 1, r_self); } |
#window ⇒ Object
1503 1504 1505 1506 1507 1508 1509 |
# File 'ext/xproto.c', line 1503 static VALUE r_XCB_MapRequestEvent_get_window(VALUE r_self) { xcb_map_request_event_t *event; Data_Get_Struct(r_self, xcb_map_request_event_t, event); return INT2FIX(event->window); } |