From 877988a7ef9235d894a6f4ff2f032b7e2f207f72 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 18 Dec 2011 15:36:38 +0000 Subject: Add named scroll offset values for page up, page down, top and bottom. svn path=/trunk/netsurf/; revision=13293 --- desktop/scrollbar.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'desktop/scrollbar.h') diff --git a/desktop/scrollbar.h b/desktop/scrollbar.h index 3f415e8d9..4bd9a17c0 100644 --- a/desktop/scrollbar.h +++ b/desktop/scrollbar.h @@ -24,11 +24,18 @@ #define _NETSURF_DESKTOP_SCROLLBAR_H_ #include +#include #include "desktop/browser.h" #define SCROLLBAR_WIDTH 16 +/* Region dependent values for scrollbar_scroll function */ +#define SCROLL_TOP INT_MIN +#define SCROLL_PAGE_UP INT_MIN + 1 +#define SCROLL_PAGE_DOWN INT_MAX - 1 +#define SCROLL_BOTTOM INT_MAX + struct scrollbar; typedef enum { -- cgit v1.2.3