Module: Tuile::Mouse::Event

Includes:
Event
Included in:
DownEvent, DragEvent, MoveEvent, ScrollEvent, UpEvent
Defined in:
lib/tuile/mouse.rb,
sig/tuile.rbs

Overview

Included by every mouse event class: a marker for case/is_a?, plus the #point they share.

The include must stay qualified — a bare Event in this namespace resolves right back to here, and the gem-wide marker would be silently lost.

Instance Method Summary collapse

Instance Method Details

#point ⇒ Point

@return — the event's position.

Returns:



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

def point = Point.new(x, y)