From a30901210cfde971bac780b5c0bbdeda215ea809 Mon Sep 17 00:00:00 2001 From: Bert Date: Sun, 20 Feb 2011 00:08:17 +0100 Subject: Mouse-wheel scrolling in thumb mode --- thumbs.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'thumbs.h') 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); -- cgit v1.2.3-54-g00ecf