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 the mod bitmask to see if the alt modifier is set.
  • mod_is_ctrl β€” a convenient shortcut to a test on the mod bitmask to see if the ctrl modifier is set.
  • mod_is_shift β€” a convenient shortcut to a test on the mod bitmask to see if the shift modifier is set.

πŸ¦‹ Tickit::Event::Expose

  • rb β€” the Tickit::RenderBuffer instance containing the buffer for this redraw cycle. Buffer bestie. πŸ’–
  • rect β€” a Tickit::Rect instance 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 (in or out). 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; 1 for in, 0 for out. Legacy behaviour alert: this one will be removed in a later version, so don’t get too attached, bestie. πŸ’€
  • win β€” the child Tickit::Window instance 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 (text or key). 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, release or wheel). Mouse behaviour, iconic. 🐭
  • button β€” an integer for non-wheel events or a dualvar for wheel events giving the wheel direction (up or down). 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