An event sent by a window upon when it's about to be closed, either manually by the user or programatically.
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 programatic 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.
Definition at line 226 of file CBaseGUIWindow.h.
#include <mrpt/gui/CBaseGUIWindow.h>

Public Member Functions | |
| mrptEventWindowClosed (CBaseGUIWindow *obj, bool _allow_close=true) | |
Public Attributes | |
| CBaseGUIWindow * | source_object |
| bool | allow_close |
Protected Member Functions | |
| virtual void | do_nothing () |
| Just to allow this class to be polymorphic. More... | |
|
inline |
Definition at line 231 of file CBaseGUIWindow.h.
|
inlineprotectedvirtual |
Just to allow this class to be polymorphic.
Definition at line 229 of file CBaseGUIWindow.h.
| bool mrpt::gui::mrptEventWindowClosed::allow_close |
Definition at line 237 of file CBaseGUIWindow.h.
| CBaseGUIWindow* mrpt::gui::mrptEventWindowClosed::source_object |
Definition at line 236 of file CBaseGUIWindow.h.
| Page generated by Doxygen 1.8.8 for MRPT 1.2.2 SVN:Unversioned directory at Tue Oct 14 02:14:08 UTC 2014 |