libfakekey  0.1
fakekey.h
1 #ifndef _HAVE_LIBFAKEKEY_H
2 #define _HAVE_LIBFAKEKEY_H
3 
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <X11/X.h>
7 #include <X11/Xlib.h>
8 #include <X11/Xlibint.h>
9 #include <X11/Xutil.h>
10 #include <X11/cursorfont.h>
11 #include <X11/keysymdef.h>
12 #include <X11/keysym.h>
13 #include <X11/extensions/XTest.h>
14 #include <X11/Xos.h>
15 #include <X11/Xproto.h>
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
35 typedef struct FakeKey FakeKey;
36 
42 typedef enum
43 {
44  FAKEKEYMOD_SHIFT = (1<<1),
45  FAKEKEYMOD_CONTROL = (1<<2),
46  FAKEKEYMOD_ALT = (1<<3),
47  FAKEKEYMOD_META = (1<<4)
48 
50 
58 FakeKey*
59 fakekey_init(Display *xdpy);
60 
61 
74 int
76  const unsigned char *utf8_char_in,
77  int len_bytes,
78  int modifiers);
79 
85 void
87 
88 
94 void
96 
105 int
107 
117 int
119  KeySym keysym,
120  int flags);
121 
131 int
133  KeyCode keycode,
134  Bool is_press,
135  int modifiers);
136 
139 #ifdef __cplusplus
140 }
141 #endif
142 
143 #endif /* _HAVE_LIBFAKEKEY_H */