wxAcceleratorTable(3)
π 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 acceptCTRL-Enteras 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:
wxAcceleratorEntrywxWindow: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().β returnstrueif 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
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms