Class: Tuile::Mouse::MoveEvent

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

Overview

The pointer moved and nothing holds the grab.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#buttonSymbol? (readonly)

@return — the button held while moving, or nil.

Returns:

  • (Symbol, nil)


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

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

#xInteger (readonly)

@return — 0-based column.

Returns:

  • (Integer)


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

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

#yInteger (readonly)

@return — 0-based row.

Returns:

  • (Integer)


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

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

Instance Method Details

#pointPoint

@return — the event's position.

Returns:



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

def point: () -> Point