Hasty Badger
Small UI library (a branch of Turbo Badger)
|
Base class for widget animations. More...
#include <tb_widget_animation.h>
Public Member Functions | |
TBOBJECT_SUBCLASS (TBWidgetAnimationObject, TBAnimationObject) | |
TBWidgetAnimationObject (TBWidget *widget) | |
Public Member Functions inherited from tb::TBAnimationObject | |
TBOBJECT_SUBCLASS (TBAnimationObject, TBTypedObject) | |
bool | IsAnimating () const |
Return true if the object is currently animating. More... | |
virtual void | OnAnimationStart ()=0 |
Called on animation start. | |
virtual void | OnAnimationUpdate (float progress)=0 |
Called on animation update. More... | |
virtual void | OnAnimationStop (bool aborted)=0 |
Called on animation stop. More... | |
void | AddListener (TBAnimationListener *listener) |
Add a listener to this animation object. More... | |
void | RemoveListener (TBAnimationListener *listener) |
Remove a listener from this animation object. More... | |
Public Member Functions inherited from tb::TBTypedObject | |
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... | |
Public Member Functions inherited from tb::TBLinkOf< TBAnimationObject > | |
TBAnimationObject * | GetPrev () const |
TBAnimationObject * | GetNext () const |
Public Member Functions inherited from tb::TBLink | |
bool | IsInList () const |
Return true if the link is currently added to a list. More... | |
Public Member Functions inherited from tb::TBLinkOf< TBWidgetAnimationObject > | |
TBWidgetAnimationObject * | GetPrev () const |
TBWidgetAnimationObject * | GetNext () const |
Public Attributes | |
TBWidget * | m_widget |
Public Attributes inherited from tb::TBAnimationObject | |
ANIMATION_CURVE | animation_curve |
double | animation_start_time |
double | animation_duration |
bool | adjust_start_time |
Public Attributes inherited from tb::TBLink | |
TBLink * | prev |
TBLink * | next |
TBLinkList * | linklist |
Additional Inherited Members | |
Static Public Member Functions inherited from tb::TBTypedObject | |
template<class T > | |
static TB_TYPE_ID | GetTypeId () |
A static template method that returns a unique id for each type. More... | |
Base class for widget animations.
This animation object will be deleted automatically if the widget is deleted.