Back to index

plt-scheme  4.2.1
Classes | Defines | Functions | Variables
EvtHandler.cc File Reference
#include "wx.h"
#include <X11/keysym.h>

Go to the source code of this file.

Classes

struct  key_equiv

Defines

#define Uses_XLib
#define Uses_wxEvtHandler
#define XK_ISO_Left_Tab   0xFE20

Functions

int CharCodeXToWX (KeySym key_sym)
KeySym CharCodeWXToX (int id)
Bool wxIsAlt (KeySym key_sym)

Variables

static key_equiv key_translation []

Class Documentation

struct key_equiv

Definition at line 53 of file EvtHandler.cc.

Class Members
int wx
KeySym x

Define Documentation

Definition at line 32 of file EvtHandler.cc.

#define Uses_XLib

Definition at line 31 of file EvtHandler.cc.

#define XK_ISO_Left_Tab   0xFE20

Definition at line 56 of file EvtHandler.cc.


Function Documentation

KeySym CharCodeWXToX ( int  id)

Definition at line 160 of file EvtHandler.cc.

{
  int i;
  
  if (!id)
    return 0;

  // first try translation
  for (i=0; i < wxNumberOf(key_translation); ++i) {
    if (id == key_translation[i].wx)
      return key_translation[i].x;
  }

  // try displayable keysyms
  if (id <= 255)
    return KeySym(id);

  // keysym not handled by wx
  return 0;
}

Here is the caller graph for this function:

int CharCodeXToWX ( KeySym  key_sym)

Definition at line 142 of file EvtHandler.cc.

{
  // first try translation
  int i;

  for (i=0; i < wxNumberOf(key_translation); ++i) {
    if (key_sym == key_translation[i].x)
      return key_translation[i].wx;
  }

  // try displayable keysyms
  if (key_sym <= 255)
    return (int)key_sym;

  // keysym not handled by wx
  return 0;
}

Here is the caller graph for this function:

Bool wxIsAlt ( KeySym  key_sym)

Definition at line 181 of file EvtHandler.cc.

{
  if ((key_sym == XK_Alt_L) || (key_sym == XK_Alt_R)
      || (key_sym == XK_Meta_L) || (key_sym == XK_Meta_R)) {
    return TRUE;
  }

  return FALSE;
}

Variable Documentation

Definition at line 59 of file EvtHandler.cc.