Class: Cura::Event::Mouse
Overview
Dispatched when a mouse’s button state changes.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#x ⇒ Integer
readonly
Get the X coordinate where the mouse button was pressed.
-
#y ⇒ Integer
readonly
Get the Y coordinate where the mouse button was pressed.
Attributes inherited from Base
Method Summary
Methods inherited from Base
#==, #dispatch, inherited, #initialize, name, #to_h
Methods included from Attributes::HasAttributes
included, #initialize, #update_attributes
Methods included from Attributes::HasInitialize
Constructor Details
This class inherits a constructor from Cura::Event::Base
Instance Attribute Details
#x ⇒ Integer
Get the X coordinate where the mouse button was pressed.
10 11 12 |
# File 'lib/cura/event/mouse.rb', line 10 def x @x end |
#y ⇒ Integer
Get the Y coordinate where the mouse button was pressed.
15 16 17 |
# File 'lib/cura/event/mouse.rb', line 15 def y @y end |