Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIAnimationMove.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#if !defined GUIANIMATION_MOVE__H_
11#define GUIANIMATION_MOVE__H_
12
13#include "GUIAnimation.h"
14#include "GUIEasing.h"
15
54{
55public:
70 CGUIObject* pAnimatedObject,
73 eC_Value vStartX,
74 eC_Value vStartY,
75 eC_Value vTargetX,
76 eC_Value vTargetY,
77 eC_UInt uiDuration,
78 eC_Bool bUseCurrentPosition = false,
79 eC_UInt uiStepTime = 25);
80
81#if defined(GUILIANI_STREAM_GUI)
86#endif
87
94 void ApplyAnimation(eC_UInt uiElapsedTime);
95
100
106 void SetStartPos(const eC_Value vStartX, const eC_Value vStartY);
107
113 void SetTargetPos(const eC_Value vTargetX, const eC_Value vTargetY);
114
115#if defined(GUILIANI_STREAM_GUI) || defined(GUILIANI_WRITE_GUI)
117 static const eC_UInt MOVE_ANIMATION_CLASS_VERSION;
120#endif
121
122#ifdef GUILIANI_STREAM_GUI
124#endif
125
126#ifdef GUILIANI_WRITE_GUI
127 void WriteToStream(const eC_Bool bWriteClassID = false);
128#endif
129};
130
131#endif
Base class for modular Guiliani animations.
Definition: GUIAnimation.h:75
This animation translates a CGUIObject from a start position to a target position.
Definition: GUIAnimationMove.h:54
void WriteToStream(const eC_Bool bWriteClassID=false)
static const eC_UInt MOVE_ANIMATION_CLASS_VERSION
The class version of the implementation.
Definition: GUIAnimationMove.h:117
void ApplyAnimation(eC_UInt uiElapsedTime)
static const eC_UInt MOVE_ANIMATION_CLASS_MIN_VERSION
The minimal class version allowed.
Definition: GUIAnimationMove.h:119
void SetStartPos(const eC_Value vStartX, const eC_Value vStartY)
CGUIAnimationMove(CGUIObject *pAnimatedObject, CGUIEasing::EasingType_t eEasingX, CGUIEasing::EasingType_t eEasingY, eC_Value vStartX, eC_Value vStartY, eC_Value vTargetX, eC_Value vTargetY, eC_UInt uiDuration, eC_Bool bUseCurrentPosition=false, eC_UInt uiStepTime=25)
void SetTargetPos(const eC_Value vTargetX, const eC_Value vTargetY)
EasingType_t
The differnet easing types.
Definition: GUIEasing.h:50
This is the Guiliani base class all controls are derived from.
Definition: GUIObject.h:81