Class: XCB::DestroyNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::DestroyNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_event, r_window) ⇒ Object
2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 |
# File 'ext/xproto.c', line 2523 static VALUE r_XCB_DestroyNotifyEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window) { xcb_destroy_notify_event_t *self = malloc(sizeof(xcb_destroy_notify_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_DESTROY_NOTIFY; self->sequence = 0; self->event = FIX2INT(r_event); self->window = FIX2INT(r_window); return r_self; } |
Instance Method Details
#event ⇒ Object
1440 1441 1442 1443 1444 1445 1446 |
# File 'ext/xproto.c', line 1440 static VALUE r_XCB_DestroyNotifyEvent_get_event(VALUE r_self) { xcb_destroy_notify_event_t *event; Data_Get_Struct(r_self, xcb_destroy_notify_event_t, event); return INT2FIX(event->event); } |
#visit(r_visitor) ⇒ Object
2536 2537 2538 2539 2540 |
# File 'ext/xproto.c', line 2536 static VALUE r_XCB_DestroyNotifyEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_destroy_notify"), 1, r_self); } |
#window ⇒ Object
1447 1448 1449 1450 1451 1452 1453 |
# File 'ext/xproto.c', line 1447 static VALUE r_XCB_DestroyNotifyEvent_get_window(VALUE r_self) { xcb_destroy_notify_event_t *event; Data_Get_Struct(r_self, xcb_destroy_notify_event_t, event); return INT2FIX(event->window); } |