Class: Tuile::Mouse::ScrollEvent

Inherits:
Data
  • Object
show all
Includes:
Event
Defined in:
lib/tuile/mouse.rb,
sig/tuile.rbs

Overview

One wheel notch. A notch is not a button, which is why this is not a DownEvent.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#direction ⇒ Symbol (readonly)

@return — :up, :down, :left or :right.

Returns:

  • (Symbol)


59
# File 'lib/tuile/mouse.rb', line 59

ScrollEvent = Data.define(:direction, :x, :y) { include Event }

#x ⇒ Integer (readonly)

@return — 0-based column.

Returns:

  • (Integer)


59
# File 'lib/tuile/mouse.rb', line 59

ScrollEvent = Data.define(:direction, :x, :y) { include Event }

#y ⇒ Integer (readonly)

@return — 0-based row.

Returns:

  • (Integer)


59
# File 'lib/tuile/mouse.rb', line 59

ScrollEvent = Data.define(:direction, :x, :y) { include Event }

Instance Method Details

#point ⇒ Point

@return — the event's position.

Returns:



730
# File 'sig/tuile.rbs', line 730

def point: () -> Point