2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
|
# File 'ext/xproto.c', line 2523
static VALUE
r_XCB_DestroyNotifyEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window)
{
xcb_destroy_notify_event_t *self = malloc(sizeof(xcb_destroy_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_DESTROY_NOTIFY;
self->sequence = 0;
self->event = FIX2INT(r_event);
self->window = FIX2INT(r_window);
return r_self;
}
|