ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/keyboard.h
(Generate patch)

Comparing rxvt-unicode/src/keyboard.h (file contents):
Revision 1.14 by sf-exg, Sat Apr 30 18:45:38 2011 UTC vs.
Revision 1.16 by sf-exg, Sat May 7 18:29:18 2011 UTC

45#if OtherModMask > 0xff 45#if OtherModMask > 0xff
46# error FATAL: X modifiers might clash with rxvt-unicode ones 46# error FATAL: X modifiers might clash with rxvt-unicode ones
47#endif 47#endif
48 48
49struct rxvt_term; 49struct rxvt_term;
50struct keysym_t;
51
52typedef void (keyevent_handler) (rxvt_term *rt,
53 keysym_t *key,
54 KeySym keysym,
55 unsigned int state);
56 50
57struct keysym_t 51struct keysym_t
58{ 52{
59 enum keysym_type { 53 enum keysym_type {
60 STRING, BUILTIN, 54 STRING, BUILTIN,
75 keyboard_manager (); 69 keyboard_manager ();
76 ~keyboard_manager (); 70 ~keyboard_manager ();
77 71
78 void clear (); 72 void clear ();
79 void register_user_translation (KeySym keysym, unsigned int state, const char *trans); 73 void register_user_translation (KeySym keysym, unsigned int state, const char *trans);
74 void register_translation (KeySym keysym, unsigned int state, char *translation);
80 void register_done (); // call this to make newly registered keymaps take effect 75 void register_done (); // call this to make newly registered keymaps take effect
81 bool dispatch (rxvt_term *term, KeySym keysym, unsigned int state); 76 bool dispatch (rxvt_term *term, KeySym keysym, unsigned int state);
82 77
83private: 78private:
84 void register_keymap (keysym_t *key); 79 void register_keymap (keysym_t *key);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines