struct

Tea::Mouse

Inherits Struct < Value < Object

Mouse represents mouse event data

Constructors

new(x : Int32, y : Int32, button : MouseButton = Ultraviolet::MouseButton::None, modifiers : KeyMod = 0)
Source

Instance methods

alt?
Source
button

Button that triggered the event

Source
button=(button : MouseButton)

Button that triggered the event

Source
ctrl?
Source
meta?
Source
modifiers

Modifier keys pressed

Source
modifiers=(modifiers : KeyMod)

Modifier keys pressed

Source
position
Source
shift?
Source
string

Go parity helper for Mouse.String().

Source
to_s(io : IO)

Returns a string representation of the mouse event

Source
x

X position (column)

Source
x=(x : Int32)

X position (column)

Source
y

Y position (row)

Source
y=(y : Int32)

Y position (row)

Source