X Keyboard Handling


Classes

struct  _X_kb_info
typedef struct _X_kb_info X_kb_info_t
typedef struct _X_kb_event X_kb_event_t

Functions

static int keycode2sym (X_kb_info_t *kbinfo, unsigned int keycode)
static int X_kb_init (X_kb_info_t *kbinfo, Display *display, redraw_man_t *rdman)
static void X_kb_destroy (X_kb_info_t *kbinfo)
static void X_kb_handle_event (X_kb_info_t *kbinfo, XKeyEvent *xkey)
 Accept X keyboard events from handle_x_event() and dispatch it.

Detailed Description

Accept keyboard events from X server and delivery it to application through observer pattern. There is a subject, per X-connection, for that.

Typedef Documentation

typedef struct _X_kb_event X_kb_event_t

Definition at line 19 of file mb_X_supp.h.

typedef struct _X_kb_info X_kb_info_t

Definition at line 12 of file mb_X_supp.h.


Function Documentation

static int keycode2sym ( X_kb_info_t kbinfo,
unsigned int  keycode 
) [static]

Definition at line 51 of file X_supp.c.

static void X_kb_destroy ( X_kb_info_t kbinfo  )  [static]

Definition at line 88 of file X_supp.c.

static void X_kb_handle_event ( X_kb_info_t kbinfo,
XKeyEvent *  xkey 
) [static]

Accept X keyboard events from handle_x_event() and dispatch it.

Definition at line 95 of file X_supp.c.

static int X_kb_init ( X_kb_info_t kbinfo,
Display *  display,
redraw_man_t rdman 
) [static]

Definition at line 60 of file X_supp.c.

SourceForge.net Logo