|
Public Types |
| enum | KeyType_t { SYM,
CODE,
BUTTON
} |
| enum | EventType_t { PRESS,
RELEASE
} |
Public Member Functions |
| | XKeys () |
| | XKeys (const char *rcfile) |
| | ~XKeys () |
| bool | loadRC (const char *rcfile) |
| void | showKeys (Display *d) |
| void | print_key (Display *d, Keys_t *key) |
| void | grab_keys (Display *dpy) |
Public Attributes |
| int | nb_keys |
| Keys_t * | keys |
| unsigned int | numlock_mask |
| unsigned int | scrolllock_mask |
| unsigned int | capslock_mask |
Protected Member Functions |
| void | init () |
| void | initKeys () |
| void | freeKeys () |
| bool | add_key (KeyType_t type, EventType_t event_type, KeySym keysym, KeyCode keycode, unsigned int button, unsigned int modifier, char *command, const char *rc_file) |
| void | set_keysym (Keys_t *key, EventType_t event_type, KeySym keysym, unsigned int modifier, char *command) |
| void | set_keycode (Keys_t *key, EventType_t event_type, KeySym keycode, unsigned int modifier, char *command) |
| void | set_button (Keys_t *key, EventType_t event_type, unsigned int button, unsigned int modifier, char *command) |
| void | free_key (Keys_t *key) |
| void | modifier_to_string (unsigned int modifier, char *str) |
| void | my_grab_button (Display *dpy, unsigned int button, unsigned int modifier, Window win) |
| void | my_grab_key (Display *dpy, KeyCode keycode, unsigned int modifier, Window win) |
Protected Attributes |
| bool | verbose |
Classes |
| struct | Keys_t |