Class: Tuile::Mouse::DownEvent
- Inherits:
-
Data
- Object
- Data
- Tuile::Mouse::DownEvent
- Includes:
- Event
- Defined in:
- lib/tuile/mouse.rb,
sig/tuile.rbs
Overview
A button went down.
Instance Attribute Summary collapse
-
#button ⇒ Symbol
readonly
@return —
:left,:middleor: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
#button ⇒ Symbol (readonly)
@return — :left, :middle or :right.
32 |
# File 'lib/tuile/mouse.rb', line 32 DownEvent = Data.define(:button, :x, :y) { include Event } |
Instance Method Details
#point ⇒ Point
@return — the event's position.
539 |
# File 'sig/tuile.rbs', line 539
def point: () -> Point
|