Tickit::Event - event information structures
Tickit::Event
When event handlers bound to Tickit::Term or Tickit::Window 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.
The following methods are shared between Tickit::Event::Key and Tickit::Event::Mouse instances.
Tickit::Event::Key
Tickit::Event::Mouse
Convenient shortcuts to tests on the mod bitmask to test if each of the modifiers is set.
mod
The Tickit::RenderBuffer instance containing the buffer for this redraw cycle.
A Tickit::Rect instance containing the region of the window that needs repainting.
This accessor has two forms of operation.
The new behaviour is that it returns a dualvar giving the focus event type as an integer or a string event name (in or out). This behaviour is selected if the method is invoked with any true value as an argument.
in
out
The legacy behaviour is that it returns a simple boolean giving the focus direction; 1 for in, 0 for out. This legacy behaviour will be removed in a later version.
1
0
The child Tickit::Window instance for child-focus notify events.
A dualvar giving the key event type as an integer or string event name (text or key).
text
key
A string containing the key event string.
An integer bitmask indicating the modifier state.
A dualvar giving the mouse event type as an integer or string event name (press, drag, release or wheel).
press
drag
release
wheel
An integer for non-wheel events or a dualvar for wheel events giving the wheel direction (up or down).
up
down
Integers giving the mouse position.
Integers giving the new size.
Paul Evans <leonerd@leonerd.org.uk>
To install Tickit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tickit
CPAN shell
perl -MCPAN -e shell install Tickit
For more information on module installation, please visit the detailed CPAN module installation guide.