ZFFramework
 
Loading...
Searching...
No Matches
ZFProtocolZFUIKeyboardState.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFProtocolZFUIKeyboardState_h_
7#define _ZFI_ZFProtocolZFUIKeyboardState_h_
8
9#include "ZFCore/ZFProtocol.h"
11#include "ZFUIKit/ZFUIView.h"
14
20public:
29
30 // ============================================================
31 // callbacks that implementations must notify
32public:
40
41// ============================================================
42// builtin impl
64
66#endif // #ifndef _ZFI_ZFProtocolZFUIKeyboardState_h_
67
#define zffinal
dummy macro shows that a method or class is designed must not to be overrided
Definition ZFCoreTypeDef_ClassType.h:63
#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
_ZFT_t_zfbool zfbool
bool type
Definition ZFCoreTypeDef_CoreType.h:103
_zft_zfflags zfflags
used to hold flags, ensured 32 bit, ensured unsigned
Definition ZFCoreTypeDef_CoreType.h:211
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98
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
void ZFUIKeyboardStateBuiltinImplUnregister(void)
see ZFUIKeyboardStateBuiltinImplRegister
void ZFUIKeyboardStateBuiltinImplRegister(void)
register the builtin impl for ZFUIKeyboardState
void ZFUIKeyboardStateBuiltinImplNotifyKeyEvent(ZFUIKeyEvent *event)
see ZFUIKeyboardStateBuiltinImplRegister
v_ZFUIKeyCode::ZFEnumType ZFUIKeyCode
see v_ZFUIKeyCode
Definition ZFUIKeyCode.h:294
key event for ui elements
hardware keyboard state helper
#define ZFLIB_ZFUIKit
used to export symbols
Definition ZFUIKitDef.h:16
base class of all UI views
void observerNotify(zfidentity eventId, ZFObject *param0=zft_zfnull, ZFObject *param1=zft_zfnull)
notify the observer with eventId
virtual zfbool keyPressed(ZFUIKeyCode keyCode)=0
see ZFUIKeyboardState::keyPressed
virtual zfbool keyPressedRaw(zfflags keyCodeRaw)=0
see ZFUIKeyboardState::keyPressedRaw
void notifyKeyPressedOnUpdate(void)
implementations must notify when keyboard's state changed
Definition ZFProtocolZFUIKeyboardState.h:36
key event for ui elements
Definition ZFUIKeyEvent.h:17
hardware keyboard state helper
Definition ZFUIKeyboardState.h:16
static zfidentity E_KeyPressedOnUpdate(void)
see ZFObject::observerNotify
static ZFUIKeyboardState * instance()