summaryrefslogtreecommitdiff
path: root/desktop/scrollbar.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-11-29 14:16:26 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-11-29 14:16:26 +0000
commit449e41e306624bd89f84976435d16291ca0405a8 (patch)
treeed0e2ae4786dd9ddc9abadd335f4c04aa235e7e6 /desktop/scrollbar.h
parentd54e5719d83886b3869b5e5a88271a9ba7ec3745 (diff)
downloadnetsurf-449e41e306624bd89f84976435d16291ca0405a8.tar.gz
netsurf-449e41e306624bd89f84976435d16291ca0405a8.tar.bz2
New function for applying a change in offset to a scrollbar.
svn path=/trunk/netsurf/; revision=13196
Diffstat (limited to 'desktop/scrollbar.h')
-rw-r--r--desktop/scrollbar.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/scrollbar.h b/desktop/scrollbar.h
index 7c5307fff..3f415e8d9 100644
--- a/desktop/scrollbar.h
+++ b/desktop/scrollbar.h
@@ -111,6 +111,15 @@ bool scrollbar_redraw(struct scrollbar *s, int x, int y,
void scrollbar_set(struct scrollbar *s, int value, bool bar_pos);
/**
+ * Scroll the scrollbar by given amount.
+ *
+ * \param s the scrollbar to be scrolled
+ * \param change the change in scroll offset required (in px)
+ * \return true iff the scrollbar was moved.
+ */
+bool scrollbar_scroll(struct scrollbar *s, int change);
+
+/**
* Get the current scroll offset to the visible part of the full area.
*
* \param s the scrollbar to get the scroll offset value from