ZFFramework
Loading...
Searching...
No Matches
ZFUIViewPositionMap.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIViewPositionMap_h_
7#define _ZFI_ZFUIViewPositionMap_h_
8
9#include "ZFUIView.h"
11
12// ============================================================
26 , ZFMP_IN(ZFUIView *, view)
27 , ZFMP_IN_OPT(const ZFUIPoint &, localPos, ZFUIPointZero())
28 )
29
30
36 , ZFMP_IN(ZFUIView *, view)
37 )
38
40#endif // #ifndef _ZFI_ZFUIViewPositionMap_h_
41
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMP_IN(ParamType, paramName)
macro to wrap param types for ZFMETHOD_INLINE_0 series
Definition ZFMethod.h:105
#define ZFMETHOD_FUNC_DECLARE_2(ZFLIB_, ReturnType, MethodName, ZFMP_0, ZFMP_1)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:763
#define ZFMETHOD_FUNC_DECLARE_1(ZFLIB_, ReturnType, MethodName, ZFMP_0)
see ZFMETHOD_FUNC_DECLARE_0
Definition ZFMethodFuncDeclare.h:624
#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 ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
ZFUIPoint const & ZFUIPointZero(void)
(0, 0)
Definition ZFUITypeDef.h:86
base class of all UI views
ZFUIRect ZFUIViewPositionOnScreen(ZFUIView *view)
util to ZFUIViewPositionMap to calculate view's position on screen
ZFUIPoint ZFUIViewPositionMap(ZFUIView *view, const ZFUIPoint &localPos=(ZFUIPointZero()))
map view's position to screen coordinate
2D point
Definition ZFUITypeDef.h:62
2D rectangle
Definition ZFUITypeDef.h:667
base class of all UI views
Definition ZFUIView.h:88