30 #ifndef _CEGUIAnimationInstance_h_
31 #define _CEGUIAnimationInstance_h_
33 #include "CEGUIEventArgs.h"
34 #include "CEGUIEvent.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
127 void setEventReceiver(
EventSet* receiver);
141 void setEventSender(
EventSet* sender);
154 void setTargetWindow(
Window* target);
161 void setPosition(
float position);
167 float getPosition()
const;
174 void setSpeed(
float speed);
180 float getSpeed()
const;
186 void setSkipNextStep(
bool skip);
196 bool getSkipNextStep()
const;
213 void setMaxStepDeltaSkip(
float maxDelta);
219 float getMaxStepDeltaSkip()
const;
234 void setMaxStepDeltaClamp(
float maxDelta);
240 float getMaxStepDeltaClamp()
const;
252 void start(
bool skipNextStep =
true);
273 void unpause(
bool skipNextStep =
true);
283 void togglePause(
bool skipNextStep =
true);
290 bool isRunning()
const;
296 void step(
float delta);
332 void savePropertyValue(
const String& propertyName);
337 void purgeSavedPropertyValues(
void);
342 const String& getSavedPropertyValue(
const String& propertyName);
360 void unsubscribeAutoConnections();
367 void onAnimationStarted();
369 void onAnimationStopped();
371 void onAnimationPaused();
373 void onAnimationUnpaused();
376 void onAnimationEnded();
378 void onAnimationLooped();
400 bool d_bounceBackwards;
406 float d_maxStepDeltaSkip;
408 float d_maxStepDeltaClamp;
410 typedef std::map<String, String> PropertyValueMap;
414 PropertyValueMap d_savedPropertyValues;
416 typedef std::vector<Event::Connection> ConnectionTracker;
418 ConnectionTracker d_autoConnections;
423 #if defined(_MSC_VER)
424 # pragma warning(pop)
427 #endif // end of guard _CEGUIAnimationInstance_h_