wxAuiManagerEvent(3erl)
π wxAuiManagerEvent
okay so real talk: this is the Erlang Module Definition page for wxAuiManagerEvent, straight out of the wxWidgets docs, and it's genuinely kind of iconic once you get past the manpage font. it's all about the event object that gets passed around when wxAuiManager does stuff. bestie, let's get into it π«Ά
β¨ NAME β¨
wxAuiManagerEvent β literally just the functions for the wxAuiManagerEvent class. that's the whole name. slay.
πΈ DESCRIPTION πΈ
so this class is the event used to indicate various actions taken with wxAuiManager. think of it as the little messenger that shows up like "hey, something happened to a pane π".
wanna know which event types exist? go look at wxAuiManager. that's where they live.
See: wxAuiManager, wxAuiPaneInfo
this class is derived (and can use functions) from: wxEvent β so yeah, it's got the whole wxEvent family tree behind it, main character energy fr fr π
wxWidgets docs: wxAuiManagerEvent
π¦ EVENTS π¦
to subscribe to events of this type, use wxEvtHandler:connect/3 with wxAuiManagerEventType. that's the vibe check you gotta pass. no cap. β
π DATA TYPES π
okay so here's the shape of everything. read these carefully, they're the whole personality of the module:
wxAuiManagerEvent() = wx:wx_object()
wxAuiManager() =
#wxAuiManager{type =
wxAuiManagerEvent:wxAuiManagerEventType(),
manager = wxAuiManager:wxAuiManager(),
pane = wxAuiPaneInfo:wxAuiPaneInfo(),
button = integer(),
veto_flag = boolean(),
canveto_flag = boolean(),
dc = wxDC:wxDC()}
wxAuiManagerEventType() =
aui_pane_button | aui_pane_close | aui_pane_maximize |
aui_pane_restore | aui_pane_activated | aui_render |
aui_find_manager
look at that record. seven whole event types in the union, all lowercase with underscores, all giving "i was there" energy. π
π EXPORTS π
here's everybody. one bullet each, no skipping, we don't do that here. π
π«Ά setManager/2
setManager(This, Manager) -> ok
Types:
This = wxAuiManagerEvent()Manager = wxAuiManager:wxAuiManager()
sets the wxAuiManager this event is associated with. like assigning the event its manager bestie. π
π«Ά getManager/1
getManager(This) -> wxAuiManager:wxAuiManager()
Types:
This = wxAuiManagerEvent()
Return: the wxAuiManager this event is associated with.
read-only peek at who the manager is. very demure. β¨
π«Ά setPane/2
setPane(This, Pane) -> ok
Types:
This = wxAuiManagerEvent()Pane = wxAuiPaneInfo:wxAuiPaneInfo()
sets the pane this event is associated with. now the event knows which pane it's about π
π«Ά getPane/1
getPane(This) -> wxAuiPaneInfo:wxAuiPaneInfo()
Types:
This = wxAuiManagerEvent()
Return: the pane this event is associated with.
the pane in question. the one. the only. πΈ
π«Ά setButton/2
setButton(This, Button) -> ok
Types:
This = wxAuiManagerEvent()Button = integer()
sets the ID of the button clicked that triggered this event. so when a button caused all this, its ID lands here. π
π«Ά getButton/1
getButton(This) -> integer()
Types:
This = wxAuiManagerEvent()
Return: the ID of the button that was clicked.
a whole integer. the button's whole identity. π
π«Ά setDC/2
setDC(This, Pdc) -> ok
Types:
This = wxAuiManagerEvent()Pdc = wxDC:wxDC()
disclaimer bestie: the original page gives this one no description at all, so i'm not about to make one up out of thin air. it exists, it takes a wxDC:wxDC(), that's what we know. π
π«Ά getDC/1
getDC(This) -> wxDC:wxDC()
Types:
This = wxAuiManagerEvent()
same deal β no description on the original page for this one either. it returns a wxDC:wxDC(). that's the tea, and that's all of it. π
π«Ά veto/1
veto(This) -> ok
Types:
This = wxAuiManagerEvent()
the one-argument version. see veto/2 for the version that actually spells out the cancelling behaviour. π§
π«Ά veto/2
veto(This, Options :: [Option]) -> ok
Types:
This = wxAuiManagerEvent()Option = {veto, boolean()}
cancels the action indicated by this event if canVeto/1 is true. like hitting undo on reality, but only if the event says you're allowed. > if canVeto/1 is not true, then yeah β the action does not get cancelled, so don't count on this working everywhere. π₯
π«Ά getVeto/1
getVeto(This) -> boolean()
Types:
This = wxAuiManagerEvent()
Return: true if this event was vetoed.
See: veto/2
the vibes check on whether the veto actually went through. π
π«Ά setCanVeto/2
setCanVeto(This, Can_veto) -> ok
Types:
This = wxAuiManagerEvent()Can_veto = boolean()
sets whether or not this event can be vetoed. flip it on to allow vetoing, off to lock it down. π
π«Ά canVeto/1
canVeto(This) -> boolean()
Types:
This = wxAuiManagerEvent()
Return: true if this event can be vetoed.
See: veto/2
asks permission before you start vetoing things. polite queen behaviour honestly. π
πΈ lowkey reminder:wxAuiManagerEventType()gives you exactly these and only these βaui_pane_button,aui_pane_close,aui_pane_maximize,aui_pane_restore,aui_pane_activated,aui_render,aui_find_manager. memorize them, they're the whole cast. iykyk. π
and that's the page, bestie! shoutout to the wxWidgets team β this one's from wx 2.2.2.1, page wxAuiManagerEvent(3erl). go forth and veto responsibly π
β¨π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms