aboutsummaryrefslogtreecommitdiff
path: root/thumbs.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 /thumbs.h
parent5f780fc3e77aef1f1b87fdd6662a7caee6efbc3b (diff)
Reduced usage of preprocessor macros
Diffstat (limited to 'thumbs.h')
-rw-r--r--thumbs.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/thumbs.h b/thumbs.h
index a81287b..347c146 100644
--- a/thumbs.h
+++ b/thumbs.h
@@ -21,15 +21,9 @@
#include <Imlib2.h>
+#include "types.h"
#include "window.h"
-typedef enum {
- TNS_LEFT = 0,
- TNS_RIGHT,
- TNS_UP,
- TNS_DOWN
-} tnsdir_t;
-
typedef struct {
Imlib_Image *im;
const char *filename;
@@ -62,8 +56,8 @@ int tns_load(tns_t*, int, const char*, unsigned char);
void tns_render(tns_t*, win_t*);
void tns_highlight(tns_t*, win_t*, int, Bool);
-int tns_move_selection(tns_t*, win_t*, tnsdir_t);
-int tns_scroll(tns_t*, tnsdir_t);
+int tns_move_selection(tns_t*, win_t*, direction_t);
+int tns_scroll(tns_t*, direction_t);
int tns_translate(tns_t*, int, int);