ZFFramework
 
Loading...
Searching...
No Matches
ZFUIListViewCellUpdater.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIListViewCellUpdater_h_
7#define _ZFI_ZFUIListViewCellUpdater_h_
8
9#include "ZFUICellUpdater.h"
11
12// ============================================================
16zfclass ZFLIB_ZFUIWidget ZFUIListViewCellUpdater : zfextend ZFStyle, zfimplement ZFUICellUpdater {
17 ZFOBJECT_DECLARE(ZFUIListViewCellUpdater, ZFStyle)
18 ZFIMPLEMENT_DECLARE(ZFUICellUpdater)
19
20public:
25
26
29 ZFPROPERTY_ASSIGN(ZFUIColor, separatorColor, ZFUIGlobalStyle::DefaultStyle()->colorSeparator())
30
38
47
48public:
50 virtual void cellOnUpdate(ZF_IN const ZFUICellUpdaterParam &updateParam);
52 virtual void cellOnRecycle(ZF_IN ZFUICell *cell);
53};
54
56#endif // #ifndef _ZFI_ZFUIListViewCellUpdater_h_
57
#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
_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 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 ZFIMPLEMENT_DECLARE(ImplementedInterfaces,...)
see ZFINTERFACE_DECLARE
Definition ZFObjectInterface.h:169
#define zfimplement
shows class implement from interface, see ZFInterface
Definition ZFObjectInterface.h:24
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
utility to update ZFUICell
_zft_ZFUIColor ZFUIColor
color with AARRGGBB format
Definition ZFUITypeDef.h:1184
#define ZFLIB_ZFUIWidget
used to export symbols
Definition ZFUIWidgetDef.h:17
utility class to hold cell
Definition ZFUICell.h:21
update param used by ZFUICellUpdater::cellOnUpdate
Definition ZFUICellUpdater.h:16
global style for ui elements
Definition ZFUIGlobalStyle.h:15
virtual ZFUIColor & separatorColor()
separator color, ZFUIGlobalStyle::colorSeparator by default
Definition ZFUIListViewCellUpdater.h:29
virtual zfbool & separatorIncludingHead()
whether add separator before first list cell, false by default
Definition ZFUIListViewCellUpdater.h:42
virtual zfbool & separatorIncludingTail()
whether add separator after last list cell, false by default
Definition ZFUIListViewCellUpdater.h:46
virtual void cellOnRecycle(ZFUICell *cell)
called to recycle cell
virtual void cellOnUpdate(const ZFUICellUpdaterParam &updateParam)
called to update cell style
virtual zffloat & separatorSize()
separator size, 1 by default
Definition ZFUIListViewCellUpdater.h:24
virtual ZFUIMargin & separatorMargin()
separator margin, ZFUIMarginZero by default
Definition ZFUIListViewCellUpdater.h:37
margin
Definition ZFUITypeDef.h:147