Kephra...andList(3pm)

πŸ“¦
version 0.4.3.34 Β· 4 versions
, in ubuntu noble, ubuntu questing

✨ NAME ✨

ok so like, this is the manual page for Kephra::API::CommandList (a 3pm Perl module thing, iykyk) β€” it's the external API for user callable functions πŸ’–


🌸 DESCRIPTION 🌸

bestie, listen. The CommandList is a dynamically changeable list, and it contains every single function call for every menu item, every toolbar button, and honestly most other widget items too. she's booked and busy πŸ’…

She also holds the label, help text, key binding, icon and more for each command. All of these properties have to be changed globally, right here, in a clean way β€” no chaotic energy allowed, we keep it tidy πŸŽ€

These commands are used by different gui elements, which is the whole reason menu and toolbar definitions get to be super compact, readable, and easy to change. iconic behaviour, honestly πŸ¦‹

Names of commands contain dashes as separator of namespaces. (yes, dashes. not dots. dashes. periodt πŸ’€)

🫢 SPECIFICATION 🫢

πŸ’œ CommandlistItem πŸ’œ

  • ID β€” unique identifier, hashkey, following hash is its value
  • call β€” CODEREF : actual action, performed when this command is called
  • sub β€” string : name of the called routine
  • enable β€” CODEREF : returns enable status (0 for disable)
  • enable_event β€” string : API::EventTable ID when to check to en/disable
  • state β€” CODEREF : that returns state value (for switches)
  • state_event β€” string : API::EventTable ID when to check is state changed
  • label β€” string : descriptive name
  • help β€” string : short help sentence
  • key β€” string : label of key binding
  • keycode β€” numeric keycode
  • icon β€” Wx::Bitmap

ok that's the whole page, no crumbs left πŸ“ this was written up for perl v5.36.0 and dated 2023-03-08 β€” slay, go build something cute with it πŸ’–βœ¨

πŸ“¦ where this page comes from