ARB
Classes | Macros | Functions | Variables
AW_xkey.cxx File Reference
#include "aw_keysym.hxx"
#include "aw_xkey.hxx"
#include "aw_msg.hxx"
#include <arbdbt.h>
#include <arb_defs.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/Xutil.h>
Include dependency graph for AW_xkey.cxx:

Go to the source code of this file.

Classes

struct  awModDef
 

Macros

#define aw_assert(bed)   arb_assert(bed)
 

Functions

static void map_awXKey (Display *display, const awXKeymap *awxk)
 
void aw_install_xkeys (Display *display)
 
void aw_uninstall_xkeys ()
 
const awXKeymapaw_xkey_2_awkey (XKeyEvent *xkeyevent)
 

Variables

static awXKeymap_modfree awxkeymap_modfree []
 
static awXKeymap awxkeymap []
 
static awModDef moddef []
 
const int FIXEDMOD = TERMINATED_ARRAY_ELEMS(awxkeymap)
 
const int MODFREE = TERMINATED_ARRAY_ELEMS(awxkeymap_modfree)
 
const int MODS = ARRAY_ELEMS(moddef)
 
static GB_HASHawxkeymap_string_2_key_hash
 
static GB_NUMHASHawxkeymap_xkey_2_key_hash
 
static int generatedKeymaps_count = -1
 
static awXKeymapgeneratedKeymaps = NULp
 
const int MAPPED_KEYS = MODFREE*MODS+FIXEDMOD
 
static int mappedKeys = 0
 

Macro Definition Documentation

#define aw_assert (   bed)    arb_assert(bed)

Definition at line 23 of file AW_xkey.cxx.

Referenced by aw_install_xkeys(), and aw_xkey_2_awkey().

Function Documentation

static void map_awXKey ( Display *  display,
const awXKeymap awxk 
)
static
void aw_install_xkeys ( Display *  display)
void aw_uninstall_xkeys ( )
const awXKeymap* aw_xkey_2_awkey ( XKeyEvent *  xkeyevent)

Variable Documentation

awXKeymap_modfree awxkeymap_modfree[]
static
Initial value:
= {
{ XK_Left, "Left", AW_KEY_LEFT },
{ XK_Right, "Right", AW_KEY_RIGHT },
{ XK_Up, "Up", AW_KEY_UP },
{ XK_Down, "Down", AW_KEY_DOWN },
{ XK_Home, "Home", AW_KEY_HOME },
{ XK_End, "End", AW_KEY_END },
{ XK_Page_Up, "PageUp", AW_KEY_PGUP },
{ XK_Page_Down, "PageDown", AW_KEY_PGDN },
{ XK_Delete, "Delete", AW_KEY_DELETE },
{ 0, NULp, AW_KEY_NONE },
}
#define NULp
Definition: cxxforward.h:116

Definition at line 31 of file AW_xkey.cxx.

awXKeymap awxkeymap[]
static

Definition at line 47 of file AW_xkey.cxx.

awModDef moddef[]
static
Initial value:
= {
{ XK_Shift_L, "Shift", AW_KEYMODE_SHIFT },
{ XK_Shift_R, "Shift", AW_KEYMODE_SHIFT },
{ XK_Meta_L, "Meta", AW_KEYMODE_ALT },
{ XK_Meta_R, "Meta", AW_KEYMODE_ALT },
{ XK_Alt_L, "Alt", AW_KEYMODE_ALT },
{ XK_Alt_R, "Alt", AW_KEYMODE_ALT },
{ XK_Control_L, "Control", AW_KEYMODE_CONTROL },
{ XK_Control_R, "Control", AW_KEYMODE_CONTROL },
}
#define NULp
Definition: cxxforward.h:116

Definition at line 86 of file AW_xkey.cxx.

Definition at line 98 of file AW_xkey.cxx.

Definition at line 99 of file AW_xkey.cxx.

const int MODS = ARRAY_ELEMS(moddef)

Definition at line 100 of file AW_xkey.cxx.

Referenced by aw_install_xkeys(), and aw_uninstall_xkeys().

GB_HASH* awxkeymap_string_2_key_hash
static

Definition at line 102 of file AW_xkey.cxx.

GB_NUMHASH* awxkeymap_xkey_2_key_hash
static

Definition at line 103 of file AW_xkey.cxx.

int generatedKeymaps_count = -1
static

Definition at line 104 of file AW_xkey.cxx.

Referenced by aw_uninstall_xkeys().

awXKeymap* generatedKeymaps = NULp
static

Definition at line 105 of file AW_xkey.cxx.

const int MAPPED_KEYS = MODFREE*MODS+FIXEDMOD

Definition at line 108 of file AW_xkey.cxx.

int mappedKeys = 0
static

Definition at line 111 of file AW_xkey.cxx.

Referenced by map_awXKey().