diff options
author | Bert <ber.t@gmx.com> | 2011-02-20 00:08:17 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-02-20 00:08:17 +0100 |
commit | a30901210cfde971bac780b5c0bbdeda215ea809 (patch) | |
tree | 432ec101e77791c0ee9f61fb91a05b6630a47e47 /thumbs.h | |
parent | 4cc6ca939c1e111aa491d5c81ee63170eee00fbd (diff) |
Mouse-wheel scrolling in thumb mode
Diffstat (limited to 'thumbs.h')
-rw-r--r-- | thumbs.h | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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); |