Class: XCB::GravityNotifyEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::GravityNotifyEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_event, r_window, r_x, r_y) ⇒ Object
2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 |
# File 'ext/xproto.c', line 2670 static VALUE r_XCB_GravityNotifyEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window, VALUE r_x, VALUE r_y) { xcb_gravity_notify_event_t *self = malloc(sizeof(xcb_gravity_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_GRAVITY_NOTIFY; self->sequence = 0; self->event = FIX2INT(r_event); self->window = FIX2INT(r_window); self->x = FIX2INT(r_x); self->y = FIX2INT(r_y); return r_self; } |
Instance Method Details
#event ⇒ Object
1685 1686 1687 1688 1689 1690 1691 |
# File 'ext/xproto.c', line 1685 static VALUE r_XCB_GravityNotifyEvent_get_event(VALUE r_self) { xcb_gravity_notify_event_t *event; Data_Get_Struct(r_self, xcb_gravity_notify_event_t, event); return INT2FIX(event->event); } |
#visit(r_visitor) ⇒ Object
2685 2686 2687 2688 2689 |
# File 'ext/xproto.c', line 2685 static VALUE r_XCB_GravityNotifyEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_gravity_notify"), 1, r_self); } |
#window ⇒ Object
1692 1693 1694 1695 1696 1697 1698 |
# File 'ext/xproto.c', line 1692 static VALUE r_XCB_GravityNotifyEvent_get_window(VALUE r_self) { xcb_gravity_notify_event_t *event; Data_Get_Struct(r_self, xcb_gravity_notify_event_t, event); return INT2FIX(event->window); } |
#x ⇒ Object
1699 1700 1701 1702 1703 1704 1705 |
# File 'ext/xproto.c', line 1699 static VALUE r_XCB_GravityNotifyEvent_get_x(VALUE r_self) { xcb_gravity_notify_event_t *event; Data_Get_Struct(r_self, xcb_gravity_notify_event_t, event); return INT2FIX(event->x); } |
#y ⇒ Object
1706 1707 1708 1709 1710 1711 1712 |
# File 'ext/xproto.c', line 1706 static VALUE r_XCB_GravityNotifyEvent_get_y(VALUE r_self) { xcb_gravity_notify_event_t *event; Data_Get_Struct(r_self, xcb_gravity_notify_event_t, event); return INT2FIX(event->y); } |