2 xkbd - xlib based onscreen keyboard.
4 Copyright (C) 2001 Matthew Allum
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)
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.
20 button* button_new(keyboard *k);
22 int _max3( int a, int b, int c );
24 GC _createGC(Display *display, Window win);
26 int _XColorFromStr(Display *display, XColor *col, const char *defstr);
28 void button_set_layout(button *b, char *txt);
30 void button_set_bg_col(button *b, char *txt);
32 void button_set_fg_col(button *b, char *txt);
34 void button_set_pixmap(button *b, char *txt);
36 void button_set_txt(button *b, char *txt);
38 void button_set_scancode(button *b, char *txt);
40 void button_set_txt_ks(button *b, char *txt);
42 void button_set_shift_txt(button *b, char *txt);
44 void button_set_shift_ks(button *b, char *txt);
46 void button_set_mod_txt(button *b, char *txt);
48 void button_set_mod_ks(button *b, char *txt);
49 void button_set_slide_ks(button *b, char *txt, int dir);
50 int _button_get_txt_size(button *b, char *txt);
51 int button_calc_c_width(button *b);
53 int button_calc_c_height(button *b);
55 int button_get_c_height(button *b);
57 int button_set_b_size(button *b, int size);
59 void button_render(button *b, int mode);
60 void button_paint(button *b);
62 int button_get_abs_x(button *b);
63 int button_get_abs_y(button *b);