Guiliani  Version 2.6 revision 7293 (documentation build 12)
GUIAnimationMoveInOut.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_INOUT__H_
11#define GUIANIMATION_MOVE_INOUT__H_
12
13#include "GUIAnimation.h"
14#include "GUIEasing.h"
15
43{
44public:
45
48 {
49 MOVE_TOP,
50 MOVE_BOTTOM,
51 MOVE_LEFT,
52 MOVE_RIGHT
53 };
54
55#if defined(GUILIANI_STREAM_GUI)
60#endif
61
73 CGUIObject* pAnimatedObject,
76 MoveDirection_t eDirection,
77 eC_Bool bMoveOutOnStart = false,
78 eC_UInt uiDuration = 1000,
79 eC_UInt uiStepTime = 25);
80
81
89 void ApplyAnimation(eC_UInt uiElapsedTime);
90
95 eC_Bool IsMovingOut() { return m_bMoveOut; }
96
101 eC_Value GetOriginalXPos() { return m_vOriginalXPos; }
102
107 eC_Value GetOriginalYPos() { return m_vOriginalYPos; }
108
109#if defined(GUILIANI_STREAM_GUI) || defined(GUILIANI_WRITE_GUI)
114#endif
115
116#ifdef GUILIANI_STREAM_GUI
118#endif
119
120#ifdef GUILIANI_WRITE_GUI
121 void WriteToStream(const eC_Bool bWriteClassID = false);
122#endif
123
124protected:
131
136
137private:
138 void Init();
139
140private:
141 MoveDirection_t m_eDirection;
142 eC_Value m_vOriginalXPos;
143 eC_Value m_vOriginalYPos;
144 CGUIEasing::EasingType_t m_eEasingX;
145 CGUIEasing::EasingType_t m_eEasingY;
146 eC_Value m_vOutOfScreenX;
147 eC_Value m_vOutOfScreenY;
148 eC_Bool m_bMoveOut;
149};
150
151#endif
Base class for modular Guiliani animations.
Definition: GUIAnimation.h:75
AnimationStatus_t
Definition: GUIAnimation.h:83
Animation moving an object into or out of the visible area.
Definition: GUIAnimationMoveInOut.h:43
static const eC_UInt MOVEINOUT_ANIMATION_CLASS_MIN_VERSION
The minimal class version allowed.
Definition: GUIAnimationMoveInOut.h:113
void ApplyAnimation(eC_UInt uiElapsedTime)
eC_Bool IsMovingOut()
Definition: GUIAnimationMoveInOut.h:95
void WriteToStream(const eC_Bool bWriteClassID=false)
static const eC_UInt MOVEINOUT_ANIMATION_CLASS_VERSION
The class version of the implementation.
Definition: GUIAnimationMoveInOut.h:111
eC_Value GetOriginalYPos()
Definition: GUIAnimationMoveInOut.h:107
MoveDirection_t
Definition: GUIAnimationMoveInOut.h:48
CGUIAnimationMoveInOut(CGUIObject *pAnimatedObject, CGUIEasing::EasingType_t eEasingX, CGUIEasing::EasingType_t eEasingY, MoveDirection_t eDirection, eC_Bool bMoveOutOnStart=false, eC_UInt uiDuration=1000, eC_UInt uiStepTime=25)
void OnStatusChanged(AnimationStatus_t eStatus)
eC_Value GetOriginalXPos()
Definition: GUIAnimationMoveInOut.h:101
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