📄 gb_wrapper.h
字号:
#ifndef __GB_WRAPPER_H__
#define __GB_WRAPPER_H__
extern void GBChangeInputModeForInputBox(int inputMethod);
extern void GBClearAllKeyHandler(void);
extern void GBInputMethodReset(void);
extern void GBSetAllKeyHandler(void);
extern void GBInputMethodInit(void);
extern void GBSetInputboxLSKFunction(FuncPtr f);
extern void GBInputMethodEnterCategory5(void);
extern void GBInputMethodExitCategory5(void);
extern void GBInputMethodExitCategory28(void);
extern void GBInputMethodEnterCategory28(void);
extern void GBInputMethodExit(void);
extern void GBCloseCand(void);
extern void GBCheckCandWnd(void);
extern void GBDrawCandWnd(void);
extern int GbIsInputEmpty(void);
extern void GBKeyPoundPressHandlerForInputBox(void);
#define GB_IS_ACTIVE() \
(INPUT_MODE_SM_PINYIN == MMI_current_input_mode \
|| INPUT_MODE_SM_STROKE == MMI_current_input_mode \
|| INPUT_MODE_TR_STROKE == MMI_current_input_mode \
|| INPUT_MODE_SMART_UPPERCASE_ABC == MMI_current_input_mode \
|| INPUT_MODE_SMART_LOWERCASE_ABC == MMI_current_input_mode\
|| INPUT_MODE_SMART_LOWERCASE_GERMAN == MMI_current_input_mode \
|| INPUT_MODE_SMART_UPPERCASE_GERMAN == MMI_current_input_mode )
typedef void (*GBUpscreeFunc)(UI_character_type c);
typedef void (*GBSetRSKFunc)(void);
typedef void (*GBSetSystemArrowKeyFunc)(void);
typedef void (*GBDeleteAllFunc)(void);
typedef U8 (*GBInputBoxIsEmptyFunc)(void);
enum GBInputBoxType
{
GBSinglineInputBox,
GBMultilineInputBox,
GBEMSInputBox
};
typedef struct __IInputBox {
//functions:
void (*pfUpscreen)(UI_character_type c);
void (*pfSetRSK)(void);
void (*pfSetArrowKey)(void);
void (*pfDeleteAll)(void);
U8 (*pfInputBoxIsEmtpy)(void);
void (*pfChangeInputMode)(void);
int type;
} GBIInputBox;
extern void GBSetCurInputBox(const GBIInputBox * pIInputBox);
U8 GBSinglineInputBoxIsEmpty(void);
U8 GBEMSInputBoxIsEmpty(void);
enum KeyType {
gbKeyNum = 1,
gbKeyArrow = 2,
gbKeyStar = 4,
gbKeyPound = 8,
gbKeyStarPound = gbKeyStar + gbKeyPound,
gbKeyOK = 16,
gbKeyAll = (U16)-1
};
extern void GBClearKeyHandler(U16 type);
extern void GBHandleTouchEvent(U16 x, U16 y);
#ifdef __MMI_TOUCH_SCREEN__
#define SL_CHANGE_IM_FUNC mmi_pen_editor_switch_input_method
#define ML_CHANGE_IM_FUNC mmi_pen_editor_switch_input_method
#define EMS_CHANGE_IM_FUNC mmi_pen_editor_switch_input_method
#else
#define SL_CHANGE_IM_FUNC wgui_handle_singleline_inputbox_change_input_mode
#define ML_CHANGE_IM_FUNC wgui_handle_inputbox_change_input_mode
#define EMS_CHANGE_IM_FUNC handle_category28_change_input_mode
#endif //__MMI_TOUCH_SCREEN__
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -