Class: Tuile::Mouse::UpEvent

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

Overview

A button came up. Deliberately no button: an up reaches only the component that claimed the press, and that grab already knows which button it holds (D_mouse_dispatch).

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#x ⇒ Integer (readonly)

@return — 0-based column.

Returns:

  • (Integer)


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

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

#y ⇒ Integer (readonly)

@return — 0-based row.

Returns:

  • (Integer)


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

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

Instance Method Details

#point ⇒ Point

@return — the event's position.

Returns:



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

def point: () -> Point