Class: Processing::Touch

Inherits:
Object
  • Object
show all
Defined in:
lib/processing/touch.rb

Overview

Touch object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject (readonly)

Identifier of each touch



10
11
12
# File 'lib/processing/touch.rb', line 10

def id
  @id
end

#xNumeric (readonly)

Horizontal position of touch

Returns:

  • (Numeric)

    position x



16
17
18
# File 'lib/processing/touch.rb', line 16

def x
  @x
end

#yNumeric (readonly)

Vertical position of touch

Returns:

  • (Numeric)

    position y



22
23
24
# File 'lib/processing/touch.rb', line 22

def y
  @y
end

Instance Method Details

#inspectString

Returns a string containing a human-readable representation of object.

Returns:

  • (String)

    inspected text



33
34
35
# File 'lib/processing/touch.rb', line 33

def inspect()
  "#<Processing::Touch: id:#{id} x:#{x} y:#{y}>"
end