Class: XCB::CirculateRequestEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::CirculateRequestEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_event, r_window, r_place) ⇒ Object
3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 |
# File 'ext/xproto.c', line 3011
static VALUE
r_XCB_CirculateRequestEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window, VALUE r_place)
{
xcb_circulate_request_event_t *self = malloc(sizeof(xcb_circulate_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_CIRCULATE_REQUEST;
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
2247 2248 2249 2250 2251 2252 2253 |
# File 'ext/xproto.c', line 2247
static VALUE
r_XCB_CirculateRequestEvent_get_event(VALUE r_self)
{
xcb_circulate_request_event_t *event;
Data_Get_Struct(r_self, xcb_circulate_request_event_t, event);
return INT2FIX(event->event);
}
|
#place ⇒ Object
2261 2262 2263 2264 2265 2266 2267 |
# File 'ext/xproto.c', line 2261
static VALUE
r_XCB_CirculateRequestEvent_get_place(VALUE r_self)
{
xcb_circulate_request_event_t *event;
Data_Get_Struct(r_self, xcb_circulate_request_event_t, event);
return INT2FIX(event->place);
}
|
#visit(r_visitor) ⇒ Object
3025 3026 3027 3028 3029 |
# File 'ext/xproto.c', line 3025
static VALUE
r_XCB_CirculateRequestEvent_visit(VALUE r_self, VALUE r_visitor)
{
return rb_funcall(r_visitor, rb_intern("visit_circulate_request"), 1, r_self);
}
|
#window ⇒ Object
2254 2255 2256 2257 2258 2259 2260 |
# File 'ext/xproto.c', line 2254
static VALUE
r_XCB_CirculateRequestEvent_get_window(VALUE r_self)
{
xcb_circulate_request_event_t *event;
Data_Get_Struct(r_self, xcb_circulate_request_event_t, event);
return INT2FIX(event->window);
}
|