keybinder_c

C API for libkeybinder

Members

Aliases

GDestroyNotify
alias GDestroyNotify = void*
Undocumented in source.
KeybinderHandler
alias KeybinderHandler = void function(const char* keystring, void* data)
Undocumented in source.

Functions

keybinder_bind
bool keybinder_bind(char* keystring, KeybinderHandler handler, void* user_data)

Grab a key combination globally and register a callback to be called each time the key combination is pressed.

keybinder_bind_full
bool keybinder_bind_full(char* keystring, KeybinderHandler handler, void* user_data, GDestroyNotify notify)

Grab a key combination globally and register a callback to be called each time the key combination is pressed.

keybinder_get_current_event_time
uint keybinder_get_current_event_time()
keybinder_init
void keybinder_init()

Initialize the keybinder library.

keybinder_set_use_cooked_accelerators
void keybinder_set_use_cooked_accelerators(bool use_cooked)

"Cooked" accelerators use symbols produced by using modifiers such as shift or altgr, for example if "!" is produced by "Shift+1".

keybinder_unbind_all
void keybinder_unbind_all(char* keystring)

Unregister all previously bound callbacks for this keystring.

Meta