summaryrefslogtreecommitdiffstats
path: root/thumbs.h
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-02-20 00:08:17 +0100
committerBert <ber.t@gmx.com>2011-02-20 00:08:17 +0100
commita30901210cfde971bac780b5c0bbdeda215ea809 (patch)
tree432ec101e77791c0ee9f61fb91a05b6630a47e47 /thumbs.h
parent4cc6ca939c1e111aa491d5c81ee63170eee00fbd (diff)
downloadnsxiv-a30901210cfde971bac780b5c0bbdeda215ea809.tar.zst
Mouse-wheel scrolling in thumb mode
Diffstat (limited to 'thumbs.h')
-rw-r--r--thumbs.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/thumbs.h b/thumbs.h
index c545b90..62d2c72 100644
--- a/thumbs.h
+++ b/thumbs.h
@@ -21,12 +21,12 @@
#include "window.h"
-typedef enum movedir_e {
- MOVE_LEFT = 0,
- MOVE_RIGHT,
- MOVE_UP,
- MOVE_DOWN
-} movedir_t;
+typedef enum tnsdir_e {
+ TNS_LEFT = 0,
+ TNS_RIGHT,
+ TNS_UP,
+ TNS_DOWN
+} tnsdir_t;
typedef struct thumb_s {
Pixmap pm;
@@ -56,7 +56,8 @@ void tns_load(tns_t*, win_t*, const 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*, movedir_t);
+int tns_move_selection(tns_t*, win_t*, tnsdir_t);
+int tns_scroll(tns_t*, tnsdir_t);
int tns_translate(tns_t*, int, int);