Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBWidgetSafePointer Class Reference

TBWidgetSafePointer keeps a pointer to a widget that will be set to nullptr if the widget is removed. More...

#include <tb_widgets_listener.h>

Inheritance diagram for tb::TBWidgetSafePointer:
tb::TBWidgetListener

Public Member Functions

 TBWidgetSafePointer (TBWidget *widget)
 
void Set (TBWidget *widget)
 Set the widget pointer that should be nulled if deleted. More...
 
TBWidgetGet () const
 Return the widget, or nullptr if it has been deleted. More...
 

Detailed Description

TBWidgetSafePointer keeps a pointer to a widget that will be set to nullptr if the widget is removed.

Member Function Documentation

TBWidget* tb::TBWidgetSafePointer::Get ( ) const
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.


The documentation for this class was generated from the following files: