http://mulliner.org/bluetooth/xkbdbthid-0.1_src.tar.gz
[xkbdbthid.git] / xkbd-0.8.15_bthid / src / libXkbd.h
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
4 #include <unistd.h>
5 #include <signal.h>
6
7 #include <X11/Xlib.h>
8 #include <X11/Xutil.h>
9 #include <X11/Xatom.h>
10 #include <X11/extensions/XTest.h>
11 #include <X11/keysym.h>
12
13 #include "structs.h"
14 #include "kb.h"
15 #include "button.h"
16 #include "box.h"
17
18 #define XFT_FONT 1 
19
20 typedef struct _xkbd
21 {
22    struct _keyboard *kb;
23    struct _button    *active_but;
24    int i;
25    
26 } Xkbd;
27
28 Xkbd* xkbd_realize(Display *display,
29                    Drawable dest,
30                    char *conf_file,
31                    char *font_name,
32                    int x,
33                    int y,
34                    int width,
35                    int height,
36                    int flags);
37 void xkbd_resize(Xkbd *xkbd, int width, int height);
38 void xkbd_move(Xkbd *kb, int x, int y);
39 void xkbd_repaint(Xkbd *xkbd);
40 void xkbd_process(Xkbd *xkbd, XEvent *an_event);
41 void xkbd_process_repeats(Xkbd *xkbd);
42 int xkbd_get_width(Xkbd *xkbd);
43 int xkbd_get_height(Xkbd *xkbd);
44 void xkbd_destroy(Xkbd *xkbd);