diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2010-01-09 00:11:35 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2010-01-09 00:11:35 +0000 |
commit | da9f17aa78b7b41424a546a2cf8b2a785f9a030f (patch) | |
tree | 6d82a9d79ee3618023940ef3052c6e4fc13911eb /src/plot.c | |
parent | fd3c7753435658a6aeebf1b68d18178a6c7cf57d (diff) | |
download | libnsfb-da9f17aa78b7b41424a546a2cf8b2a785f9a030f.tar.gz libnsfb-da9f17aa78b7b41424a546a2cf8b2a785f9a030f.tar.bz2 |
strip legacy plotter interface
cleanup line plotting interface
move plotter interface structs to apropriate header
svn path=/trunk/libnsfb/; revision=9798
Diffstat (limited to 'src/plot.c')
-rw-r--r-- | src/plot.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -63,9 +63,19 @@ bool nsfb_plot_rectangle_fill(nsfb_t *nsfb, nsfb_bbox_t *rect, nsfb_colour_t c) * Draw a line from (x0,y0) to (x1,y1). Coordinates are at centre of line * width/thickness. */ -bool nsfb_plot_line(nsfb_t *nsfb, nsfb_bbox_t *line, int line_width, nsfb_colour_t c, bool dotted, bool dashed) +bool nsfb_plot_line(nsfb_t *nsfb, nsfb_bbox_t *line, nsfb_plot_pen_t *pen) { - return nsfb->plotter_fns->line(nsfb, line, line_width, c, dotted, dashed); + return nsfb->plotter_fns->line(nsfb, 1, line, pen); +} + +/** Plots more than one line. + * + * Draw a line from (x0,y0) to (x1,y1). Coordinates are at centre of line + * width/thickness. + */ +bool nsfb_plot_lines(nsfb_t *nsfb, int linec, nsfb_bbox_t *line, nsfb_plot_pen_t *pen) +{ + return nsfb->plotter_fns->line(nsfb, linec, line, pen); } /** Plots a filled polygon. |