Class: Tuile::Mouse::ScrollEvent
- Inherits:
-
Data
- Object
- Data
- Tuile::Mouse::ScrollEvent
- 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
-
#direction ⇒ Symbol
readonly
@return —
:up,:down,:leftor:right. -
#x ⇒ Integer
readonly
@return — 0-based column.
-
#y ⇒ Integer
readonly
@return — 0-based row.
Instance Method Summary collapse
-
#point ⇒ Point
@return — the event's position.
Instance Attribute Details
#direction ⇒ Symbol (readonly)
@return — :up, :down, :left or :right.
53 |
# File 'lib/tuile/mouse.rb', line 53 ScrollEvent = Data.define(:direction, :x, :y) { include Event } |
#x ⇒ Integer (readonly)
@return — 0-based column.
53 |
# File 'lib/tuile/mouse.rb', line 53 ScrollEvent = Data.define(:direction, :x, :y) { include Event } |
#y ⇒ Integer (readonly)
@return — 0-based row.
53 |
# File 'lib/tuile/mouse.rb', line 53 ScrollEvent = Data.define(:direction, :x, :y) { include Event } |
Instance Method Details
#point ⇒ Point
@return — the event's position.
585 |
# File 'sig/tuile.rbs', line 585
def point: () -> Point
|