From 449e41e306624bd89f84976435d16291ca0405a8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Tue, 29 Nov 2011 14:16:26 +0000 Subject: New function for applying a change in offset to a scrollbar. svn path=/trunk/netsurf/; revision=13196 --- desktop/scrollbar.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'desktop/scrollbar.h') diff --git a/desktop/scrollbar.h b/desktop/scrollbar.h index 7c5307fff..3f415e8d9 100644 --- a/desktop/scrollbar.h +++ b/desktop/scrollbar.h @@ -110,6 +110,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. * -- cgit v1.2.3