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

#xInteger (readonly)

@return — 0-based column.

Returns:

  • (Integer)


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

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

#yInteger (readonly)

@return — 0-based row.

Returns:

  • (Integer)


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

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

Instance Method Details

#pointPoint

@return — the event's position.

Returns:



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

def point: () -> Point