JWM Source Documentation
key.h
Go to the documentation of this file.
1 
10 #ifndef KEY_H
11 #define KEY_H
12 
17 typedef unsigned short KeyType;
18 #define KEY_NONE 0
19 #define KEY_UP 1
20 #define KEY_DOWN 2
21 #define KEY_RIGHT 3
22 #define KEY_LEFT 4
23 #define KEY_ESC 5
24 #define KEY_ENTER 6
25 #define KEY_NEXT 7
26 #define KEY_NEXTSTACK 8
27 #define KEY_PREV 9
28 #define KEY_PREVSTACK 10
29 #define KEY_CLOSE 11
30 #define KEY_MIN 12
31 #define KEY_MAX 13
32 #define KEY_SHADE 14
33 #define KEY_STICK 15
34 #define KEY_MOVE 16
35 #define KEY_RESIZE 17
36 #define KEY_ROOT 18
37 #define KEY_WIN 19
38 #define KEY_DESKTOP 20
39 #define KEY_RDESKTOP 21
40 #define KEY_LDESKTOP 22
41 #define KEY_UDESKTOP 23
42 #define KEY_DDESKTOP 24
43 #define KEY_SHOWDESK 25
44 #define KEY_SHOWTRAY 26
45 #define KEY_EXEC 27
46 #define KEY_RESTART 28
47 #define KEY_EXIT 29
48 #define KEY_FULLSCREEN 30
49 #define KEY_SENDR 31
50 #define KEY_SENDL 32
51 #define KEY_SENDU 33
52 #define KEY_SENDD 34
53 #define KEY_MAXTOP 35
54 #define KEY_MAXBOTTOM 36
55 #define KEY_MAXLEFT 37
56 #define KEY_MAXRIGHT 38
57 #define KEY_MAXV 39
58 #define KEY_MAXH 40
59 #define KEY_RESTORE 41
60 
61 void InitializeKeys(void);
62 void StartupKeys(void);
63 void ShutdownKeys(void);
64 void DestroyKeys(void);
65 
67 extern unsigned int lockMask;
68 
72 KeyType GetKey(const XKeyEvent *event);
73 
78 unsigned int ParseModifierString(const char *str);
79 
87 void InsertBinding(KeyType key, const char *modifiers, const char *stroke,
88  const char *code, const char *command);
89 
93 void RunKeyCommand(const XKeyEvent *event);
94 
98 void ShowKeyMenu(const XKeyEvent *event);
99 
104 void ValidateKeys(void);
105 
106 #endif /* KEY_H */

joewing.net / Projects / JWM