Class: Processing::Touch
- Inherits:
-
Object
- Object
- Processing::Touch
- Defined in:
- lib/processing/touch.rb
Overview
Touch object.
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Identifier of each touch.
-
#x ⇒ Numeric
readonly
Horizontal position of touch.
-
#y ⇒ Numeric
readonly
Vertical position of touch.
Instance Method Summary collapse
-
#inspect ⇒ String
Returns a string containing a human-readable representation of object.
Instance Attribute Details
#id ⇒ Object (readonly)
Identifier of each touch
10 11 12 |
# File 'lib/processing/touch.rb', line 10 def id @id end |
#x ⇒ Numeric (readonly)
Horizontal position of touch
16 17 18 |
# File 'lib/processing/touch.rb', line 16 def x @x end |
#y ⇒ Numeric (readonly)
Vertical position of touch
22 23 24 |
# File 'lib/processing/touch.rb', line 22 def y @y end |
Instance Method Details
#inspect ⇒ String
Returns a string containing a human-readable representation of object.
33 34 35 |
# File 'lib/processing/touch.rb', line 33 def inspect() "#<Processing::Touch: id:#{id} x:#{x} y:#{y}>" end |