summaryrefslogtreecommitdiff
path: root/frontends/windows/window.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-04-26 22:27:49 +0100
committerVincent Sanders <vince@kyllikki.org>2017-04-26 22:27:49 +0100
commit5fba1fb94d875a849d3c9092943406b7cab4d27a (patch)
tree6f301f44dfb0ff293b0f96ab1317f0c2f9c0c42f /frontends/windows/window.h
parentc100a332855260901f34f4ae1bfc94693c8f3801 (diff)
downloadnetsurf-5fba1fb94d875a849d3c9092943406b7cab4d27a.tar.gz
netsurf-5fba1fb94d875a849d3c9092943406b7cab4d27a.tar.bz2
Update windows frontend for set_scroll API change
Diffstat (limited to 'frontends/windows/window.h')
-rw-r--r--frontends/windows/window.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/frontends/windows/window.h b/frontends/windows/window.h
index d927c2899..3cdb9aefe 100644
--- a/frontends/windows/window.h
+++ b/frontends/windows/window.h
@@ -73,6 +73,7 @@ struct gui_window {
struct gui_window *next, *prev; /**< global linked list */
};
+struct rect;
/**
* Obtain gui window structure from window handle.
@@ -91,13 +92,17 @@ struct gui_window *nsws_get_gui_window(HWND hwnd);
bool nsws_window_go(HWND hwnd, const char *urltxt);
/**
- * scroll the window
+ * Set the scroll position of a win32 browser window.
*
- * \param w The win32 gui window to scroll.
- * \param sx the new 'absolute' horizontal scroll location
- * \param sy the new 'absolute' vertical scroll location
+ * Scrolls the viewport to ensure the specified rectangle of the
+ * content is shown. The win32 implementation scrolls the contents so
+ * the specified point in the content is at the top of the viewport.
+ *
+ * \param gw The win32 gui window to scroll.
+ * \param rect The rectangle to ensure is shown.
+ * \return NSERROR_OK on success or apropriate error code.
*/
-void win32_window_set_scroll(struct gui_window *w, int sx, int sy);
+nserror win32_window_set_scroll(struct gui_window *gw, const struct rect *rect);
/**
* Create the main browser window class.