Method: XCB::UnmapNotifyEvent.new

Defined in:
ext/xproto.c

.new(r_event, r_window, r_from_configure) ⇒ Object



2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
# File 'ext/xproto.c', line 2541

static VALUE
r_XCB_UnmapNotifyEvent_new(VALUE r_klass, VALUE r_event, VALUE r_window, VALUE r_from_configure)
{
  xcb_unmap_notify_event_t *self = malloc(sizeof(xcb_unmap_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_UNMAP_NOTIFY;
  self->sequence = 0;
  self->event = FIX2INT(r_event);
  self->window = FIX2INT(r_window);
  self->from_configure = RTEST(r_from_configure);
  return r_self;
}