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



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

def button
  @button
end

#delta_xObject

Returns the value of attribute delta_x



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

def delta_x
  @delta_x
end

#delta_yObject

Returns the value of attribute delta_y



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

def delta_y
  @delta_y
end

#directionObject

Returns the value of attribute direction



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

def direction
  @direction
end

#typeObject

Returns the value of attribute type



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

def type
  @type
end

#xObject

Returns the value of attribute x



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

def x
  @x
end

#yObject

Returns the value of attribute y



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

def y
  @y
end