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

TBAnimationManager - System class that manages all animated object. More...

#include <tb_animation.h>

Static Public Member Functions

static void Update ()
 Update all running animations. More...
 
static bool HasAnimationsRunning ()
 Return true if there are running animations. More...
 
static void StartAnimation (TBAnimationObject *obj, ANIMATION_CURVE animation_curve=ANIMATION_DEFAULT_CURVE, double animation_duration=ANIMATION_DEFAULT_DURATION, ANIMATION_TIME animation_time=ANIMATION_TIME_FIRST_UPDATE)
 
static void AbortAnimation (TBAnimationObject *obj, bool delete_animation)
 Abort the animation. More...
 
static void AbortAllAnimations ()
 Abort and delete all animations. More...
 
static bool IsAnimationsBlocked ()
 Return true if new animations are blocked. More...
 
static void BeginBlockAnimations ()
 Begin a period of blocking new animations. More...
 
static void EndBlockAnimations ()
 End a period of blocking new animations that was started with BeginBlockAnimations. More...
 

Detailed Description

TBAnimationManager - System class that manages all animated object.

Member Function Documentation

void tb::TBAnimationManager::AbortAllAnimations ( )
static

Abort and delete all animations.

void tb::TBAnimationManager::AbortAnimation ( TBAnimationObject obj,
bool  delete_animation 
)
static

Abort the animation.

If delete_animation is true, the animation will be deleted in this call after running callbacks and listeners callbacks. In rare situations, you might want to keep the animation around and delete it later (or start it again).

void tb::TBAnimationManager::BeginBlockAnimations ( )
static

Begin a period of blocking new animations.

End the period with EndBlockAnimations. If StartAnimation is called during the blocked period, the animation object will finish the next animation update as it completed normally.

void tb::TBAnimationManager::EndBlockAnimations ( )
static

End a period of blocking new animations that was started with BeginBlockAnimations.

bool tb::TBAnimationManager::HasAnimationsRunning ( )
static

Return true if there are running animations.

bool tb::TBAnimationManager::IsAnimationsBlocked ( )
static

Return true if new animations are blocked.

void tb::TBAnimationManager::Update ( )
static

Update all running animations.


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