tbx
0.7.6
|
Templated object has been hidden listener to delete a C++ object and the toolbox object that generated the event when a toolbox object gets hidden. More...
#include <deleteonhidden.h>
Public Member Functions | |
DeleteClassAndObjectOnHidden (T *class_to_delete) | |
Constructor parsing object to delete when the toolbox object is hidden. More... | |
virtual void | has_been_hidden (const EventInfo &hidden_event) |
Delete the given C++ class, the toolbox object and this C++ object on event received. More... | |
![]() | |
virtual | ~Listener () |
Destroy the listener object. | |
Additional Inherited Members | |
![]() | |
Listener () | |
Construct the Listener object. | |
Templated object has been hidden listener to delete a C++ object and the toolbox object that generated the event when a toolbox object gets hidden.
This class deletes itself once used so should always be allocated with new.
|
inline |
Constructor parsing object to delete when the toolbox object is hidden.
class_to_delete | C++ object to delete. |
|
inlinevirtual |
Delete the given C++ class, the toolbox object and this C++ object on event received.
hidden_event | details of the has been hidden event |
Implements tbx::HasBeenHiddenListener.