ZFFramework
 
Loading...
Searching...
No Matches
ZFAniForNative.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFAniForNative_h_
7#define _ZFI_ZFAniForNative_h_
8
9#include "ZFUIView.h"
11
16 ZFENUM_VALUE(Linear)
17 ZFENUM_VALUE(EaseIn)
18 ZFENUM_VALUE(EaseOut)
19 ZFENUM_VALUE(EaseInOut)
24 ZFENUM_VALUE_REGISTER(EaseInOut)
27
28// ============================================================
29zfclassFwd _ZFP_ZFAniForNativePrivate;
37zfclass ZFLIB_ZFUIKit ZFAniForNative : zfextend ZFAnimation {
38 ZFOBJECT_DECLARE(ZFAniForNative, ZFAnimation)
39
40protected:
42 virtual void objectOnInit(void);
44 virtual void objectOnDealloc(void);
45
46protected:
49public:
51 virtual ZFCompareResult objectCompareValueImpl(ZF_IN ZFObject *anotherObj);
52
53 // ============================================================
54public:
59
60 // ============================================================
61 // property
62public:
67
68
72
81
106
131
156
157 // ============================================================
158 // start stop
159protected:
163 virtual void aniOnStart(void);
165 virtual void aniOnStop(ZF_IN ZFResultType resultType);
166
167protected:
169 virtual void aniImplStart(void);
171 virtual void aniImplStop(void);
172public:
173 zffinal void _ZFP_ZFAniForNative_notifyStop(void) {
174 this->aniImplNotifyStop();
175 }
176
177private:
178 _ZFP_ZFAniForNativePrivate *d;
179};
180
182#endif // #ifndef _ZFI_ZFAniForNative_h_
183
v_ZFAniForNativeCurve::ZFEnumType ZFAniForNativeCurve
see v_ZFAniForNativeCurve
Definition ZFAniForNative.h:25
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#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 ZF_IN_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
#define zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
ZFCompareResult
compare result of two ZFObjects
Definition ZFCoreTypeDef_OtherType.h:28
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFENUM_SEPARATOR()
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:158
#define ZFENUM_VALUE_REGISTER(Value)
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:168
#define ZFENUM_REG(ZFLIB_, EnumName,...)
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:186
#define ZFENUM_VALUE(Value)
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:151
#define ZFENUM_BEGIN(ZFLIB_, EnumName)
macros to define reflectable enum type
Definition ZFEnumDeclare.h:147
#define ZFENUM_END(ZFLIB_, EnumName)
see ZFENUM_BEGIN
Definition ZFEnumDeclare.h:172
#define ZFMETHOD_DECLARE_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#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 ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
v_ZFResultType::ZFEnumType ZFResultType
see v_ZFResultType
Definition ZFResultType.h:23
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
base class of all UI views
virtual void aniOnStart(void)
see E_AniOnStart
virtual zffloat & rotateZFrom()
rotate z from, 0 by default
Definition ZFAniForNative.h:151
virtual zffloat & translateZTo()
translate y to, 0 by default
Definition ZFAniForNative.h:130
virtual zffloat & scaleXTo()
scale x to, 1 by default
Definition ZFAniForNative.h:89
virtual zffloat & scaleXFrom()
scale x from, 1 by default
Definition ZFAniForNative.h:85
virtual zffloat & rotateXFrom()
rotate x from, 0 by default
Definition ZFAniForNative.h:135
virtual void objectInfoImplAppend(zfstring &ret)
see objectInfo
virtual void aniImplStart(void)
for subclass to achieve actual animation
virtual zffloat & rotateYTo()
rotate y to, 0 by default
Definition ZFAniForNative.h:147
virtual void objectOnDealloc(void)
override this to destroy your object
virtual zffloat & scaleYFrom()
scale y from, 1 by default
Definition ZFAniForNative.h:93
virtual void * nativeAnimation()
native animation
virtual zffloat & scaleYTo()
scale y to, 1 by default
Definition ZFAniForNative.h:97
virtual ZFCompareResult objectCompareValueImpl(ZFObject *anotherObj)
see objectCompareValue
virtual ZFAniForNativeCurve & nativeCurve()
animation's curve, v_ZFAniForNativeCurve::e_Linear by default
Definition ZFAniForNative.h:71
virtual zfbool & targetAutoDisable()
whether automatically disable ZFAnimation::target while animating, true by default
Definition ZFAniForNative.h:66
virtual zffloat & translateZFrom()
translate y from, 0 by default
Definition ZFAniForNative.h:126
virtual zffloat & rotateYFrom()
rotate y from, 0 by default
Definition ZFAniForNative.h:143
virtual void objectOnInit(void)
override this to init your object
virtual zfbool aniImplCheckValid(void)
called to check whether the animation is currently valid, an invalid animation is ensured can't be st...
virtual zffloat & rotateZTo()
rotate z to, 0 by default
Definition ZFAniForNative.h:155
virtual void aniOnStop(ZFResultType resultType)
see E_AniOnStop
virtual zffloat & rotateXTo()
rotate x to, 0 by default
Definition ZFAniForNative.h:139
virtual zffloat & translateYTo()
translate y to, 0 by default
Definition ZFAniForNative.h:122
virtual zffloat & translateXFrom()
translate x from, 0 by default
Definition ZFAniForNative.h:110
virtual zffloat & alphaFrom()
alpha from, 1 by default
Definition ZFAniForNative.h:76
virtual zffloat & alphaTo()
alpha to, 1 by default
Definition ZFAniForNative.h:80
virtual zffloat & scaleZTo()
scale y to, 1 by default
Definition ZFAniForNative.h:105
virtual zffloat & translateYFrom()
translate y from, 0 by default
Definition ZFAniForNative.h:118
virtual void aniImplStop(void)
for subclass to stop actual animation
virtual zffloat & translateXTo()
translate x to, 0 by default
Definition ZFAniForNative.h:114
virtual zffloat & scaleZFrom()
scale y from, 1 by default
Definition ZFAniForNative.h:101
void aniImplNotifyStop(ZFResultType resultType=v_ZFResultType::e_Success)
subclass must notify after the animation stop
native animation's curve
Definition ZFAniForNative.h:15