Class: Tuile::Mouse::DownEvent

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

Overview

A button went down.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#buttonSymbol (readonly)

@return:left, :middle or :right.

Returns:

  • (Symbol)


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

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

#xInteger (readonly)

@return — 0-based column.

Returns:

  • (Integer)


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

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

#yInteger (readonly)

@return — 0-based row.

Returns:

  • (Integer)


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

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

Instance Method Details

#pointPoint

@return — the event's position.

Returns:



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

def point: () -> Point