次の方法で共有


CAnimationSize Class

Implements the functionality of a size object whose dimensions can be animated.

class CAnimationSize : public CAnimationBaseObject;

Members

Public Constructors

Name

Description

CAnimationSize::CAnimationSize

Overloaded. Constructs an animation size object.

Public Methods

Name

Description

CAnimationSize::AddTransition

Adds transitions for Width and Height.

CAnimationSize::GetCX

Provides access to CAnimationVariable representing Width.

CAnimationSize::GetCY

Provides access to CAnimationVariable representing Height.

CAnimationSize::GetDefaultValue

Returns the default values for Width and Height.

CAnimationSize::GetValue

Returns current value.

CAnimationSize::SetDefaultValue

Sets default value.

Protected Methods

Name

Description

CAnimationSize::GetAnimationVariableList

Puts the encapsulated animation variables into a list. (Overrides CAnimationBaseObject::GetAnimationVariableList.)

Public Operators

Name

Description

CAnimationSize::operator CSize

Converts a CAnimationSize to a CSize.

CAnimationSize::operator=

Assigns szSrc to CAnimationSize.

Protected Data Members

Name

Description

CAnimationSize::m_cxValue

The encapsulated animation variable that represents width of animation size.

CAnimationSize::m_cyValue

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

CObject

CAnimationBaseObject

CAnimationSize

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes