Class: XCB::ResizeRequestEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::ResizeRequestEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_window, r_width, r_height) ⇒ Object
2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 |
# File 'ext/xproto.c', line 2690 static VALUE r_XCB_ResizeRequestEvent_new(VALUE r_klass, VALUE r_window, VALUE r_width, VALUE r_height) { xcb_resize_request_event_t *self = malloc(sizeof(xcb_resize_request_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_RESIZE_REQUEST; self->sequence = 0; self->window = FIX2INT(r_window); self->width = FIX2INT(r_width); self->height = FIX2INT(r_height); return r_self; } |
Instance Method Details
#height ⇒ Object
1727 1728 1729 1730 1731 1732 1733 |
# File 'ext/xproto.c', line 1727 static VALUE r_XCB_ResizeRequestEvent_get_height(VALUE r_self) { xcb_resize_request_event_t *event; Data_Get_Struct(r_self, xcb_resize_request_event_t, event); return INT2FIX(event->height); } |
#visit(r_visitor) ⇒ Object
2704 2705 2706 2707 2708 |
# File 'ext/xproto.c', line 2704 static VALUE r_XCB_ResizeRequestEvent_visit(VALUE r_self, VALUE r_visitor) { return rb_funcall(r_visitor, rb_intern("visit_resize_request"), 1, r_self); } |
#width ⇒ Object
1720 1721 1722 1723 1724 1725 1726 |
# File 'ext/xproto.c', line 1720 static VALUE r_XCB_ResizeRequestEvent_get_width(VALUE r_self) { xcb_resize_request_event_t *event; Data_Get_Struct(r_self, xcb_resize_request_event_t, event); return INT2FIX(event->width); } |
#window ⇒ Object
1713 1714 1715 1716 1717 1718 1719 |
# File 'ext/xproto.c', line 1713 static VALUE r_XCB_ResizeRequestEvent_get_window(VALUE r_self) { xcb_resize_request_event_t *event; Data_Get_Struct(r_self, xcb_resize_request_event_t, event); return INT2FIX(event->window); } |