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



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

def button
  @button
end

#delta_xObject

Returns the value of attribute delta_x

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Object)

    the current value of direction



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

def direction
  @direction
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



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

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



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

def y
  @y
end