JWM Source Documentation

key.h
Go to the documentation of this file.
00001 
00010 #ifndef KEY_H
00011 #define KEY_H
00012 
00013 struct ClientNode;
00014 
00016 typedef enum {
00017    KEY_NONE,
00018    KEY_UP,
00019    KEY_DOWN,
00020    KEY_RIGHT,
00021    KEY_LEFT,
00022    KEY_ESC,
00023    KEY_ENTER,
00024    KEY_NEXT,
00025    KEY_NEXTSTACK,
00026    KEY_PREV,
00027    KEY_PREVSTACK,
00028    KEY_CLOSE,
00029    KEY_MIN,
00030    KEY_MAX,
00031    KEY_SHADE,
00032    KEY_STICK,
00033    KEY_MOVE,
00034    KEY_RESIZE,
00035    KEY_ROOT,
00036    KEY_WIN,
00037    KEY_DESKTOP,
00038    KEY_RDESKTOP,
00039    KEY_LDESKTOP,
00040    KEY_UDESKTOP,
00041    KEY_DDESKTOP,
00042    KEY_SHOWDESK,
00043    KEY_SHOWTRAY,
00044    KEY_EXEC,
00045    KEY_RESTART,
00046    KEY_EXIT,
00047    KEY_FULLSCREEN
00048 } KeyType;
00049 
00050 void InitializeKeys();
00051 void StartupKeys();
00052 void ShutdownKeys();
00053 void DestroyKeys();
00054 
00058 KeyType GetKey(const XKeyEvent *event);
00059 
00063 void GrabKeys(struct ClientNode *np);
00064 
00072 void InsertBinding(KeyType key, const char *modifiers,
00073    const char *stroke, const char *code, const char *command);
00074 
00078 void RunKeyCommand(const XKeyEvent *event);
00079 
00083 void ShowKeyMenu(const XKeyEvent *event);
00084 
00089 void ValidateKeys();
00090 
00091 #endif /* KEY_H */
00092