summaryrefslogtreecommitdiff
path: root/desktop/browser.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.h')
-rw-r--r--desktop/browser.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/desktop/browser.h b/desktop/browser.h
index c0a738a6e..2c16c9732 100644
--- a/desktop/browser.h
+++ b/desktop/browser.h
@@ -251,6 +251,34 @@ bool browser_window_forward_available(struct browser_window *bw);
bool browser_window_reload_available(struct browser_window *bw);
bool browser_window_stop_available(struct browser_window *bw);
+/**
+ * Redraw an area of a window
+ *
+ * Calls the redraw function for the content,
+ *
+ * \param bw The window to redraw
+ * \param x coordinate for top-left of redraw
+ * \param y coordinate for top-left of redraw
+ * \param width available width (not used for HTML redraw)
+ * \param height available height (not used for HTML redraw)
+ * \param clip_x0 clip rectangle left
+ * \param clip_y0 clip rectangle top
+ * \param clip_x1 clip rectangle right
+ * \param clip_y1 clip rectangle bottom
+ * \return true if successful, false otherwise
+ *
+ * x, y and clip_* are coordinates from the top left of the canvas area.
+ *
+ * The top left corner of the clip rectangle is (clip_x0, clip_y0) and
+ * the bottom right corner of the clip rectangle is (clip_x1, clip_y1).
+ * Units for x, y and clip_* are pixels.
+ */
+bool browser_window_redraw(struct browser_window *bw,
+ int x, int y,
+ int width, int height,
+ int clip_x0, int clip_y0,
+ int clip_x1, int clip_y1);
+
/* In platform specific hotlist.c. */
void hotlist_visited(struct hlcache_handle *c);