struct Termbox::Event::MouseEvent
- Termbox::Event::MouseEvent
- Termbox::Event::BaseEvent
- Struct
- Value
- Object
Overview
Emitted by mouse events when mouse is enabled (see
InputMode::Mouse
for more).
Defined in:
termbox2/event.crConstructors
Class Method Summary
-
.from(event)
Creates a
MouseEvent
from a Termbox event struct.
Instance Method Summary
-
#button : MouseButton
Returns the mouse button of this event.
-
#x : Int32
Returns the mouse X position of this event, in columns.
-
#y : Int32
Returns the mouse Y position of this event, in rows.