diff options
| author | Simon Tatham <anakin@pobox.com> | 2009-02-22 12:05:38 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2009-02-22 12:05:38 +0000 |
| commit | 407f29c46f35910ce3d7ddd41f13e94213c2597e (patch) | |
| tree | a276576d6d3161c345015f69447d474f5918a562 /devel.but | |
| parent | 9249f096192b0a50e607024bf04736ef0506b5ea (diff) | |
| download | puzzles-407f29c46f35910ce3d7ddd41f13e94213c2597e.zip puzzles-407f29c46f35910ce3d7ddd41f13e94213c2597e.tar.gz puzzles-407f29c46f35910ce3d7ddd41f13e94213c2597e.tar.bz2 puzzles-407f29c46f35910ce3d7ddd41f13e94213c2597e.tar.xz | |
Introduce some infrastructure to permit games' print functions to
draw dotted lines. No puzzle yet uses this, but one's about to.
[originally from svn r8453]
Diffstat (limited to 'devel.but')
| -rw-r--r-- | devel.but | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -2143,6 +2143,22 @@ however, that it is a hint only: the central printing system may choose to vary line thicknesses at user request or due to printer capabilities. +\S{print-line-width} \cw{print_line_dotted()} + +\c void print_line_dotted(drawing *dr, int dotted); + +This function is called to toggle the drawing of dotted lines during +printing. It is not supported during drawing. + +The parameter \cq{dotted} is a boolean; \cw{TRUE} means that future +lines drawn by \cw{draw_line()}, \cw{draw_circle} and +\cw{draw_polygon()} will be dotted, and \cw{FALSE} means that they +will be solid. + +Some front ends may impose restrictions on the width of dotted +lines. Asking for a dotted line via this front end will override any +line width request if the front end requires it. + \H{drawing-frontend} The drawing API as implemented by the front end This section describes the drawing API in the function-pointer form |