FakeKey -


Typedefs

typedef struct FakeKey FakeKey
 Opaque structure used for all operations.

Enumerations

enum  FakeKeyModifier { FAKEKEYMOD_SHIFT = (1<<1), FAKEKEYMOD_CONTROL = (1<<2), FAKEKEYMOD_ALT = (1<<3), FAKEKEYMOD_META = (1<<4) }
 enumerated types for mb_pixbuf_img_transform More...

Functions

FakeKeyfakekey_init (Display *xdpy)
 Initiates FakeKey.
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.
void fakekey_repeat (FakeKey *fk)
 Repreats a press of the currently held key ( from fakekey_press ).
void fakekey_release (FakeKey *fk)
 Releases the currently held key ( from fakekey_press ).
int fakekey_reload_keysyms (FakeKey *fk)
 Resyncs the internal list of keysyms with the server.
int fakekey_press_keysym (FakeKey *fk, KeySym keysym, int flags)
 fakekey_press but with an X keysym rather than a UTF8 Char.
int fakekey_send_keyevent (FakeKey *fk, KeyCode keycode, Bool is_press, int modifiers)
 
Parameters:
fk FakeKey refernce from fakekey_init


Detailed Description

yada yada yada Always remember to release held keys

Enumeration Type Documentation

enum FakeKeyModifier

enumerated types for mb_pixbuf_img_transform

Enumerator:
FAKEKEYMOD_SHIFT 
FAKEKEYMOD_CONTROL 
FAKEKEYMOD_ALT 
FAKEKEYMOD_META 

Definition at line 42 of file fakekey.h.


Function Documentation

FakeKey* fakekey_init ( Display *  xdpy  ) 

Initiates FakeKey.

Parameters:
xdpy X Display connection.
Returns:
new FakeKey reference on success, NULL on fail.

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.

Parameters:
fk FakeKey refernce from fakekey_init
utf8_char_in Pointer to a single UTF8 Character data.
len_bytes Lenth in bytes of character, or -1 in ends with 0
modifiers OR'd list of FakeKeyModifier modifiers keys to press with the key.
Returns:

int fakekey_press_keysym ( FakeKey fk,
KeySym  keysym,
int  flags 
)

fakekey_press but with an X keysym rather than a UTF8 Char.

Parameters:
fk FakeKey refernce from fakekey_init
keysym X Keysym to send
flags 
Returns:

void fakekey_release ( FakeKey fk  ) 

Releases the currently held key ( from fakekey_press ).

Parameters:
fk FakeKey refernce from fakekey_init

int fakekey_reload_keysyms ( FakeKey fk  ) 

Resyncs the internal list of keysyms with the server.

Should be called if a MappingNotify event is recieved.

Parameters:
fk FakeKey refernce from fakekey_init
Returns:

void fakekey_repeat ( FakeKey fk  ) 

Repreats a press of the currently held key ( from fakekey_press ).

Parameters:
fk FakeKey refernce from fakekey_init

int fakekey_send_keyevent ( FakeKey fk,
KeyCode  keycode,
Bool  is_press,
int  modifiers 
)

Parameters:
fk FakeKey refernce from fakekey_init

Parameters:
keycode X Keycode to send
is_press Is this a press ( or release )
modifiers 
Returns:


Generated on Thu Aug 9 05:21:50 2007 for libfakekey by  doxygen 1.5.3