Class: X11::Event
- Inherits:
-
Object
- Object
- X11::Event
- Defined in:
- ext/x11_wrap.c
Instance Method Summary collapse
- #button ⇒ Object
- #client ⇒ Object
- #keycode ⇒ Object
- #keysym ⇒ Object
- #mods ⇒ Object
-
#serial ⇒ Object
}.
- #state ⇒ Object
- #type ⇒ Object
- #wid ⇒ Object
- #x ⇒ Object
- #y ⇒ Object
Instance Method Details
#button ⇒ Object
575 576 577 |
# File 'ext/x11_wrap.c', line 575 static VALUE (VALUE self) { return rb_ivar_get(self,); } |
#client ⇒ Object
571 572 573 |
# File 'ext/x11_wrap.c', line 571 static VALUE event_client(VALUE self) { return rb_ivar_get(self,id_client); } |
#keycode ⇒ Object
587 588 589 |
# File 'ext/x11_wrap.c', line 587 static VALUE event_keycode(VALUE self) { return rb_ivar_get(self,id_keycode); } |
#keysym ⇒ Object
591 592 593 |
# File 'ext/x11_wrap.c', line 591 static VALUE event_keysym(VALUE self) { return rb_ivar_get(self,id_keysym); } |
#mods ⇒ Object
599 600 601 |
# File 'ext/x11_wrap.c', line 599 static VALUE event_mods(VALUE self) { return rb_ivar_get(self,id_mods); } |
#serial ⇒ Object
}
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);
}
|
#state ⇒ Object
595 596 597 |
# File 'ext/x11_wrap.c', line 595 static VALUE event_state(VALUE self) { return rb_ivar_get(self,id_state); } |
#type ⇒ Object
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);
//}
}
|
#wid ⇒ Object
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);
}
|
#x ⇒ Object
579 580 581 |
# File 'ext/x11_wrap.c', line 579 static VALUE event_x(VALUE self) { return rb_ivar_get(self,id_x); } |
#y ⇒ Object
583 584 585 |
# File 'ext/x11_wrap.c', line 583 static VALUE event_y(VALUE self) { return rb_ivar_get(self,id_y); } |