Hasty Badger
Small UI library (a branch of Turbo Badger)
|
TBWidgetSafePointer keeps a pointer to a widget that will be set to nullptr if the widget is removed. More...
#include <tb_widgets_listener.h>
Public Member Functions | |
TBWidgetSafePointer (TBWidget *widget) | |
void | Set (TBWidget *widget) |
Set the widget pointer that should be nulled if deleted. More... | |
TBWidget * | Get () const |
Return the widget, or nullptr if it has been deleted. More... | |
TBWidgetSafePointer keeps a pointer to a widget that will be set to nullptr if the widget is removed.
|
inline |
Return the widget, or nullptr if it has been deleted.
void tb::TBWidgetSafePointer::Set | ( | TBWidget * | widget | ) |
Set the widget pointer that should be nulled if deleted.