aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-07-22 14:49:06 +0200
committerBert <ber.t@gmx.com>2011-07-22 14:49:06 +0200
commita271e167443aedca2ed9c28b51fc6de33692dadb (patch)
tree01d2e58d2aa579de2abf8e609612721eb4a7b7dd /types.h
parent5f780fc3e77aef1f1b87fdd6662a7caee6efbc3b (diff)
Reduced usage of preprocessor macros
Diffstat (limited to 'types.h')
-rw-r--r--types.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/types.h b/types.h
new file mode 100644
index 0000000..0726286
--- /dev/null
+++ b/types.h
@@ -0,0 +1,35 @@
+#ifndef TYPES_H
+#define TYPES_H
+
+typedef enum {
+ MODE_NORMAL = 0,
+ MODE_THUMBS
+} appmode_t;
+
+typedef struct {
+ char key;
+ int reload;
+ const char *cmdline;
+} command_t;
+
+typedef enum {
+ DIR_LEFT = 0,
+ DIR_RIGHT,
+ DIR_UP,
+ DIR_DOWN
+} direction_t;
+
+typedef enum {
+ SCALE_DOWN = 0,
+ SCALE_FIT,
+ SCALE_ZOOM
+} scalemode_t;
+
+typedef enum {
+ CURSOR_ARROW = 0,
+ CURSOR_NONE,
+ CURSOR_HAND,
+ CURSOR_WATCH
+} cursor_t;
+
+#endif /* TYPES_H */