aboutsummaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/src/key.h b/src/key.h
new file mode 100644
index 0000000..a18aa46
--- /dev/null
+++ b/src/key.h
@@ -0,0 +1,57 @@
+/**
+ * @file key.h
+ * @author Joe Wingbermuehle
+ * @date 2004-2006
+ *
+ * @brief Header for the key binding functions.
+ *
+ */
+
+#ifndef KEY_H
+#define KEY_H
+
+struct ClientNode;
+
+typedef enum {
+ KEY_NONE = 0,
+ KEY_UP = 1,
+ KEY_DOWN = 2,
+ KEY_RIGHT = 3,
+ KEY_LEFT = 4,
+ KEY_ESC = 5,
+ KEY_ENTER = 6,
+ KEY_NEXT = 7,
+ KEY_NEXT_STACKED = 8,
+ KEY_CLOSE = 9,
+ KEY_MIN = 10,
+ KEY_MAX = 11,
+ KEY_SHADE = 12,
+ KEY_MOVE = 13,
+ KEY_RESIZE = 14,
+ KEY_ROOT = 15,
+ KEY_WIN = 16,
+ KEY_DESKTOP = 17,
+ KEY_EXEC = 18,
+ KEY_RESTART = 19,
+ KEY_EXIT = 20
+} KeyType;
+
+void InitializeKeys();
+void StartupKeys();
+void ShutdownKeys();
+void DestroyKeys();
+
+KeyType GetKey(const XKeyEvent *event);
+void GrabKeys(struct ClientNode *np);
+
+void InsertBinding(KeyType key, const char *modifiers,
+ const char *stroke, const char *code, const char *command);
+
+void RunKeyCommand(const XKeyEvent *event);
+
+void ShowKeyMenu(const XKeyEvent *event);
+
+void ValidateKeys();
+
+#endif
+