ZFFramework
 
Loading...
Searching...
No Matches
ZFUIViewBlink.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIViewBlink_h_
7#define _ZFI_ZFUIViewBlink_h_
8
9#include "ZFUIView.h"
10#include "ZFUIImageIO.h"
12
13// ============================================================
18
19
24
25public:
28
29
33
34public:
39 zfstring ret;
40 this->objectInfoT(ret);
41 return ret;
42 }
43
44public:
46 zfbool operator == (ZF_IN const ZFUIViewBlinkParam &ref) const {
47 return (zftrue
48 && this->blinkImage() == ref.blinkImage()
49 && this->blinkDuration() == ref.blinkDuration()
50 && this->blinkCount() == ref.blinkCount()
51 );
52 }
53 zfbool operator != (ZF_IN const ZFUIViewBlinkParam &ref) const {
54 return !this->operator == (ref);
55 }
57};
60ZFOUTPUT_TYPE(ZFUIViewBlinkParam, {v.objectInfoT(s);})
65 , ZFMP_IN(ZFUIView *, view)
66 , ZFMP_IN_OPT(const ZFUIViewBlinkParam &, blinkParam, ZFUIViewBlinkParam())
67 )
72 , ZFMP_IN(ZFUIView *, view)
73 , ZFMP_IN(ZFUIImage *, blinkImage)
74 , ZFMP_IN_OPT(zftimet, blinkDuration, 0)
75 , ZFMP_IN_OPT(zfindex, blinkCount, 1)
76 ) {
78 .blinkImage(blinkImage)
79 .blinkDuration(blinkDuration)
80 .blinkCount(blinkCount)
81 );
82}
83
84// ============================================================
101
103#endif // #ifndef _ZFI_ZFUIViewBlink_h_
104
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#define zfclassLikePOD
shows the class is not a POD type, but you may use it like a POD except memset it to 0
Definition ZFCoreTypeDef_ClassType.h:41
#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_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zftrue
bool true type
Definition ZFCoreTypeDef_CoreType.h:107
_zft_zftimet zftimet
time unit, ensured at least 64 bit, ensured signed
Definition ZFCoreTypeDef_CoreType.h:203
#define ZFOUTPUT_TYPE(T_Type, outputAction)
declare your custom type conversion to string, convenient for debug
Definition ZFCoreTypeDef_OtherType.h:221
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFCORE_PARAM_DECLARE_SELF(T_self)
see ZFCORE_PARAM
Definition ZFCoreUtilMacro.h:495
#define ZFCORE_PARAM(T_ParamType, paramName,...)
a util macro to generate setter and getter for POD like object
Definition ZFCoreUtilMacro.h:523
#define ZFEXPORT_VAR_DECLARE(ZFLIB_, Type, Name)
util to export global variable
Definition ZFExport.h:68
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_INLINE_DECLARE_4(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1, ZFMP_2, ZFMP_3)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:1145
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_END(NameSpace)
end namespace
Definition ZFNamespace.h:60
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
#define ZF_NAMESPACE_BEGIN(NameSpace)
begin namespace
Definition ZFNamespace.h:40
#define ZFEVENT_GLOBAL(ZFLIB_, YourEvent)
declare a observer event in global scope, see ZFEVENT
Definition ZFObjectObserver.h:369
#define ZFTYPEID_ACCESS_ONLY_REG(ZFLIB_, TypeName, Type,...)
see ZFTYPEID_DECLARE
Definition ZFTypeIdDeclare.h:205
#define ZFTYPEID_ACCESS_ONLY_DECLARE(ZFLIB_, TypeName, Type)
see ZFTYPEID_DECLARE
Definition ZFTypeIdDeclare.h:195
common image load logic
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
base class of all UI views
image storage
Definition ZFUIImage.h:30
base class of all UI views
Definition ZFUIView.h:93
type restrict version of zfauto
Definition zfautoFwd.h:110
Definition ZFApp.h:13