Functions

Key Coding and Key Callbacks
[Control SDK]

Collaboration diagram for Key Coding and Key Callbacks:

Functions

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

Detailed Description

See iup_key.h

Function Documentation

char* iupKeyCodeToName ( int  code  ) 

Returns the key name from its code. Returns NULL if code not found.

void iupKeyForEach ( void(*)(const char *name, int code, void *user_data)  func,
void *  user_data 
)

Calls a function for each defined key.
Used only by the IupLua binding.

int iupKeyCallKeyCb ( Ihandle *  ih,
int  c 
)

Calls the K_ANY or K_* callbacks. Should be called when a keyboard event occoured.

int iupKeyCallKeyPressCb ( Ihandle *  ih,
int  code,
int  press 
)

Calls the KEYPRESS_CB callback. Should be called when a keyboard event occoured.

int iupKeyProcessNavigation ( Ihandle *  ih,
int  code,
int  shift 
)

Process Tab, DEFAULTENTER and DEFAULTESC in key press events.

int iupKeyProcessMnemonic ( Ihandle *  ih,
int  code 
)

Process mnemonics (Used only in Windows and Motif).

void iupKeySetMnemonic ( Ihandle *  ih,
int  code,
int  pos 
)

Set a mnemonic (Used only in Windows and Motif).