ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFUIViewTransform.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFUIViewTransform_h_
7#define _ZFI_ZFProtocolZFUIViewTransform_h_
8
9#include "ZFCore/ZFProtocol.h"
10#include "ZFUIKit/ZFUIView.h"
12
18public:
21
24
30 virtual void viewTransformReset(ZF_IN ZFUIView *view) {
32 view->translateX(0);
33 }
35 view->translateY(0);
36 }
38 view->translateZ(0);
39 }
41 view->scaleX(1);
42 }
44 view->scaleY(1);
45 }
47 view->scaleZ(1);
48 }
50 view->rotateX(0);
51 }
53 view->rotateY(0);
54 }
56 view->rotateZ(0);
57 }
58 this->viewTransform(view);
59 }
60ZFPROTOCOL_INTERFACE_END(ZFUIViewTransform)
61
63#endif // #ifndef _ZFI_ZFProtocolZFUIViewTransform_h_
64
#define zfpurevirtual
dummy macro shows that a method is pure virtual method
Definition ZFCoreTypeDef_ClassType.h:68
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#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 ZFPropertyAccess(OwnerClass, Name)
access the property directly, compile error if not declared
Definition ZFPropertyDeclare.h:20
zfbool ZFPropertyIsValueAccessed(const ZFProperty *propertyInfo, zfany const &ownerObj)
util for ZFPropertyCallbackIsValueAccessed
Definition ZFPropertyUtil.h:18
protocol definitions for ZFFramework
#define ZFPROTOCOL_INTERFACE_OPTIONAL
macro to show that the protocol is optional
Definition ZFProtocol.h:420
#define ZFPROTOCOL_INTERFACE_END(ModuleName)
for more information, please refer to ZFPROTOCOL_INTERFACE_BEGIN
Definition ZFProtocol.h:414
#define ZFPROTOCOL_INTERFACE_BEGIN(ZFLIB_, ModuleName)
declare a protocol interface for ZFFramework
Definition ZFProtocol.h:408
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
base class of all UI views
virtual void viewTransformReset(ZFUIView *view)
called to reset transform, ensured called only when transform is not identity, before view's dealloca...
Definition ZFProtocolZFUIViewTransform.h:30
virtual void viewTransform(ZFUIView *view)=0
see ZFUIView::transformAvailable
virtual ZFUITransformFlags transformAvailable(void)=0
see ZFUIView::transformAvailable
see v_ZFUITransform, ZFUITransformFlagsToString, ZFUITransformFlagsFromString
Definition ZFUIViewType.h:595
base class of all UI views
Definition ZFUIView.h:93