Class: XCB::UnmapNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::UnmapNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_event, r_window, r_from_configure) ⇒ Object
2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 |
# File 'ext/xproto.c', line 2541 static VALUE r_XCB_UnmapNotifyEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window, VALUE r_from_configure) { xcb_unmap_notify_event_t *self = malloc(sizeof(xcb_unmap_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_UNMAP_NOTIFY; self->sequence = 0; self->event = FIX2INT(r_event); self->window = FIX2INT(r_window); self->from_configure = RTEST(r_from_configure); return r_self; } |
Instance Method Details
#event ⇒ Object
1454 1455 1456 1457 1458 1459 1460 |
# File 'ext/xproto.c', line 1454 static VALUE r_XCB_UnmapNotifyEvent_get_event(VALUE r_self) { xcb_unmap_notify_event_t *event; Data_Get_Struct(r_self, xcb_unmap_notify_event_t, event); return INT2FIX(event->event); } |
#from_configure ⇒ Object
1468 1469 1470 1471 1472 1473 1474 |
# File 'ext/xproto.c', line 1468 static VALUE r_XCB_UnmapNotifyEvent_get_from_configure(VALUE r_self) { xcb_unmap_notify_event_t *event; Data_Get_Struct(r_self, xcb_unmap_notify_event_t, event); return event->from_configure ? Qtrue : Qfalse; } |
#visit(r_visitor) ⇒ Object
2555 2556 2557 2558 2559 |
# File 'ext/xproto.c', line 2555 static VALUE r_XCB_UnmapNotifyEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_unmap_notify"), 1, r_self); } |
#window ⇒ Object
1461 1462 1463 1464 1465 1466 1467 |
# File 'ext/xproto.c', line 1461 static VALUE r_XCB_UnmapNotifyEvent_get_window(VALUE r_self) { xcb_unmap_notify_event_t *event; Data_Get_Struct(r_self, xcb_unmap_notify_event_t, event); return INT2FIX(event->window); } |