http://mulliner.org/bluetooth/xkbdbthid-0.1_src.tar.gz
[xkbdbthid.git] / xkbd-0.8.15_bthid / src / kb.h
1 /* 
2    xkbd - xlib based onscreen keyboard.
3
4    Copyright (C) 2001 Matthew Allum
5
6    This program 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    This program 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
17 #ifndef _KBD_H_
18 #define _KBD_H_
19 void _kb_load_font(keyboard *kb, char *fontname );
20 keyboard* kb_new(Window win, Display *display, int kb_x, int kb_y,
21                  int kb_width, int kb_height, char *conf_file, 
22                  char *font_name, int font_is_xft);
23 void kb_switch_layout(keyboard *kb, int kbd_layout_num);
24 void kb_send_keypress(button *b);
25 void kb_size(keyboard *kb);
26 void kb_render(keyboard *kb);
27 void kb_paint(keyboard *kb);
28 void kb_destroy(keyboard *kb);
29 button *kb_handle_events(keyboard *kb, XEvent an_event);
30 void kb_do_repeat(keyboard *kb, button *active_but);
31 void kb_set_slide(button *active_but, int x, int y);
32 int kb_process_keypress(button *active_but);
33 int kb_find_keycode(keyboard *kb, KeySym keysym, 
34                     KeyCode *code_ret, int *col_ret);
35 button * kb_find_button(keyboard *kb, int x, int y);
36 int _XColorFromStr(Display *display, XColor *col, const char *defstr);
37
38
39
40 #endif
41
42
43
44