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

Returns:

  • (Object)

    the current value of button



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def button
  @button
end

#delta_xObject

Returns the value of attribute delta_x

Returns:

  • (Object)

    the current value of delta_x



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def delta_x
  @delta_x
end

#delta_yObject

Returns the value of attribute delta_y

Returns:

  • (Object)

    the current value of delta_y



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def delta_y
  @delta_y
end

#directionObject

Returns the value of attribute direction

Returns:

  • (Object)

    the current value of direction



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def direction
  @direction
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def type
  @type
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



14
15
16
# File 'lib/ruby2d/window.rb', line 14

def y
  @y
end