ZFFramework
 
Loading...
Searching...
No Matches
ZFUICellView.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUICellView_h_
7#define _ZFI_ZFUICellView_h_
8
9#include "ZFUIWidgetDef.h"
11
12// ============================================================
13// ZFUICellView
17zfabstract ZFLIB_ZFUIWidget ZFUICellView : zfextend ZFUIView {
18 ZFOBJECT_DECLARE_ABSTRACT(ZFUICellView, ZFUIView)
19
20public:
33
34protected:
36 virtual void objectOnInitFinish(void);
37
38protected:
40 virtual void layoutOnMeasure(
41 ZF_OUT ZFUISize &ret
42 , ZF_IN const ZFUISize &sizeHint
43 , ZF_IN const ZFUISizeParam &sizeParam
44 );
46 virtual void internalViewOnLayout(ZF_IN const ZFUIRect &bounds);
48 virtual zfbool internalViewShouldLayout(ZF_IN ZFUIView *internalView);
49};
50
52#endif // #ifndef _ZFI_ZFUICellView_h_
53
#define zfextend
dummy macro shows class inherit from another
Definition ZFCoreTypeDef_ClassType.h:53
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#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_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#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 zfabstract
typename for class showing that its abstract
Definition ZFObjectClassTypeFwd.h:42
#define ZFOBJECT_DECLARE_ABSTRACT(ChildClass, SuperClass,...)
necessary for every abstract class inherit from ZFObject
Definition ZFObjectDeclare.h:152
global header for ZFUIWidget module
#define ZFLIB_ZFUIWidget
used to export symbols
Definition ZFUIWidgetDef.h:17
virtual zfbool internalViewShouldLayout(ZFUIView *internalView)
called to check whether the internal view should be layouted using default layout logic,...
virtual zfanyT< ZFUIView > cellAccessoryContainer(void)=0
container for accessory, you may add your own custom view
virtual void layoutOnMeasure(ZFUISize &ret, const ZFUISize &sizeHint, const ZFUISizeParam &sizeParam)
called by layoutMeasure to decide the view's size
virtual zfanyT< ZFUIView > cellCenterContainer(void)=0
container for center item, you may add your own custom view
virtual void internalViewOnLayout(const ZFUIRect &bounds)
see internalBgViewAdd
virtual void objectOnInitFinish(void)
called after objectOnInit, safe to call virtual functions here
virtual zfanyT< ZFUIView > cellIconContainer(void)=0
container for icon, you may add your own custom view
2D rectangle
Definition ZFUITypeDef.h:636
2D size
Definition ZFUITypeDef.h:397
2D size
Definition ZFUIViewType.h:41
see zfany
Definition zfany.h:106