Main MRPT website > C++ reference
MRPT logo
List of all members | Public Member Functions | Public Attributes | Protected Member Functions
mrpt::gui::mrptEventWindowClosed Class Reference

Detailed Description

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.

See also
CBaseGUIWindow

Definition at line 226 of file CBaseGUIWindow.h.

#include <mrpt/gui/CBaseGUIWindow.h>

Inheritance diagram for mrpt::gui::mrptEventWindowClosed:
Inheritance graph
[legend]

Public Member Functions

 mrptEventWindowClosed (CBaseGUIWindow *obj, bool _allow_close=true)
 

Public Attributes

CBaseGUIWindowsource_object
 
bool allow_close
 

Protected Member Functions

virtual void do_nothing ()
 Just to allow this class to be polymorphic. More...
 

Constructor & Destructor Documentation

mrpt::gui::mrptEventWindowClosed::mrptEventWindowClosed ( CBaseGUIWindow obj,
bool  _allow_close = true 
)
inline

Definition at line 231 of file CBaseGUIWindow.h.

Member Function Documentation

virtual void mrpt::gui::mrptEventWindowClosed::do_nothing ( )
inlineprotectedvirtual

Just to allow this class to be polymorphic.

Definition at line 229 of file CBaseGUIWindow.h.

Member Data Documentation

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