wxWindowDestroyEvent(3erl)
πΈ NAME πΈ
okay so this is the wxWindowDestroyEvent(3erl) manual page β an Erlang module definition situation β and itβs all about wxWindowDestroyEvent, aka functions for the wxWindowDestroyEvent class. bestie, weβre getting into it π
β¨ DESCRIPTION β¨
This event is sent as early as possible during the window destruction process. no cap.
For the top level windows, βas early as possibleβ means that this is done by wxFrame or wxDialog destructor, i.e. after the destructor of the derived class was executed and so any methods specific to the derived class canβt be called any more from this event handler. If you need to do this, you must call wxWindow::SendDestroyEvent() (not implemented in wx) from your derived class destructor. π«Ά
For the child windows, this event is generated just before deleting the window from wxWindow:'Destroy'/1 (which is also called when the parent window is deleted) or from the window destructor if operator delete was used directly (which is not recommended for this very reason). π
It is usually pointless to handle this event in the window itself but it can be very useful to receive notifications about the window destruction in the parent window or in any other object interested in this window. lowkey iconic.
See: Overview events, wxWindowCreateEvent β yes bestie, go look π
This class is derived (and can use functions) from: wxCommandEvent wxEvent
wxWidgets docs: wxWindowDestroyEvent
π¦ DATA TYPES π¦
here are the data types, literally:
wxWindowDestroyEvent() = wx:wx_object()
wxWindowDestroy() =
#wxWindowDestroy{type =
wxWindowDestroyEvent:wxWindowDestroyEventType()}
wxWindowDestroyEventType() = destroy
mwah π β signed off by the wxWidgets team, version wx 2.2.2.1, on the wxWindowDestroyEvent(3erl) page. periodt. π
π¦ 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