CAnimationSize Class
Implements the functionality of a size object whose dimensions can be animated.
class CAnimationSize : public CAnimationBaseObject;
Members
Public Constructors
Name |
Description |
---|---|
Overloaded. Constructs an animation size object. |
Public Methods
Name |
Description |
---|---|
Adds transitions for Width and Height. |
|
Provides access to CAnimationVariable representing Width. |
|
Provides access to CAnimationVariable representing Height. |
|
Returns the default values for Width and Height. |
|
Returns current value. |
|
Sets default value. |
Protected Methods
Name |
Description |
---|---|
Puts the encapsulated animation variables into a list. (Overrides CAnimationBaseObject::GetAnimationVariableList.) |
Public Operators
Name |
Description |
---|---|
Converts a CAnimationSize to a CSize. |
|
Assigns szSrc to CAnimationSize. |
Protected Data Members
Name |
Description |
---|---|
The encapsulated animation variable that represents width of animation size. |
|
The encapsulated animation variable that represents height of animation size. |
Remarks
The CAnimationSize class encapsulates two CAnimationVariable objects and can represent in applications a size. For example, you can use this class to animate a size of any two dimensional object on the screen (like rectangle, control etc). To use this class in application, just instantiate an object of this class, add it to animation controller using CAnimationController::AddAnimationObject and call AddTransition for each transition to be applied to Width and/or Height.
Inheritance Hierarchy
Requirements
Header: afxanimationcontroller.h