Back to index

im-sdk  12.3.91
Defines | Functions
IMTriggerKeyListP.cpp File Reference
#include "CompoundString.hh"
#include "IMTriggerKeyList.hh"

Go to the source code of this file.

Defines

#define Bool   int
#define True   1
#define False   0
#define XK_space   0x020
#define IM_ShiftMask   (1<<0)
 Define all Key Masks.
#define IM_LockMask   (1<<1)
#define IM_ControlMask   (1<<2)
#define IM_Mod1Mask   (1<<3)
#define IM_Mod2Mask   (1<<4)
#define IM_Mod3Mask   (1<<5)
#define IM_Mod4Mask   (1<<6)
#define IM_Mod5Mask   (1<<7)

Functions

static unsigned int to_modifier (const char *str)

Define Documentation

#define Bool   int

Definition at line 45 of file IMTriggerKeyListP.cpp.

#define False   0

Definition at line 47 of file IMTriggerKeyListP.cpp.

#define IM_ControlMask   (1<<2)

Definition at line 57 of file IMTriggerKeyListP.cpp.

#define IM_LockMask   (1<<1)

Definition at line 56 of file IMTriggerKeyListP.cpp.

#define IM_Mod1Mask   (1<<3)

Definition at line 58 of file IMTriggerKeyListP.cpp.

#define IM_Mod2Mask   (1<<4)

Definition at line 59 of file IMTriggerKeyListP.cpp.

#define IM_Mod3Mask   (1<<5)

Definition at line 60 of file IMTriggerKeyListP.cpp.

#define IM_Mod4Mask   (1<<6)

Definition at line 61 of file IMTriggerKeyListP.cpp.

#define IM_Mod5Mask   (1<<7)

Definition at line 62 of file IMTriggerKeyListP.cpp.

#define IM_ShiftMask   (1<<0)

Define all Key Masks.

Definition at line 55 of file IMTriggerKeyListP.cpp.

#define True   1

Definition at line 46 of file IMTriggerKeyListP.cpp.

#define XK_space   0x020

Definition at line 51 of file IMTriggerKeyListP.cpp.


Function Documentation

static unsigned int to_modifier ( const char *  str) [static]

Definition at line 66 of file IMTriggerKeyListP.cpp.

                             {
  CompoundString modifier(str);
  if (modifier == CompoundString("Ctrl")) return IM_ControlMask;
  if (modifier == CompoundString("Shift")) return IM_ShiftMask;
  if (modifier == CompoundString("Meta")) return IM_Mod4Mask;
  if (modifier == CompoundString("Alt")) return IM_Mod1Mask;
  return 0;
}

Here is the call graph for this function: