summaryrefslogtreecommitdiff
path: root/desktop/browser.h
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-07-14 10:27:24 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-07-14 10:27:24 +0000
commit430b63e2429179f422b68e1da0d576c8662b5d5a (patch)
treebdaebe747833f923130a169d1107ceee3da614ee /desktop/browser.h
parent8faa353087b8642dd71d3ab4b3e6f3075fe0d5fa (diff)
downloadnetsurf-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.h21
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
*