NAME

Tickit::Event - event information structures

DESCRIPTION

When event handlers bound to Tickit::Term instances are invoked they receive an object instance to contain information about the event. Details of the event can be accessed as via accessor methods on these instances.

For back-compatibility, each event type also provides a hash reference overload method that yields a hash containing keys named after the accessors. This code will be removed in a later version as per deprecation policy.

ACCESSORS

The following methods are shared between Tickit::Event::Key and Tickit::Event::Mouse instances.

mod_is_alt

mod_is_ctrl

mod_is_shift

Convenient shortcuts to tests on the mod bitmask to test if each of the modifiers is set.

Tickit::Event::Key

type

A dualvar giving the key event type as an integer or string event name (text or key).

str

A string containing the key event string.

mod

An integer bitmask indicating the modifier state.

Tickit::Event::Mouse

type

A dualvar giving the mouse event type as an integer or string event name (press, drag, release or wheel).

button

An integer for non-wheel events or a dualvar for wheel events giving the wheel direction (up or down).

line

col

Integers giving the mouse position.

mod

An integer bitmask indicating the modifier state.

Tickit::Event::Resize

lines

cols

Integers giving the new size.

AUTHOR

Paul Evans <leonerd@leonerd.org.uk>