Partager via


CAnimationRect Class

Implements the functionality of a rectangle whose sides can be animated.

class CAnimationRect : public CAnimationBaseObject;

Members

Public Constructors

Name

Description

CAnimationRect::CAnimationRect

Overloaded. Constructs an animation rect object.

Public Methods

Name

Description

CAnimationRect::AddTransition

Adds transitions for left, top, right and bottom coordinates.

CAnimationRect::GetBottom

Provides access to CAnimationVariable representing bottom coordinate.

CAnimationRect::GetDefaultValue

Returns the default values for rectangle's bounds.

CAnimationRect::GetLeft

Provides access to CAnimationVariable representing left coordinate.

CAnimationRect::GetRight

Provides access to CAnimationVariable representing right coordinate.

CAnimationRect::GetTop

Provides access to CAnimationVariable representing top coordinate.

CAnimationRect::GetValue

Returns current value.

CAnimationRect::SetDefaultValue

Sets default value.

Protected Methods

Name

Description

CAnimationRect::GetAnimationVariableList

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

Public Operators

Name

Description

CAnimationRect::operator RECT

Converts a CAnimationRect to RECT.

CAnimationRect::operator=

Assigns rect to CAnimationRect.

Public Data Members

Name

Description

CAnimationRect::m_bFixedSize

Specifies whether the rectangle has fixed size.

Protected Data Members

Name

Description

CAnimationRect::m_bottomValue

The encapsulated animation variable that represents Bottom bound of animation rectangle.

CAnimationRect::m_leftValue

The encapsulated animation variable that represents Left bound of animation rectangle.

CAnimationRect::m_rightValue

The encapsulated animation variable that represents Right bound of animation rectangle.

CAnimationRect::m_szInitial

Specifies initial size of animation rectangle.

CAnimationRect::m_topValue

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

CObject

CAnimationBaseObject

CAnimationRect

Requirements

Header: afxanimationcontroller.h

See Also

Other Resources

MFC Classes