Defines | Functions

iup_key.h File Reference

Manage keys encoding and decoding. More...

Defines

#define IUPKEY_STATUS_SIZE   11
#define IUPKEY_STATUS_INIT   " "
#define iupKEY_SETSHIFT(_s)   (_s[0]='S')
#define iupKEY_SETCONTROL(_s)   (_s[1]='C')
#define iupKEY_SETBUTTON1(_s)   (_s[2]='1')
#define iupKEY_SETBUTTON2(_s)   (_s[3]='2')
#define iupKEY_SETBUTTON3(_s)   (_s[4]='3')
#define iupKEY_SETDOUBLE(_s)   (_s[5]='D')
#define iupKEY_SETALT(_s)   (_s[6]='A')
#define iupKEY_SETSYS(_s)   (_s[7]='Y')
#define iupKEY_SETBUTTON4(_s)   (_s[8]='4')
#define iupKEY_SETBUTTON5(_s)   (_s[9]='5')

Functions

IUP_SDK_API char * iupKeyCodeToName (int code)
IUP_SDK_API void iupKeyForEach (void(*func)(const char *name, int code, void *user_data), void *user_data)
IUP_SDK_API int iupKeyCallKeyCb (Ihandle *ih, int c)
IUP_SDK_API int iupKeyCallKeyPressCb (Ihandle *ih, int code, int press)
IUP_SDK_API int iupKeyProcessNavigation (Ihandle *ih, int code, int shift)
IUP_SDK_API int iupKeyProcessMnemonic (Ihandle *ih, int code)
IUP_SDK_API void iupKeySetMnemonic (Ihandle *ih, int code, int pos)
void iupKeyInit (void)

Detailed Description

See Copyright Notice in "iup.h"