Class: XCB::VisibilityNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::VisibilityNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_window, r_state) ⇒ Object
2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 |
# File 'ext/xproto.c', line 2481 static VALUE r_XCB_VisibilityNotifyEvent_new(VALUE r_klass, VALUE r_window, VALUE r_state) { xcb_visibility_notify_event_t *self = malloc(sizeof(xcb_visibility_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_VISIBILITY_NOTIFY; self->sequence = 0; self->window = FIX2INT(r_window); self->state = FIX2INT(r_state); return r_self; } |
Instance Method Details
#state ⇒ Object
1377 1378 1379 1380 1381 1382 1383 |
# File 'ext/xproto.c', line 1377 static VALUE r_XCB_VisibilityNotifyEvent_get_state(VALUE r_self) { xcb_visibility_notify_event_t *event; Data_Get_Struct(r_self, xcb_visibility_notify_event_t, event); return INT2FIX(event->state); } |
#visit(r_visitor) ⇒ Object
2494 2495 2496 2497 2498 |
# File 'ext/xproto.c', line 2494 static VALUE r_XCB_VisibilityNotifyEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_visibility_notify"), 1, r_self); } |
#window ⇒ Object
1370 1371 1372 1373 1374 1375 1376 |
# File 'ext/xproto.c', line 1370 static VALUE r_XCB_VisibilityNotifyEvent_get_window(VALUE r_self) { xcb_visibility_notify_event_t *event; Data_Get_Struct(r_self, xcb_visibility_notify_event_t, event); return INT2FIX(event->window); } |