wxNotifyEvent(3erl)
β¨ wxNotifyEvent π
okay bestie, so this is the Erlang module definition for wxNotifyEvent β part of the whole Erlang/wx situation β and we're gonna get you fully caught up, no cap.
πΈ NAME πΈ
wxNotifyEvent β functions for the wxNotifyEvent class. literally that's the whole vibe π
π¦ DESCRIPTION π¦
so this class is not used by the event handlers by itself β think of it as the base class energy for other event classes (like wxBookCtrlEvent, iykyk). it's giving "supporting character who is actually the blueprint" π
it (or an object of a derived class) gets sent when the control's state is being changed, and it lets the program veto/1 that change if it wants to stop it from happening. dramatic? maybe. useful? absolutely π
See: wxBookCtrlEvent
this class is derived (and can use functions) from:
wxCommandEventwxEvent
wxWidgets docs: wxNotifyEvent β¨
π§ DATA TYPES π§
wxNotifyEvent() = wx:wx_object()
that's the one and only type, bestie π«Ά
π₯ EXPORTS π₯
β allow(This) -> ok
Types:
This = wxNotifyEvent()
this is the opposite of veto/1 β it explicitly allows the event to be processed. slay π
for most events it is not necessary to call this method, because the events are allowed anyhow β but some are forbidden by default (and that will be mentioned in the corresponding event description, so read those, bestie π).
β isAllowed(This) -> boolean()
Types:
This = wxNotifyEvent()
returns true if the change is allowed (veto/1 hasn't been called), or false otherwise (if it was called). a little vibe check for your event π
β veto(This) -> ok
Types:
This = wxNotifyEvent()
prevents the change announced by this event from happening. not me blocking the change π₯
it is in general a good idea to notify the user about the reasons for vetoing the change, because otherwise the application's behaviour (which just refuses to do what the user wants) might be quite surprising. like, imagine being told no with zero explanation π be kind, explain the veto.
okay so that's the whole page β every function, every type, every warning, all present and accounted for π
and that's a wrap, bestie! brought to you by the wxWidgets team, version wx 2.2.2.1 β mwah, stan them for me ππ
β¨
π¦ 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