class

Tui::MouseEvent

Inherits Tui::Event / Reference / Object

Constructors

new(x : Int32, y : Int32, button : MouseButton = MouseButton::Left, action : MouseAction = MouseAction::Press, modifiers : Modifiers = Modifiers::None)
Source

Instance methods

action
Source
alt?
Source
button
Source
click?
Source
ctrl?
Source
drag?
Source
in_rect?(rx : Int32, ry : Int32, rw : Int32, rh : Int32) : Bool

Check if position is within bounds

Source
in_rect?(rect : Rect) : Bool
Source
left?

Check buttons

Source
middle?
Source
modifiers
Source
move?
Source
press?

Check action types

Source
relative_to(rx : Int32, ry : Int32) : Tuple(Int32, Int32)

Get position relative to a rectangle

Source
relative_to(rect : Rect) : Tuple(Int32, Int32)
Source
release?
Source
right?
Source
shift?

Check modifiers

Source
wheel?
Source
wheel_down?
Source
wheel_up?
Source