wxAuiNotebookEvent(3)
π NAME π
okay so bestie, meet wxAuiNotebookEvent β it's the class that the events generated by wxAuiNotebook use. that's it, that's the whole vibe β¨
and fr fr, this whole page is the Erlang module definition for it, so if you're living in Erlang land and someone's notebook is being dramatic, this is your girl π«Ά
πΈ DESCRIPTION πΈ
so, see:
wxAuiNotebookwxBookCtrlEvent
and okay, plot twist, this class is derived, and can use functions, from:
wxBookCtrlEventwxNotifyEventwxCommandEventwxEvent
like it literally inherited all of their lore, it's giving main character energy π
wxWidgets docs: wxAuiNotebookEvent β that's where the C++ side of the family hangs out, iykyk.
π¦ Events π¦
to subscribe to events of this type, use wxEvtHandler:connect/3 with wxAuiNotebookEventType. that's the move, no cap π
β¨ DATA TYPES β¨
wxAuiNotebook() :: #wxAuiNotebook{}.
wxAuiNotebookEvent() :: wx:wx_object().
wxAuiNotebookEventType() ::
command_auinotebook_page_close |
command_auinotebook_page_changed |
command_auinotebook_page_changing |
command_auinotebook_button | command_auinotebook_begin_drag |
command_auinotebook_end_drag |
command_auinotebook_drag_motion |
command_auinotebook_allow_dnd |
command_auinotebook_tab_middle_down |
command_auinotebook_tab_middle_up |
command_auinotebook_tab_right_down |
command_auinotebook_tab_right_up |
command_auinotebook_page_closed |
command_auinotebook_drag_done | command_auinotebook_bg_dclick.
look at that little list of atoms, she's long but she's ICONIC β every single one of them is a real event type, don't skip any π
π FUNCTIONS π
getDragSource(This) -> wxAuiNotebook:wxAuiNotebook()β hands you back the notebook that started the drag.
getDragSource(This) -> wxAuiNotebook:wxAuiNotebook()
when This :: wxAuiNotebookEvent().
getOldSelection(This) -> integer()β returns the page that was selected before the change, orwxNOT_FOUNDif none was selected.
getOldSelection(This) -> integer()
when This :: wxAuiNotebookEvent().
getSelection(This) -> integer()β returns the currently selected page, orwxNOT_FOUNDif none was selected.
getSelection(This) -> integer() when This :: wxAuiNotebookEvent().
β οΈ note bestie: under Windows,getSelection/1will return the same value asgetOldSelection/1when it's called from theEVT_BOOKCTRL_PAGE_CHANGINGhandler β and not the page which is going to be selected. so like, don't be surprised, that's just how she behaves there π
setDragSource(This, S) -> okβ sets the drag source.
setDragSource(This, S) -> ok
when
This :: wxAuiNotebookEvent(),
S :: wxAuiNotebook:wxAuiNotebook().
setOldSelection(This, Page) -> okβ sets the id of the page selected before the change.
setOldSelection(This, Page) -> ok
when
This :: wxAuiNotebookEvent(),
Page :: integer().
setSelection(This, Page) -> okβ sets the selection member variable.
setSelection(This, Page) -> ok
when
This :: wxAuiNotebookEvent(),
Page :: integer().
and that's the whole page, bestie, we ate and left absolutely no crumbs πβ¨
kisses, this manual page came to you courtesy of Ericsson AB, version wx 2.6 β same wxAuiNotebookEvent(3) energy, just with way better vibes π
ππ
π¦ 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