ZFFramework
 
Loading...
Searching...
No Matches
ZFUIScrollThumbDefault.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIScrollThumbDefault_h_
7#define _ZFI_ZFUIScrollThumbDefault_h_
8
9#include "ZFUIScrollThumb.h"
10#include "ZFUIScrollView.h"
11#include "ZFUIImage.h"
12#include "ZFUIImageView.h"
14
15zfclassFwd _ZFP_ZFUIScrollThumbDefaultPrivate;
19zfclass ZFLIB_ZFUIKit ZFUIScrollThumbDefault : zfextend ZFStyle, zfimplement ZFUIScrollThumb {
20 ZFOBJECT_DECLARE(ZFUIScrollThumbDefault, ZFStyle)
21 ZFIMPLEMENT_DECLARE(ZFUIScrollThumb)
22 ZFSTYLE_DEFAULT_DECLARE(ZFUIScrollThumbDefault)
23
24public:
25 // ============================================================
26 // properties
30 ZFPROPERTY_RETAIN(zfanyT<ZFUIImage>, thumbImageHorizontal, zfres("ZFUIKit/ZFUIScrollThumbDefault_thumb.xml"))
35 ZFPROPERTY_RETAIN(zfanyT<ZFUIImage>, thumbImageVertical, zfres("ZFUIKit/ZFUIScrollThumbDefault_thumb.xml"))
37
46
55
56protected:
58 virtual void objectOnInit(void);
60 virtual void objectOnDealloc(void);
62 virtual void objectOnInitFinish(void);
64 virtual void objectOnDeallocPrepare(void);
65
66public:
68 virtual void scrollThumbInit(void);
70 virtual void scrollThumbDealloc(void);
71
73 virtual void scrollThumbUpdate(void);
74
75private:
76 _ZFP_ZFUIScrollThumbDefaultPrivate *d;
77 friend zfclassFwd _ZFP_ZFUIScrollThumbDefaultPrivate;
78};
79
81#endif // #ifndef _ZFI_ZFUIScrollThumbDefault_h_
82
#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 zfclassFwd
forward declaration of a class type
Definition ZFCoreTypeDef_ClassType.h:31
_zft_zftimet zftimet
time unit, ensured at least 64 bit, ensured signed
Definition ZFCoreTypeDef_CoreType.h:203
#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_RETAIN(Type, Name,...)
declare a retain property
Definition ZFPropertyDeclare.h:104
#define ZFPROPERTY_ASSIGN(Type, Name,...)
see ZFPROPERTY_RETAIN
Definition ZFPropertyDeclare.h:128
#define ZFPROPERTY_ON_ATTACH_DECLARE(Type, Name)
see ZFPROPERTY_ON_INIT_DECLARE
Definition ZFPropertyDeclare.h:248
zfauto zfres(const zfchar *resFilePath, const ZFPathInfo &pathInfo=(zft_zfnull))
load resource by ZFObjectIOLoad
#define ZFSTYLE_DEFAULT_DECLARE(YourStyle)
used to declare a default style, see ZFStyleable
Definition ZFStyleable.h:262
image view
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
abstract scroll thumb for ZFUIScrollView
scroll view
image storage
Definition ZFUIImage.h:30
virtual void objectOnDeallocPrepare(void)
called before objectOnDealloc, safe to call virtual functions here
virtual zftimet & autoHideDurationVertical()
time to auto hide, -1 by default, 0 means never hide
Definition ZFUIScrollThumbDefault.h:54
virtual zfanyT< ZFUIImage > const & thumbImageHorizontal()
horizontal scroll thumb image, null to hide it
Definition ZFUIScrollThumbDefault.h:30
virtual void objectOnInit(void)
override this to init your object
virtual zftimet & autoHideDurationHorizontal()
time to auto hide, -1 by default, 0 means never hide
Definition ZFUIScrollThumbDefault.h:50
virtual void scrollThumbDealloc(void)
destroy the scroll thumb
virtual zfanyT< ZFUIImage > const & thumbImageVertical()
vertical scroll thumb image, null to hide it
Definition ZFUIScrollThumbDefault.h:35
virtual zftimet & autoHideDelayHorizontal()
delay to auto hide, -1 by default
Definition ZFUIScrollThumbDefault.h:41
virtual void objectOnDealloc(void)
override this to destroy your object
virtual void scrollThumbUpdate(void)
update the scroll thumb, this method may be called repeatly
virtual void scrollThumbInit(void)
init the scroll thumb
virtual zftimet & autoHideDelayVertical()
delay to auto hide, -1 by default
Definition ZFUIScrollThumbDefault.h:45
virtual void objectOnInitFinish(void)
called after objectOnInit, safe to call virtual functions here
see zfany
Definition zfany.h:106