ZFFramework
 
Loading...
Searching...
No Matches
ZFUIScrollLayout.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIScrollLayout_h_
7#define _ZFI_ZFUIScrollLayout_h_
8
9#include "ZFUIWidgetDef.h"
11
12// ============================================================
13// ZFUIScrollLayoutParam
21zfclass ZFLIB_ZFUIWidget ZFUIScrollLayout : zfextend ZFUIScrollView {
22 ZFOBJECT_DECLARE(ZFUIScrollLayout, ZFUIScrollView)
23 ZFSTYLE_DEFAULT_DECLARE(ZFUIScrollLayout)
24
25protected:
27 virtual void layoutOnMeasure(
28 ZF_OUT ZFUISize &ret
29 , ZF_IN const ZFUISize &sizeHint
30 , ZF_IN const ZFUISizeParam &sizeParam
31 );
33 virtual void layoutOnLayoutPrepare(ZF_IN const ZFUIRect &bounds);
34};
35
37#endif // #ifndef _ZFI_ZFUIScrollLayout_h_
38
#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_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
#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 ZFSTYLE_DEFAULT_DECLARE(YourStyle)
used to declare a default style, see ZFStyleable
Definition ZFStyleable.h:262
global header for ZFUIWidget module
#define ZFLIB_ZFUIWidget
used to export symbols
Definition ZFUIWidgetDef.h:17
2D rectangle
Definition ZFUITypeDef.h:636
virtual void layoutOnLayoutPrepare(const ZFUIRect &bounds)
see E_ViewLayoutOnLayoutPrepare
virtual void layoutOnMeasure(ZFUISize &ret, const ZFUISize &sizeHint, const ZFUISizeParam &sizeParam)
called by layoutMeasure to decide the view's size
2D size
Definition ZFUITypeDef.h:397
2D size
Definition ZFUIViewType.h:41