X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/fa3abef5abe95dd9668a87b1cc57a724dcbf6354..d68762325555dfb025d58f77f95557098fadf0c8:/devel.but diff --git a/devel.but b/devel.but index 11d198d..4783b06 100644 --- a/devel.but +++ b/devel.but @@ -170,7 +170,7 @@ other miscellaneous functions. All of these are documented in There are a number of function call interfaces within Puzzles, and this guide will discuss each one in a chapter of its own. After -that, (\k{writing}) discusses how to design new games, with some +that, \k{writing} discusses how to design new games, with some general design thoughts and tips. \C{backend} Interface to the back end @@ -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-dotted} \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 @@ -2528,6 +2544,15 @@ without closing the window...) Frees a mid-end structure and all its associated data. +\H{midend-tilesize} + +\c int midend_tilesize(midend *me); + +Returns the \cq{tilesize} parameter being used to display the +current puzzle. + +\k{backend-preferred-tilesize} + \H{midend-set-params} \cw{midend_set_params()} \c void midend_set_params(midend *me, game_params *params);