29 #ifndef _CEGUIAnimationInstance_h_
30 #define _CEGUIAnimationInstance_h_
32 #include "CEGUI/EventArgs.h"
33 #include "CEGUI/Event.h"
38 # pragma warning(push)
39 # 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;
300 void setAutoSteppingEnabled(
bool enabled);
306 bool isAutoSteppingEnabled()
const;
315 void step(
float delta);
351 void savePropertyValue(
const String& propertyName);
356 void purgeSavedPropertyValues(
void);
361 const String& getSavedPropertyValue(
const String& propertyName);
379 void unsubscribeAutoConnections();
393 void onAnimationStarted();
395 void onAnimationStopped();
397 void onAnimationPaused();
399 void onAnimationUnpaused();
402 void onAnimationEnded();
404 void onAnimationLooped();
426 bool d_bounceBackwards;
432 float d_maxStepDeltaSkip;
434 float d_maxStepDeltaClamp;
436 bool d_autoSteppingEnabled;
438 typedef std::map<String, String, std::less<String>
443 PropertyValueMap d_savedPropertyValues;
448 ConnectionTracker d_autoConnections;
453 #if defined(_MSC_VER)
454 # pragma warning(pop)
457 #endif // end of guard _CEGUIAnimationInstance_h_
static const String EventNamespace
Definition: AnimationInstance.h:79
Definition: MemoryAllocatedObject.h:109
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
static const String EventAnimationUnpaused
fired when animation instance unpauses
Definition: AnimationInstance.h:88
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
EventArgs based class that holds information about which animation instnace fired given event...
Definition: AnimationInstance.h:51
Defines an 'animation' class.
Definition: Animation.h:64
Interface providing introspection capabilities.
Definition: PropertySet.h:107
static const String EventAnimationEnded
fired when animation instance ends
Definition: AnimationInstance.h:90
static const String EventAnimationStopped
fired when animation instance stops
Definition: AnimationInstance.h:84
static const String EventAnimationLooped
fired when animation instance loops
Definition: AnimationInstance.h:92
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
Interface providing event signaling and handling.
Definition: EventSet.h:166
static const String EventAnimationStarted
fired when animation instance starts
Definition: AnimationInstance.h:82
static const String EventAnimationPaused
fired when animation instance pauses
Definition: AnimationInstance.h:86
AnimationInstance * instance
pointer to a AnimationInstance object of relevance to the event.
Definition: AnimationInstance.h:56
Defines an 'animation instance' class.
Definition: AnimationInstance.h:73
String class used within the GUI system.
Definition: String.h:62