Hasty Badger
Small UI library (a branch of Turbo Badger)
 All Classes Namespaces Functions Variables Enumerations Enumerator Friends Groups Pages
tb::TBTypedObject Class Reference
Inheritance diagram for tb::TBTypedObject:
tb::TBAnimationObject tb::TBMessageData tb::TBSelectItemSource tb::TBWidget tb::TBWidgetEvent tb::TBAnimatedFloat tb::TBWidgetAnimationObject tb::TBSelectItemSourceList< T > tb::TBSelectItemSourceList< TBGenericStringItem > tb::TBButton tb::TBClickLabel tb::TBContainer tb::TBDimmer tb::TBEditField tb::TBEditFieldScrollRoot tb::TBInlineSelect tb::TBLayout tb::TBMover tb::TBProgressSpinner tb::TBRadioCheckBox tb::TBResizer tb::TBScrollBar tb::TBScrollContainer tb::TBScrollContainerRoot tb::TBSection tb::TBSelectList tb::TBSeparator tb::TBSkinImage tb::TBSliderX< VAL_T > tb::TBTabContainer tb::TBTextField tb::TBToggleContainer tb::TBWindow tb::TBWidgetEventFileDrop tb::TBWidgetEventFinger tb::TBWidgetEventMultiGesture

Public Member Functions

virtual bool IsOfTypeId (const TB_TYPE_ID type_id) const
 Returns true if the class or the base class matches the type id.
 
template<class T >
T * SafeCastTo () const
 Returns this object as the given type or nullptr if it's not that type. More...
 
template<class T >
bool IsOfType () const
 Return true if this object can safely be casted to the given type. More...
 
virtual const char * GetClassName () const
 Get the classname of the object. More...
 

Static Public Member Functions

template<class T >
static TB_TYPE_ID GetTypeId ()
 A static template method that returns a unique id for each type. More...
 

Member Function Documentation

virtual const char* tb::TBTypedObject::GetClassName ( ) const
inlinevirtual

Get the classname of the object.

template<class T >
static TB_TYPE_ID tb::TBTypedObject::GetTypeId ( )
inlinestatic

A static template method that returns a unique id for each type.

template<class T >
bool tb::TBTypedObject::IsOfType ( ) const
inline

Return true if this object can safely be casted to the given type.

template<class T >
T* tb::TBTypedObject::SafeCastTo ( ) const
inline

Returns this object as the given type or nullptr if it's not that type.


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