summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-02-02 14:06:51 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-02-02 14:06:51 +0000
commitc1439ae4e7e24ffadd8e01f15b7344506e42615f (patch)
tree7ae46ab7177fbb5fe87ebac302777ff1f8cc1825
parentf1c7c7f072a18d56005075550a11d10259a43c45 (diff)
downloadnetsurf-c1439ae4e7e24ffadd8e01f15b7344506e42615f.tar.gz
netsurf-c1439ae4e7e24ffadd8e01f15b7344506e42615f.tar.bz2
Comment content_redraw.
svn path=/trunk/netsurf/; revision=6355
-rw-r--r--content/content.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c
index 935f3657f..72ed2f292 100644
--- a/content/content.c
+++ b/content/content.c
@@ -995,6 +995,25 @@ void content_quit(void)
* Display content on screen.
*
* Calls the redraw function for the content, if it exists.
+ *
+ * \param c content
+ * \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
+ * \param scale scale for redraw
+ * \param background_colour the background colour
+ * \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 content_redraw(struct content *c, int x, int y,