wxAcceleratorTable(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– wxAcceleratorTable πŸ’–

okay bestie, so this is the wxAcceleratorTable page from the Erlang module definitions β€” it's a module doc for wx, and it's literally the thing that lets your app map keyboard shortcuts to menu or button commands. iykyk. πŸŽ€


✨ NAME ✨

so like, wxAcceleratorTable β€” an accelerator table lets the application specify a table of keyboard shortcuts for menu or button commands. that's the whole vibe. βŒ¨οΈπŸ’…


🌸 DESCRIPTION 🌸

the object ?wxNullAcceleratorTable is defined to be a table with no data, and it's the initial accelerator table for a window. like, that's the default state before you do anything. no cap.

Example:

(yep, that's it β€” the example is just… there. iconic of it tbh πŸ™ˆ)

Remark: an accelerator takes precedence over normal processing and can be a convenient way to program some event handling. for example, you can use an accelerator table to enable a dialog with a multi-line text control to accept CTRL-Enter as meaning 'OK'. the way that a shortcut just cuts in line ahead of normal processing?? main character energy fr fr. πŸ‘‘

Predefined objects (include wx.hrl): ?wxNullAcceleratorTable

See:

  • wxAcceleratorEntry
  • wxWindow:setAcceleratorTable/2

wxWidgets docs: wxAcceleratorTable


πŸ¦‹ DATA TYPES πŸ¦‹

  • wxAcceleratorTable() :: wx:wx_object().

✨ FUNCTIONS ✨

  • destroy(This :: wxAcceleratorTable()) -> ok. β€” destroys the object πŸ’€
  • isOk(This) -> boolean() when This :: wxAcceleratorTable(). β€” returns true if the accelerator table is valid. vibe check: passed βœ…
  • new() -> wxAcceleratorTable(). β€” default ctor. the classic.
  • new(N, Entries) -> wxAcceleratorTable() when:
    • N :: integer()
    • Entries :: [wxAcceleratorEntry:wxAcceleratorEntry()]

initializes the accelerator table from an array of wxAcceleratorEntry. πŸ“

  • ok(This) -> boolean() when This :: wxAcceleratorTable(). β€” equivalent to: isOk/1

and that's the whole page bestie, you ate this one fr πŸ’–

β€” brought to you by Ericsson AB, version wx 2.6. mwah 🫢✨

πŸ“¦ where this page comes from