CAnimationRect Class
Implements the functionality of a rectangle whose sides can be animated.
class CAnimationRect : public CAnimationBaseObject;
Members
Public Constructors
Name |
Description |
---|---|
Overloaded. Constructs an animation rect object. |
Public Methods
Name |
Description |
---|---|
Adds transitions for left, top, right and bottom coordinates. |
|
Provides access to CAnimationVariable representing bottom coordinate. |
|
Returns the default values for rectangle's bounds. |
|
Provides access to CAnimationVariable representing left coordinate. |
|
Provides access to CAnimationVariable representing right coordinate. |
|
Provides access to CAnimationVariable representing top coordinate. |
|
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 CAnimationRect to RECT. |
|
Assigns rect to CAnimationRect. |
Public Data Members
Name |
Description |
---|---|
Specifies whether the rectangle has fixed size. |
Protected Data Members
Name |
Description |
---|---|
The encapsulated animation variable that represents Bottom bound of animation rectangle. |
|
The encapsulated animation variable that represents Left bound of animation rectangle. |
|
The encapsulated animation variable that represents Right bound of animation rectangle. |
|
Specifies initial size of animation rectangle. |
|
The encapsulated animation variable that represents Top bound of animation rectangle. |
Remarks
The CAnimationRect class encapsulates four CAnimationVariable objects and can represent in applications a rectangle. 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 left, right top and bottom coordinates.
Inheritance Hierarchy
Requirements
Header: afxanimationcontroller.h