This class defines a generic interface for attribute which are modified by animations. More...
#include <GUIAnimatedAttribute.h>
Public Types | |
enum | AnimatedAttribute_t { ATTR_NONE = -1 , ATTR_FIRST , ATTR_XPOS = ATTR_FIRST , ATTR_YPOS , ATTR_WIDTH , ATTR_HEIGHT , ATTR_ALPHA , ATTR_COUNT } |
Public Member Functions | |
CGUIAnimatedAttribute () | |
CGUIAnimatedAttribute (const AnimatedAttribute_t &eAttributeType, const CGUIEasing::EasingType_t &eEasingType, const eC_Value &vStartValue, const eC_Value &vTargetValue) | |
AnimatedAttribute_t | GetAttributeType () const |
CGUIEasing::EasingType_t | GetEasingType () const |
eC_Value | GetStartValue () const |
eC_Value | GetTargetValue () const |
void | SetEasingType (const CGUIEasing::EasingType_t &eEasingType) |
void | SetStartValue (const eC_Value &vValue) |
void | SetTargetValue (const eC_Value &vValue) |
This class defines a generic interface for attribute which are modified by animations.
CGUIAnimatedAttribute::CGUIAnimatedAttribute | ( | const AnimatedAttribute_t & | eAttributeType, |
const CGUIEasing::EasingType_t & | eEasingType, | ||
const eC_Value & | vStartValue, | ||
const eC_Value & | vTargetValue | ||
) |
Create a new AnimatedAttribute
eAttributeType | type of attribute |
eEasingType | used easing |
vStartValue | starting-value |
vTargetValue | target value |
CGUIAnimatedAttribute::CGUIAnimatedAttribute | ( | ) |
default-constructor
AnimatedAttribute_t CGUIAnimatedAttribute::GetAttributeType | ( | ) | const |
get attribute-type
CGUIEasing::EasingType_t CGUIAnimatedAttribute::GetEasingType | ( | ) | const |
get easing-type
eC_Value CGUIAnimatedAttribute::GetStartValue | ( | ) | const |
get start-value
eC_Value CGUIAnimatedAttribute::GetTargetValue | ( | ) | const |
get target-value
void CGUIAnimatedAttribute::SetEasingType | ( | const CGUIEasing::EasingType_t & | eEasingType | ) |
set the easing-type
eEasingType | new easing-type |
void CGUIAnimatedAttribute::SetStartValue | ( | const eC_Value & | vValue | ) |
set the start-value
vValue | new start-value |
void CGUIAnimatedAttribute::SetTargetValue | ( | const eC_Value & | vValue | ) |
set the target-value
vValue | new target-value |