ZFFramework
 
Loading...
Searching...
No Matches
ZFAniForTimer.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFAniForTimer_h_
7#define _ZFI_ZFAniForTimer_h_
8
9#include "ZFAnimation.h"
11
12// ============================================================
13zfclassFwd _ZFP_ZFAniForTimerPrivate;
28zfclass ZFLIB_ZFUtility ZFAniForTimer : zfextend ZFAnimation {
29 ZFOBJECT_DECLARE(ZFAniForTimer, ZFAnimation)
30
31public:
32 // ============================================================
33 // event
39 ZFEVENT(AniTimerOnUpdate)
40
41 // ============================================================
42 // object
43protected:
45 virtual void objectOnInit(void);
47 virtual void objectOnDealloc(void);
48
49 // ============================================================
50 // property
51public:
66
67 // ============================================================
68 // start stop
69protected:
71 virtual void aniImplStart(void);
73 virtual void aniImplStop(void);
74
75protected:
83 virtual void aniTimerOnUpdate(ZF_IN zffloat progress);
84
85private:
86 _ZFP_ZFAniForTimerPrivate *d;
87 friend zfclassFwd _ZFP_ZFAniForTimerPrivate;
88};
89
91#endif // #ifndef _ZFI_ZFAniForTimer_h_
92
base class of all animation
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfoverride
dummy macro shows that method override parent's method
Definition ZFCoreTypeDef_ClassType.h:58
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_zft_zftimet zftimet
time unit, ensured at least 64 bit, ensured signed
Definition ZFCoreTypeDef_CoreType.h:203
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define zfclass
same as class, shows that this class is a ZFObject type
Definition ZFObjectClassTypeFwd.h:38
#define ZFOBJECT_DECLARE(ChildClass, SuperClass,...)
necessary for every class inherit from ZFObject
Definition ZFObjectDeclare.h:126
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:328
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
#define ZFLIB_ZFUtility
used to export symbols
Definition ZFUtilityDef.h:15
virtual void objectOnInit(void)
override this to init your object
virtual void objectOnDealloc(void)
override this to destroy your object
virtual void aniImplStart(void)
for subclass to achieve actual animation
virtual zftimet & aniInterval()
interval to update timer, in miliseconds, 0 by default
Definition ZFAniForTimer.h:65
virtual void aniTimerOnUpdate(zffloat progress)
called to do the actual update
virtual void aniImplStop(void)
for subclass to stop actual animation