summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2009-02-21 17:12:15 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2009-02-21 17:12:15 +0000
commit997b982500b7dc84d4b6d219fc1d9ade9d8e06fb (patch)
treea6b0f35bb574ed9ffb12c81a580700ca1b73dc91 /desktop
parent31831ef1922b0d5f3ee5b03326b7ab7a92f4f248 (diff)
downloadnetsurf-997b982500b7dc84d4b6d219fc1d9ade9d8e06fb.tar.gz
netsurf-997b982500b7dc84d4b6d219fc1d9ade9d8e06fb.tar.bz2
More plotters commenting. Text and bitmap plotters.
svn path=/trunk/netsurf/; revision=6594
Diffstat (limited to 'desktop')
-rw-r--r--desktop/plotters.h21
1 files changed, 17 insertions, 4 deletions
diff --git a/desktop/plotters.h b/desktop/plotters.h
index 2a6cf77bc..4eb894981 100644
--- a/desktop/plotters.h
+++ b/desktop/plotters.h
@@ -48,10 +48,23 @@ struct bitmap;
* rectangle - Plots a rectangle outline. The line can be solid, dotted or
* dashed.
* fill - Plots a filled rectangle.
- * clip -
- * text -
- * bitmap -
- * bitmap_tile -
+ * clip - Sets a clip rectangle for subsequent plots.
+ * text - Plots text. (x,y) is the coordinate of the left hand side of
+ * the text's baseline. The text is UTF-8 encoded. The colour, c,
+ * is the colour of the text. Background colour, bg, may be used
+ * optionally to attempt to provide anti-aliased text without
+ * screen reads. Font information is provided in the style.
+ * bitmap - Plots a bitmap image. (x,y) is the coordinate of the top
+ * left of the image. Width and height give the dimensions the
+ * image is to be plotted to. (Will be different to the image's
+ * intrinsic width and height if the image is to be scaled.)
+ * bitmap_tile - Tiled plot of a bitmap image. (x,y) gives the top left
+ * coordinate of an explicitly placed tile. From this tile the
+ * image can repeat in all four directions -- up, down, left and
+ * right -- to the extents given by the current clip rectangle.
+ * If repeat_x is true, the image is tiled in the x-dimension,
+ * otherwise it is not. If repeat_y is true, the image is tiled
+ * in the y-dimension, otherwise it is not.
* group_start - Start of a group of objects. Used when plotter implements
* export to a vector graphics file format. (Optional.)
* group_end - End of the most recently started group. (Optional.)