Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIAnimatedAttribute.h
1/*
2* Copyright (C) TES Electronic Solutions GmbH,
3* All Rights Reserved.
4* Contact: info@guiliani.de
5*
6* This file is part of the Guiliani HMI framework
7* for the development of graphical user interfaces on embedded systems.
8*/
9
10#ifndef GUI_ANIMATED_ATTRIBUTE__H_
11#define GUI_ANIMATED_ATTRIBUTE__H_
12
13#include "eC_Math.h"
14#include "GUIEasing.h"
15
20{
21public:
25 {
26 ATTR_NONE = -1,
34 };
35
36public:
44 const AnimatedAttribute_t& eAttributeType,
45 const CGUIEasing::EasingType_t& eEasingType,
46 const eC_Value& vStartValue,
47 const eC_Value& vTargetValue);
48
52
57
61 void SetEasingType(const CGUIEasing::EasingType_t& eEasingType);
62
67
71 void SetStartValue(const eC_Value& vValue);
72
76 eC_Value GetStartValue() const;
77
81 void SetTargetValue(const eC_Value& vValue);
82
86 eC_Value GetTargetValue() const;
87
88private:
90 CGUIEasing::EasingType_t m_eEasingType;
91 eC_Value m_vStartValue;
92 eC_Value m_vTargetValue;
93};
94
95#endif
This class defines a generic interface for attribute which are modified by animations.
Definition: GUIAnimatedAttribute.h:20
void SetEasingType(const CGUIEasing::EasingType_t &eEasingType)
AnimatedAttribute_t
Definition: GUIAnimatedAttribute.h:25
@ ATTR_COUNT
number of enums
Definition: GUIAnimatedAttribute.h:33
@ ATTR_FIRST
first in list
Definition: GUIAnimatedAttribute.h:27
@ ATTR_YPOS
y-position
Definition: GUIAnimatedAttribute.h:29
@ ATTR_WIDTH
width
Definition: GUIAnimatedAttribute.h:30
@ ATTR_HEIGHT
height
Definition: GUIAnimatedAttribute.h:31
@ ATTR_XPOS
x-position
Definition: GUIAnimatedAttribute.h:28
@ ATTR_NONE
none
Definition: GUIAnimatedAttribute.h:26
@ ATTR_ALPHA
alpha-value
Definition: GUIAnimatedAttribute.h:32
eC_Value GetStartValue() const
CGUIAnimatedAttribute(const AnimatedAttribute_t &eAttributeType, const CGUIEasing::EasingType_t &eEasingType, const eC_Value &vStartValue, const eC_Value &vTargetValue)
CGUIEasing::EasingType_t GetEasingType() const
void SetStartValue(const eC_Value &vValue)
void SetTargetValue(const eC_Value &vValue)
AnimatedAttribute_t GetAttributeType() const
eC_Value GetTargetValue() const
EasingType_t
The differnet easing types.
Definition: GUIEasing.h:50