summaryrefslogtreecommitdiff
path: root/frontends/windows/window.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-04-26 22:28:41 +0100
committerVincent Sanders <vince@kyllikki.org>2017-04-26 22:28:41 +0100
commit87ed0904e0dd1fec1b204f64db760aa65fad2cd6 (patch)
tree1bd62daa3a4c4ca40d9af3057765b567e6e32745 /frontends/windows/window.h
parent7bbf2a9ca0cd418f64b001b87f77c779433119fe (diff)
parent5fba1fb94d875a849d3c9092943406b7cab4d27a (diff)
downloadnetsurf-87ed0904e0dd1fec1b204f64db760aa65fad2cd6.tar.gz
netsurf-87ed0904e0dd1fec1b204f64db760aa65fad2cd6.tar.bz2
Merge branch 'vince/scroll-api'
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.