Class: Caca::Event::Mouse
- Inherits:
-
Caca::Event
- Object
- Caca::Event
- Caca::Event::Mouse
- Defined in:
- lib/caca.rb,
ext/caca/caca-event.c
Defined Under Namespace
Classes: Motion, Press, Release
Constant Summary collapse
- TYPE =
INT2FIX(CACA_EVENT_MOUSE_PRESS| CACA_EVENT_MOUSE_RELEASE| CACA_EVENT_MOUSE_MOTION)
Instance Attribute Summary collapse
-
#button ⇒ Object
readonly
Returns the value of attribute button.
-
#x ⇒ Object
readonly
Returns the value of attribute x.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(x, y, button) ⇒ Mouse
constructor
A new instance of Mouse.
Methods inherited from Caca::Event
Constructor Details
#initialize(x, y, button) ⇒ Mouse
Returns a new instance of Mouse.
27 28 29 |
# File 'lib/caca.rb', line 27 def initialize(x, y, ) @x, @y, = x, y, end |
Instance Attribute Details
#button ⇒ Object (readonly)
Returns the value of attribute button.
26 27 28 |
# File 'lib/caca.rb', line 26 def end |
#x ⇒ Object (readonly)
Returns the value of attribute x.
26 27 28 |
# File 'lib/caca.rb', line 26 def x @x end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
26 27 28 |
# File 'lib/caca.rb', line 26 def y @y end |