CAnimationColor Class
Implements the functionality of a color whose red, green, and blue components can be animated.
class CAnimationColor : public CAnimationBaseObject;
Members
Public Constructors
Name |
Description |
---|---|
Overloaded. Constructs an animation color object. |
Public Methods
Name |
Description |
---|---|
Adds transitions for Red, Green and Blue components. |
|
Provides access to CAnimationVariable representing Blue component. |
|
Returns the default values for color components. |
|
Provides access to CAnimationVariable representing Green component. |
|
Provides access to CAnimationVariable representing Red component. |
|
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 |
---|---|
Assigns color to CAnimationColor. |
Protected Data Members
Name |
Description |
---|---|
The encapsulated animation variable that represents Blue component of animation color. |
|
The encapsulated animation variable that represents Green component of animation color. |
|
The encapsulated animation variable that represents Red component of animation color. |
Remarks
The CAnimationColor class encapsulates three CAnimationVariable objects and can represent in applications a color. For example, you can use this class to animate colors of any object on the screen (like text color, background color 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 Red, Green and Blue components.
Inheritance Hierarchy
Requirements
Header: afxanimationcontroller.h