30 #ifndef _CEGUIAnimationInstance_h_
31 #define _CEGUIAnimationInstance_h_
33 #include "CEGUI/EventArgs.h"
34 #include "CEGUI/Event.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
128 void setEventReceiver(
EventSet* receiver);
142 void setEventSender(
EventSet* sender);
155 void setTargetWindow(
Window* target);
162 void setPosition(
float position);
168 float getPosition()
const;
175 void setSpeed(
float speed);
181 float getSpeed()
const;
187 void setSkipNextStep(
bool skip);
197 bool getSkipNextStep()
const;
214 void setMaxStepDeltaSkip(
float maxDelta);
220 float getMaxStepDeltaSkip()
const;
235 void setMaxStepDeltaClamp(
float maxDelta);
241 float getMaxStepDeltaClamp()
const;
253 void start(
bool skipNextStep =
true);
274 void unpause(
bool skipNextStep =
true);
284 void togglePause(
bool skipNextStep =
true);
291 bool isRunning()
const;
301 void setAutoSteppingEnabled(
bool enabled);
307 bool isAutoSteppingEnabled()
const;
316 void step(
float delta);
352 void savePropertyValue(
const String& propertyName);
357 void purgeSavedPropertyValues(
void);
362 const String& getSavedPropertyValue(
const String& propertyName);
380 void unsubscribeAutoConnections();
394 void onAnimationStarted();
396 void onAnimationStopped();
398 void onAnimationPaused();
400 void onAnimationUnpaused();
403 void onAnimationEnded();
405 void onAnimationLooped();
427 bool d_bounceBackwards;
433 float d_maxStepDeltaSkip;
435 float d_maxStepDeltaClamp;
437 bool d_autoSteppingEnabled;
439 typedef std::map<String, String, std::less<String>
444 PropertyValueMap d_savedPropertyValues;
449 ConnectionTracker d_autoConnections;
454 #if defined(_MSC_VER)
455 # pragma warning(pop)
458 #endif // end of guard _CEGUIAnimationInstance_h_