ZFFramework
 
Loading...
Searching...
No Matches
ZFUIEvent.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIEvent_h_
7#define _ZFI_ZFUIEvent_h_
8
9#include "ZFUITypeDef.h"
11
15zfclass ZFLIB_ZFUIKit ZFUIEvent : zfextend ZFObject {
17
19 cache->eventResolved(zffalse);
20 })
21
22public:
26 ZFMETHOD_DECLARE_1(void, eventResolved
27 , ZFMP_IN(zfbool const &, value)
28 )
33
34protected:
38 virtual void eventOnApplyScale(ZF_IN zffloat scale) {
39 }
40
44 }
45
46protected:
49
50private:
51 zfbool _ZFP_ZFUIEvent_eventResolved;
52protected:
54 ZFUIEvent(void) : _ZFP_ZFUIEvent_eventResolved(zffalse) {}
56public:
57 inline void _ZFP_ZFUIEvent_eventOnApplyScale(ZF_IN zffloat scale) {this->eventOnApplyScale(scale);}
58 inline void _ZFP_ZFUIEvent_eventOnApplyScaleReversely(ZF_IN zffloat scale) {this->eventOnApplyScaleReversely(scale);}
59};
60
62#endif // #ifndef _ZFI_ZFUIEvent_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
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_zft_zffloat zffloat
same as float, see zfindex
Definition ZFCoreTypeDef_CoreType.h:183
#define zffalse
bool false type
Definition ZFCoreTypeDef_CoreType.h:111
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_DECLARE_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#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_WITH_CUSTOM_CTOR(ChildClass, SuperClass,...)
declare object which allow custom constructor
Definition ZFObjectDeclare.h:142
#define ZFALLOC_CACHE_RELEASE(action)
mark class that it should apply cache logic when alloc
Definition ZFObjectRetain.h:186
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
necessary header file for all ZFUIKit member
virtual void eventResolved(zfbool const &value)
whether the event has been resolved
virtual void eventOnApplyScaleReversely(zffloat scale)
see eventOnApplyScale
Definition ZFUIEvent.h:43
virtual void objectInfoImplAppend(zfstring &ret)
see objectInfo
virtual void eventOnApplyScale(zffloat scale)
see ZFUIView::UIScaleOnUpdate, usually internal use only
Definition ZFUIEvent.h:38