summaryrefslogtreecommitdiffstats
path: root/types.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-07-26 18:01:29 +0200
committerBert <ber.t@gmx.com>2011-07-26 18:01:29 +0200
commitb8ff1677b1cbb4d3e769861d1e14234c6a38a80a (patch)
tree32da4629b8874fbe17deab774f78314b56607302 /types.h
parenta271e167443aedca2ed9c28b51fc6de33692dadb (diff)
downloadnsxiv-b8ff1677b1cbb4d3e769861d1e14234c6a38a80a.tar.zst
Major code refactoring
- Configurable key and mouse mappings in config.h - Put event handling code from main.c into events.[ch]
Diffstat (limited to 'types.h')
-rw-r--r--types.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/types.h b/types.h
index 0726286..de6e04d 100644
--- a/types.h
+++ b/types.h
@@ -2,31 +2,25 @@
#define TYPES_H
typedef enum {
- MODE_NORMAL = 0,
+ MODE_NORMAL,
MODE_THUMBS
} appmode_t;
-typedef struct {
- char key;
- int reload;
- const char *cmdline;
-} command_t;
-
typedef enum {
- DIR_LEFT = 0,
+ DIR_LEFT,
DIR_RIGHT,
DIR_UP,
DIR_DOWN
} direction_t;
typedef enum {
- SCALE_DOWN = 0,
+ SCALE_DOWN,
SCALE_FIT,
SCALE_ZOOM
} scalemode_t;
typedef enum {
- CURSOR_ARROW = 0,
+ CURSOR_ARROW,
CURSOR_NONE,
CURSOR_HAND,
CURSOR_WATCH