ZFFramework
 
Loading...
Searching...
No Matches
ZFUIOnScreenKeyboardState.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFUIOnScreenKeyboardState_h_
7#define _ZFI_ZFUIOnScreenKeyboardState_h_
8
9#include "ZFUISysWindow.h"
10
12
16zffinal zfclass ZFLIB_ZFUIKit ZFUIOnScreenKeyboardState : zfextend ZFObject {
17 ZFOBJECT_DECLARE_WITH_CUSTOM_CTOR(ZFUIOnScreenKeyboardState, ZFObject)
18
19public:
24 , ZFMP_IN_OPT(ZFUISysWindow *, sysWindow, zfnull)
25 )
29 ZFMETHOD_DECLARE_STATIC_1(zfanyT<ZFUIOnScreenKeyboardState>, instanceForView
30 , ZFMP_IN_OPT(ZFUIView *, view, zfnull)
31 )
32
33public:
39
40public:
46 ZFEVENT(KeyboardStateOnUpdate)
47
48public:
61
68 , ZFMP_OUT(ZFUIRect &, clientFrame)
69 )
74
75protected:
78
79public:
80 ZFUISysWindow *_ZFP_ZFUIOnScreenKeyboardState_keyboardOwnerSysWindow;
81 zfbool _ZFP_ZFUIOnScreenKeyboardState_keyboardShowing;
82 ZFUIRect _ZFP_ZFUIOnScreenKeyboardState_keyboardFrame;
83 ZFUIRect _ZFP_ZFUIOnScreenKeyboardState_keyboardFramePrev;
84protected:
86 ZFUIOnScreenKeyboardState(void)
87 : _ZFP_ZFUIOnScreenKeyboardState_keyboardOwnerSysWindow(zfnull)
88 , _ZFP_ZFUIOnScreenKeyboardState_keyboardShowing(zffalse)
89 , _ZFP_ZFUIOnScreenKeyboardState_keyboardFrame(ZFUIRectZero())
90 , _ZFP_ZFUIOnScreenKeyboardState_keyboardFramePrev(ZFUIRectZero())
91 {
92 }
94};
95
97#endif // #ifndef _ZFI_ZFUIOnScreenKeyboardState_h_
98
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#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_OUT
dummy macro that shows the param used as required input and output
Definition ZFCoreTypeDef_ClassType.h:196
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
#define zffalse
bool false type
Definition ZFCoreTypeDef_CoreType.h:111
#define zfnull
same as NULL, defined for future use
Definition ZFCoreTypeDef_CoreType.h:88
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFMP_OUT(ParamType, paramName)
see ZFMP_IN
Definition ZFMethod.h:111
#define ZFMP_IN_OPT(ParamType, paramName, DefaultValue)
see ZFMP_IN
Definition ZFMethod.h:108
#define ZFMETHOD_DECLARE_0(ReturnType, MethodName)
see ZFMethod
Definition ZFMethodDeclare.h:693
#define ZFMETHOD_DECLARE_STATIC_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:870
#define ZFMETHOD_DECLARE_1(ReturnType, MethodName, ZFMP_0)
see ZFMethod
Definition ZFMethodDeclare.h:854
#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_WITH_CUSTOM_CTOR(ChildClass, SuperClass,...)
declare object which allow custom constructor
Definition ZFObjectDeclare.h:142
#define ZFEVENT(YourEvent)
see ZFObject::observerNotify
Definition ZFObjectObserver.h:328
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
root native window
ZFUIRect const & ZFUIRectZero(void)
(0, 0, 0, 0)
Definition ZFUITypeDef.h:662
virtual zfbool keyboardShowing()
true if the keyboard currently showing
virtual zfanyT< ZFUISysWindow > keyboardOwnerSysWindow()
owner sys window, null and invalid if not accessed by instanceForSysWindow (which is typically not al...
virtual void keyboardFixClientFrameT(ZFUIRect &clientFrame)
fix client frame according to current keyboard frame
static zfanyT< ZFUIOnScreenKeyboardState > instanceForSysWindow(ZFUISysWindow *sysWindow=(zft_zfnull))
access keyboard state for sys window
virtual ZFUIRect keyboardFixClientFrame()
see keyboardFixClientFrame
virtual const ZFUIRect & keyboardFrame()
current key board frame, ZFUIRectZero if not show
static zfanyT< ZFUIOnScreenKeyboardState > instanceForView(ZFUIView *view=(zft_zfnull))
access keyboard state for view
virtual void objectInfoImplAppend(zfstring &ret)
see objectInfo
virtual const ZFUIRect & keyboardFramePrev()
previous key board frame, ZFUIRectZero if not show
2D rectangle
Definition ZFUITypeDef.h:636
root native window
Definition ZFUISysWindow.h:34
base class of all UI views
Definition ZFUIView.h:93
see zfany
Definition zfany.h:106