struct

NCurses::MouseEvent

Inherits Struct < Value < Object

Returned by #get_mouse after Key::Mouse has been returned

Constructors

new(device_id : Int16, coordinates : NamedTuple(y: Int32, x: Int32, z: Int32), state : LibNCurses::Mouse)
Source
new(event : LibNCurses::MEVENT)

Converts fields from LibC ints to specific types

Source

Instance methods

coordinates
Source
device_id
Source
enclose?(window : Window)

If this mouse event took place inside a specific window

Source
non_relative(window : Window) : MouseEvent

Returns a new MouseEvent with full-screen relative coordinates

The opposite of #relative

Wrapper for wmouse_trafo()

Source
relative(window : Window) : MouseEvent

Returns a new MouseEvent with window-relative coordinates

Wrapper for wmouse_trafo()

Source
state
Source