summaryrefslogtreecommitdiff
path: root/openbox/misc.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-07-10 06:18:47 +0000
committerDana Jansens <danakj@orodu.net>2003-07-10 06:18:47 +0000
commit276b2be581c6cb138b439537761ff2ca42201805 (patch)
tree753038e7990b881a2bc0e525fab1ebc45b2523e3 /openbox/misc.h
parent6357583c396382dd6ed8ac42004177f204fabe62 (diff)
add misc.h with some standard enumerations with proper prefixing and capitalizations.
use the new enums throughout. provide keycodes and cursors through ob_cursor and ob_keycode functions, which use the new misc.h enums for picking the cursor and keycode.
Diffstat (limited to 'openbox/misc.h')
-rw-r--r--openbox/misc.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/openbox/misc.h b/openbox/misc.h
new file mode 100644
index 00000000..5f84a98a
--- /dev/null
+++ b/openbox/misc.h
@@ -0,0 +1,64 @@
+#ifndef __ob__misc_h
+#define __ob__misc_h
+
+typedef enum
+{
+ OB_CURSOR_POINTER,
+ OB_CURSOR_BUSY,
+ OB_CURSOR_MOVE,
+ OB_CURSOR_NORTH,
+ OB_CURSOR_NORTHEAST,
+ OB_CURSOR_EAST,
+ OB_CURSOR_SOUTHEAST,
+ OB_CURSOR_SOUTH,
+ OB_CURSOR_SOUTHWEST,
+ OB_CURSOR_WEST,
+ OB_CURSOR_NORTHWEST,
+ OB_NUM_CURSORS
+} ObCursor;
+
+typedef enum
+{
+ OB_KEY_RETURN,
+ OB_KEY_ESCAPE,
+ OB_KEY_LEFT,
+ OB_KEY_RIGHT,
+ OB_KEY_UP,
+ OB_KEY_DOWN,
+ OB_NUM_KEYS
+} ObKey;
+
+typedef enum
+{
+ OB_STATE_STARTING,
+ OB_STATE_RUNNING,
+ OB_STATE_EXITING
+} ObState;
+
+typedef enum
+{
+ OB_DIRECTION_NORTH,
+ OB_DIRECTION_NORTHEAST,
+ OB_DIRECTION_EAST,
+ OB_DIRECTION_SOUTHEAST,
+ OB_DIRECTION_SOUTH,
+ OB_DIRECTION_SOUTHWEST,
+ OB_DIRECTION_WEST,
+ OB_DIRECTION_NORTHWEST
+} ObDirection;
+
+typedef enum
+{
+ OB_ORIENTATION_HORZ,
+ OB_ORIENTATION_VERT
+} ObOrientation;
+
+typedef enum
+{
+ OB_CORNER_TOPLEFT,
+ OB_CORNER_TOPRIGHT,
+ OB_CORNER_BOTTOMLEFT,
+ OB_CORNER_BOTTOMRIGHT
+} ObCorner;
+
+#endif