Crazy Eddies GUI System
0.7.2
|
Defines an 'animation' class. More...
Public Types | |
enum | ReplayMode { RM_Once, RM_Loop, RM_Bounce } |
enumerates possible replay modes More... | |
Public Member Functions | |
Animation (const String &name) | |
~Animation (void) | |
destructor, this destroys all affectors defined inside this animation | |
const String & | getName () const |
Retrieves name of this Animation definition. | |
void | setReplayMode (ReplayMode mode) |
Sets the replay mode of this animation. | |
ReplayMode | getReplayMode () const |
Retrieves the replay mode of this animation. | |
void | setDuration (float duration) |
Sets the duration of this animation. | |
float | getDuration () const |
Retrieves the duration of this animation. | |
void | setAutoStart (bool autoStart) |
Sets whether this animation auto starts or not. More... | |
bool | getAutoStart () const |
Retrieves auto start. More... | |
Affector * | createAffector (void) |
Creates a new Affector. More... | |
Affector * | createAffector (const String &targetProperty, const String &interpolator) |
Creates a new Affector. More... | |
void | destroyAffector (Affector *affector) |
Destroys given Affector. | |
Affector * | getAffectorAtIdx (size_t index) const |
Retrieves the Affector at given index. | |
size_t | getNumAffectors (void) const |
Retrieves number of Affectors defined in this Animation. | |
void | defineAutoSubscription (const String &eventName, const String &action) |
This defined a new auto subscription. More... | |
void | undefineAutoSubscription (const String &eventName, const String &action) |
This undefines previously defined auto subscription. More... | |
void | undefineAllAutoSubscriptions () |
This undefines all previously defined auto subscriptions. More... | |
void | autoSubscribe (AnimationInstance *instance) |
Subscribes all auto subscriptions with information from given animation instance. More... | |
void | autoUnsubscribe (AnimationInstance *instance) |
Unsubscribes all auto subscriptions with information from given animation instance. More... | |
void | savePropertyValues (AnimationInstance *instance) |
Internal method, causes all properties that are used by this animation and it's affectors to be saved. More... | |
void | apply (AnimationInstance *instance) |
Applies this Animation definition using information from given AnimationInstance. More... | |
Defines an 'animation' class.
This is definition of Animation. Can be reused multiple times via AnimationInstance class. You can't step this class directly, you have to instantiate it via AnimationManager::instantiateAnimation. AnimationInstance provides means for stepping the animation and applying it to PropertySets.
CEGUI::Animation::Animation | ( | const String & | name | ) |
internal constructor, please only construct animations via AnimationManager::createAnimation method
void CEGUI::Animation::apply | ( | AnimationInstance * | instance | ) |
Applies this Animation definition using information from given AnimationInstance.
void CEGUI::Animation::autoSubscribe | ( | AnimationInstance * | instance | ) |
Subscribes all auto subscriptions with information from given animation instance.
void CEGUI::Animation::autoUnsubscribe | ( | AnimationInstance * | instance | ) |
Unsubscribes all auto subscriptions with information from given animation instance.
Affector* CEGUI::Animation::createAffector | ( | const String & | targetProperty, |
const String & | interpolator | ||
) |
Creates a new Affector.
This defined a new auto subscription.
eventName | the name of the event we want to subscribe to, CEGUI::Window::EventClicked for example |
action | is the action that will be invoked on the animation instance if this event is fired |
Usable action strings:
eventName is the name of the event we want to subscribe to
bool CEGUI::Animation::getAutoStart | ( | ) | const |
Retrieves auto start.
void CEGUI::Animation::savePropertyValues | ( | AnimationInstance * | instance | ) |
Internal method, causes all properties that are used by this animation and it's affectors to be saved.
void CEGUI::Animation::setAutoStart | ( | bool | autoStart | ) |
Sets whether this animation auto starts or not.
void CEGUI::Animation::undefineAllAutoSubscriptions | ( | ) |
This undefines all previously defined auto subscriptions.
This undefines previously defined auto subscription.