jcs ratpoison hax
1/* Function prototypes.
2 * Copyright (C) 2000, 2001, 2002, 2003, 2004 Shawn Betts <sabetts@vcn.bc.ca>
3 *
4 * This file is part of ratpoison.
5 *
6 * ratpoison is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * ratpoison is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this software; see the file COPYING. If not, write to
18 * the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 * Boston, MA 02111-1307 USA
20 */
21
22#ifndef _RATPOISON_INPUT_H
23#define _RATPOISON_INPUT_H 1
24
25char *keysym_to_string (KeySym keysym, unsigned int modifier);
26int cook_keycode (XKeyEvent *ev, KeySym *keysym, unsigned int *mod, char *keysym_name, int len, int ignore_bad_mods);
27char *get_input (char *prompt, int history_id, completion_fn fn);
28char *get_more_input (char *prompt, char *preinput, int history_id, enum completion_styles style, completion_fn fn);
29void read_any_key (void);
30int read_single_key (KeySym *keysym, unsigned int *modifiers, char *keysym_name, int len);
31int read_key (KeySym *keysym, unsigned int *modifiers, char *keysym_name, int len);
32unsigned int x11_mask_to_rp_mask (unsigned int mask);
33unsigned int rp_mask_to_x11_mask (unsigned int mask);
34void update_modifier_map (void);
35void grab_key (KeySym keysym, unsigned int modifiers, Window grab_window);
36
37void ring_bell (void);
38
39void init_xkb (void);
40
41#endif /* ! _RATPOISON_INPUT_H */