Method: XCB::CirculateRequestEvent.new

Defined in:
ext/xproto.c

.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;
}