diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-14 10:27:24 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-14 10:27:24 +0000 |
commit | 430b63e2429179f422b68e1da0d576c8662b5d5a (patch) | |
tree | bdaebe747833f923130a169d1107ceee3da614ee /desktop/browser.h | |
parent | 8faa353087b8642dd71d3ab4b3e6f3075fe0d5fa (diff) | |
download | netsurf-430b63e2429179f422b68e1da0d576c8662b5d5a.tar.gz netsurf-430b63e2429179f422b68e1da0d576c8662b5d5a.tar.bz2 |
Remove assumption of gui window from search.
svn path=/trunk/netsurf/; revision=12603
Diffstat (limited to 'desktop/browser.h')
-rw-r--r-- | desktop/browser.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/desktop/browser.h b/desktop/browser.h index f008cfc00..3d982e32e 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -340,6 +340,27 @@ void browser_window_get_position(struct browser_window *bw, bool root, void browser_window_set_position(struct browser_window *bw, int x, int y); /* + * Scroll the browser window to display the passed area + * + * \param bw browser window to scroll + * \param rect area to display + */ +void browser_window_scroll_visible(struct browser_window *bw, + const struct rect *rect); + +/** + * Set scroll offsets for a browser window. + * + * \param bw The browser window + * \param x The x scroll offset to set + * \param y The y scroll offset to set + * + * TODO -- Do we really need this and browser_window_scroll_visible? + * Ditto for gui_window_* variants. + */ +void browser_window_set_scroll(struct browser_window *bw, int x, int y); + +/* * Set the position of the current browser window with respect to the parent * browser window * |