Class: Ruby2D::Window::MouseEvent

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruby2d/window.rb

Instance Attribute Summary collapse

Instance Attribute Details

#buttonObject

Returns the value of attribute button



10
11
12
# File 'lib/ruby2d/window.rb', line 10

def button
  @button
end

#delta_xObject

Returns the value of attribute delta_x



10
11
12
# File 'lib/ruby2d/window.rb', line 10

def delta_x
  @delta_x
end

#delta_yObject

Returns the value of attribute delta_y



10
11
12
# File 'lib/ruby2d/window.rb', line 10

def delta_y
  @delta_y
end

#directionObject

Returns the value of attribute direction



10
11
12
# File 'lib/ruby2d/window.rb', line 10

def direction
  @direction
end

#typeObject

Returns the value of attribute type



10
11
12
# File 'lib/ruby2d/window.rb', line 10

def type
  @type
end

#xObject

Returns the value of attribute x



10
11
12
# File 'lib/ruby2d/window.rb', line 10

def x
  @x
end

#yObject

Returns the value of attribute y



10
11
12
# File 'lib/ruby2d/window.rb', line 10

def y
  @y
end