libfakekey
0.1
Main Page
Modules
Files
File List
fakekey
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
49
}
FakeKeyModifier
;
50
58
FakeKey
*
59
fakekey_init
(Display *xdpy);
60
61
74
int
75
fakekey_press
(
FakeKey
*fk,
76
const
unsigned
char
*utf8_char_in,
77
int
len_bytes,
78
int
modifiers);
79
85
void
86
fakekey_repeat
(
FakeKey
*fk);
87
88
94
void
95
fakekey_release
(
FakeKey
*fk);
96
105
int
106
fakekey_reload_keysyms
(
FakeKey
*fk);
107
117
int
118
fakekey_press_keysym
(
FakeKey
*fk,
119
KeySym keysym,
120
int
flags);
121
131
int
132
fakekey_send_keyevent
(
FakeKey
*fk,
133
KeyCode keycode,
134
Bool is_press,
135
int
modifiers);
136
139
#ifdef __cplusplus
140
}
141
#endif
142
143
#endif
/* _HAVE_LIBFAKEKEY_H */
Generated on Sun Mar 3 2013 20:40:56 for libfakekey by
1.8.1.2