class mrpt::gui::mrptEventWindowClosedο
Overviewο
An event sent by a window upon when itβs about to be closed, either manually by the user or programmatically.
The event field member allow_close is default by default, but can be set to false in the event callback to forbid the window to be closed by the user. If the event corresponds to a programmatic close, this field is ignored.
IMPORTANTE NOTICE: Event handlers in your observer class will be invoked from the wxWidgets internal MRPT thread, so all your code in the handler must be thread safe.
See also:
#include <mrpt/gui/CBaseGUIWindow.h> class mrptEventWindowClosed: public mrpt::system::mrptEvent { public: // fields CBaseGUIWindow* source_object; bool allow_close; // construction mrptEventWindowClosed( CBaseGUIWindow* obj, bool _allow_close = true ); };
Inherited Membersο
public: // fields mrpt::Clock::time_point timestamp {mrpt::Clock::now()}; // methods template <class EVENTTYPE> bool isOfType() const; template <class EVENTTYPE> const EVENTTYPE* getAs() const; template <class EVENTTYPE> EVENTTYPE* getAsNonConst() const;