Class: XCB::NoExposureEvent
- Inherits:
-
GenericEvent
- Object
- GenericEvent
- XCB::NoExposureEvent
- Defined in:
- ext/xproto.c
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.new(r_drawable, r_minor_opcode, r_major_opcode) ⇒ Object
2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 |
# File 'ext/xproto.c', line 2462
static VALUE
r_XCB_NoExposureEvent_new(VALUE r_klass, VALUE r_drawable, VALUE r_minor_opcode, VALUE r_major_opcode)
{
xcb_no_exposure_event_t *self = malloc(sizeof(xcb_no_exposure_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_NO_EXPOSURE;
self->sequence = 0;
self->drawable = FIX2INT(r_drawable);
self->minor_opcode = FIX2INT(r_minor_opcode);
self->major_opcode = FIX2INT(r_major_opcode);
return r_self;
}
|
Instance Method Details
#drawable ⇒ Object
1349 1350 1351 1352 1353 1354 1355 |
# File 'ext/xproto.c', line 1349
static VALUE
r_XCB_NoExposureEvent_get_drawable(VALUE r_self)
{
xcb_no_exposure_event_t *event;
Data_Get_Struct(r_self, xcb_no_exposure_event_t, event);
return INT2FIX(event->drawable);
}
|
#major_opcode ⇒ Object
1363 1364 1365 1366 1367 1368 1369 |
# File 'ext/xproto.c', line 1363
static VALUE
r_XCB_NoExposureEvent_get_major_opcode(VALUE r_self)
{
xcb_no_exposure_event_t *event;
Data_Get_Struct(r_self, xcb_no_exposure_event_t, event);
return INT2FIX(event->major_opcode);
}
|
#minor_opcode ⇒ Object
1356 1357 1358 1359 1360 1361 1362 |
# File 'ext/xproto.c', line 1356
static VALUE
r_XCB_NoExposureEvent_get_minor_opcode(VALUE r_self)
{
xcb_no_exposure_event_t *event;
Data_Get_Struct(r_self, xcb_no_exposure_event_t, event);
return INT2FIX(event->minor_opcode);
}
|
#visit(r_visitor) ⇒ Object
2476 2477 2478 2479 2480 |
# File 'ext/xproto.c', line 2476
static VALUE
r_XCB_NoExposureEvent_visit(VALUE r_self, VALUE r_visitor)
{
return rb_funcall(r_visitor, rb_intern("visit_no_exposure"), 1, r_self);
}
|