Class: X11::Event

Inherits:
Object
  • Object
show all
Defined in:
ext/x11_wrap.c

Instance Method Summary collapse

Instance Method Details

#buttonObject



575
576
577
# File 'ext/x11_wrap.c', line 575

static VALUE event_button(VALUE self) {
  return rb_ivar_get(self,id_button);
}

#clientObject



571
572
573
# File 'ext/x11_wrap.c', line 571

static VALUE event_client(VALUE self) {
  return rb_ivar_get(self,id_client);
}

#keycodeObject



587
588
589
# File 'ext/x11_wrap.c', line 587

static VALUE event_keycode(VALUE self) {
  return rb_ivar_get(self,id_keycode);
}

#keysymObject



591
592
593
# File 'ext/x11_wrap.c', line 591

static VALUE event_keysym(VALUE self) {
  return rb_ivar_get(self,id_keysym);
}

#modsObject



599
600
601
# File 'ext/x11_wrap.c', line 599

static VALUE event_mods(VALUE self) {
  return rb_ivar_get(self,id_mods);
}

#serialObject

}



559
560
561
562
563
# File 'ext/x11_wrap.c', line 559

static VALUE event_serial(VALUE self) {
  XEvent* ev;
  Data_Get_Struct(self,XEvent,ev);
  return INT2NUM(ev->xany.serial);
}

#stateObject



595
596
597
# File 'ext/x11_wrap.c', line 595

static VALUE event_state(VALUE self) {
  return rb_ivar_get(self,id_state);
}

#typeObject



549
550
551
552
553
554
555
556
557
# File 'ext/x11_wrap.c', line 549

static VALUE event_type(VALUE self) {
  XEvent* ev;
  Data_Get_Struct(self,XEvent,ev);
  //if (ev->type < LASTEvent && !NIL_P(id_events[ev->type])) {
  //  return id_events[ev->type];
  //} else {
    return INT2NUM(ev->type);
    //}
}

#widObject



565
566
567
568
569
# File 'ext/x11_wrap.c', line 565

static VALUE event_wid(VALUE self) {
  XEvent* ev;
  Data_Get_Struct(self,XEvent,ev);
  return INT2NUM(ev->xany.window);
}

#xObject



579
580
581
# File 'ext/x11_wrap.c', line 579

static VALUE event_x(VALUE self) {
  return rb_ivar_get(self,id_x);
}

#yObject



583
584
585
# File 'ext/x11_wrap.c', line 583

static VALUE event_y(VALUE self) {
  return rb_ivar_get(self,id_y);
}