Class: XCB::CirculateNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::CirculateNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_event, r_window, r_place) ⇒ Object
2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 |
# File 'ext/xproto.c', line 2709 static VALUE r_XCB_CirculateNotifyEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window, VALUE r_place) { xcb_circulate_notify_event_t *self = malloc(sizeof(xcb_circulate_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_CIRCULATE_NOTIFY; self->sequence = 0; self->event = FIX2INT(r_event); self->window = FIX2INT(r_window); self->place = FIX2INT(r_place); return r_self; } |
Instance Method Details
#event ⇒ Object
1734 1735 1736 1737 1738 1739 1740 |
# File 'ext/xproto.c', line 1734 static VALUE r_XCB_CirculateNotifyEvent_get_event(VALUE r_self) { xcb_circulate_notify_event_t *event; Data_Get_Struct(r_self, xcb_circulate_notify_event_t, event); return INT2FIX(event->event); } |
#place ⇒ Object
1748 1749 1750 1751 1752 1753 1754 |
# File 'ext/xproto.c', line 1748 static VALUE r_XCB_CirculateNotifyEvent_get_place(VALUE r_self) { xcb_circulate_notify_event_t *event; Data_Get_Struct(r_self, xcb_circulate_notify_event_t, event); return INT2FIX(event->place); } |
#visit(r_visitor) ⇒ Object
2723 2724 2725 2726 2727 |
# File 'ext/xproto.c', line 2723 static VALUE r_XCB_CirculateNotifyEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_circulate_notify"), 1, r_self); } |
#window ⇒ Object
1741 1742 1743 1744 1745 1746 1747 |
# File 'ext/xproto.c', line 1741 static VALUE r_XCB_CirculateNotifyEvent_get_window(VALUE r_self) { xcb_circulate_notify_event_t *event; Data_Get_Struct(r_self, xcb_circulate_notify_event_t, event); return INT2FIX(event->window); } |