Keyboard aliasDestroy

From TrillWiki

Jump to: navigation, search

This notification is generated when an alias is no longer going to be used. This occurs either when the alias is removed or when Trillian is shutting down. You can remove your user data you provided with the alias safely in this message.

Compatibility: 1.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "keyboard_aliasDestroy", keyboard_alias_t *data, void *userData);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

Keyboard aliasDestroy utilitizes the keyboard_alias_t structure.

struct keyboard_alias_t { 
 	unsigned int   			struct_size; 
 
 	int				alias_id; 
 
 	int				alt; 
 	int				ctrl; 
 	int				shift; 
 
 	char				key; 
 
 	ttkCallback			callback; 
 	void				*data; 
 };



alias_id
The alias ID returned when the alias was registered.


Return Value

Must return 0.

Remarks

None.