Tickit::Event(3pm)
πΈ NAME πΈ
okay so this is Tickit::Event from the 3pm manual, filed under User Contributed Perl Documentation β literally the event information structures page. Itβs giving βsmall but crucial main character energyβ π«Ά.
π DESCRIPTION π
So hereβs the tea: when event handlers bound to Tickit::Term or Tickit::Window instances are invoked, they receive an object instance to contain information about the event. No cap, details of the event can be accessed via accessor methods on these instances. Slay. β¨
β¨ ACCESSORS β¨
The following methods are shared between Tickit::Event::Key and Tickit::Event::Mouse instances. Shared custody, but make it Unix. π
mod_is_altβ a convenient shortcut to a test on themodbitmask to see if the alt modifier is set.mod_is_ctrlβ a convenient shortcut to a test on themodbitmask to see if the ctrl modifier is set.mod_is_shiftβ a convenient shortcut to a test on themodbitmask to see if the shift modifier is set.
π¦ Tickit::Event::Expose
rbβ theTickit::RenderBufferinstance containing the buffer for this redraw cycle. Buffer bestie. πrectβ aTickit::Rectinstance containing the region of the window that needs repainting. Get that rectangle its glow-up. β¨
π Tickit::Event::Focus
typeβ this accessor has two forms of operation, and you need to know which one youβre getting.- The new behaviour is that it returns a dualvar giving the focus event type as an integer or a string event name (
inorout). This behaviour is selected if the method is invoked with any true value as an argument. New behaviour, new me. π - The legacy behaviour is that it returns a simple boolean giving the focus direction;
1for in,0for out. Legacy behaviour alert: this one will be removed in a later version, so donβt get too attached, bestie. π
- The new behaviour is that it returns a dualvar giving the focus event type as an integer or a string event name (
winβ the childTickit::Windowinstance for child-focus notify events. Child window has entered the chat. π¦
β οΈ heads up: that focus type legacy behaviour is literally marked for removal in a later version. Use the new behaviour when you can, iykyk.
π Tickit::Event::Key
typeβ a dualvar giving the key event type as an integer or a string event name (textorkey). Typing tea. β¨οΈstrβ a string containing the key event string. String theory but make it keys. πmodβ an integer bitmask indicating the modifier state. Bitmask realness. π§
π Tickit::Event::Mouse
typeβ a dualvar giving the mouse event type as an integer or a string event name (press,drag,releaseorwheel). Mouse behaviour, iconic. πbuttonβ an integer for non-wheel events or a dualvar for wheel events giving the wheel direction (upordown). Wheel direction said what it said. πline,colβ integers giving the mouse position. Coordinates, bestie. πmodβ an integer bitmask indicating the modifier state. Same bitmask energy. π
π Tickit::Event::Resize
lines,colsβ integers giving the new size. Resize, slay, new dimensions. π
π AUTHOR π
Paul Evans <leonerd@leonerd.org.uk> β author icon, periodt. π
bye bestie π this page comes from perl v5.42.3, dated 2026-08-19, and itβs the Tickit::Event(3pm) manual β catch you in the group chat! π«Άβ¨
π¦ where this page comes from
- ubuntu stonking: libtickit-perl 0.73-1build5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms