libfakekey 0.3
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
18extern "C" {
19#endif
20
35typedef struct FakeKey FakeKey;
36
42typedef enum
43{
44 FAKEKEYMOD_SHIFT = (1<<1),
45 FAKEKEYMOD_CONTROL = (1<<2),
46 FAKEKEYMOD_ALT = (1<<3),
47 FAKEKEYMOD_META = (1<<4)
48
50
59fakekey_init(Display *xdpy);
60
61
74int
76 const unsigned char *utf8_char_in,
77 int len_bytes,
78 int modifiers);
79
85void
87
88
94void
96
105int
107
117int
119 KeySym keysym,
120 int flags);
121
131int
133 KeyCode keycode,
134 Bool is_press,
135 int modifiers);
136
139#ifdef __cplusplus
140}
141#endif
142
143#endif /* _HAVE_LIBFAKEKEY_H */
int fakekey_press(FakeKey *fk, const unsigned char *utf8_char_in, int len_bytes, int modifiers)
Sends a Keypress to the server for the supplied UTF8 character.
int fakekey_reload_keysyms(FakeKey *fk)
Resyncs the internal list of keysyms with the server.
struct FakeKey FakeKey
Opaque structure used for all operations.
Definition: fakekey.h:35
int fakekey_send_keyevent(FakeKey *fk, KeyCode keycode, Bool is_press, int modifiers)
void fakekey_release(FakeKey *fk)
Releases the currently held key ( from fakekey_press )
FakeKey * fakekey_init(Display *xdpy)
Initiates FakeKey.
int fakekey_press_keysym(FakeKey *fk, KeySym keysym, int flags)
fakekey_press but with an X keysym rather than a UTF8 Char.
FakeKeyModifier
enumerated types for #mb_pixbuf_img_transform
Definition: fakekey.h:43
void fakekey_repeat(FakeKey *fk)
Repreats a press of the currently held key ( from fakekey_press )