diff options
Diffstat (limited to 'html/en')
-rw-r--r-- | html/en/drv/gl.html | 2 | ||||
-rw-r--r-- | html/en/func/client.html | 44 | ||||
-rw-r--r-- | html/en/func/clipping.html | 12 | ||||
-rw-r--r-- | html/en/func/color.html | 28 | ||||
-rw-r--r-- | html/en/func/control.html | 20 | ||||
-rw-r--r-- | html/en/func/coordinates.html | 32 | ||||
-rw-r--r-- | html/en/func/init.html | 35 | ||||
-rw-r--r-- | html/en/func/lines.html | 22 | ||||
-rw-r--r-- | html/en/func/marks.html | 31 | ||||
-rw-r--r-- | html/en/func/other.html | 16 | ||||
-rw-r--r-- | html/en/func/polygon.html | 10 | ||||
-rw-r--r-- | html/en/func/region.html | 10 | ||||
-rw-r--r-- | html/en/func/server.html | 12 | ||||
-rw-r--r-- | html/en/func/text.html | 26 | ||||
-rw-r--r-- | html/en/func/vectortext.html | 28 | ||||
-rw-r--r-- | html/en/func/wd.html | 26 | ||||
-rw-r--r-- | html/en/to_do.html | 11 |
17 files changed, 189 insertions, 176 deletions
diff --git a/html/en/drv/gl.html b/html/en/drv/gl.html index cff89db..e7c07d5 100644 --- a/html/en/drv/gl.html +++ b/html/en/drv/gl.html @@ -74,7 +74,7 @@ must be set with the new size or cdCanvasGetSize will return an incorrect value. <ul> <li><a href="../func/lines.html#cdBegin"> <font face="Courier"><strong>Begin</strong></font></a>: <strong><tt>CD_PATH</tt></strong> - is simulated.</li> + is simulated. CD_FILL allows convex polygons only.</li> <li>Floating point primitives are supported.</li> </ul> <h4>Client Images</h4> diff --git a/html/en/func/client.html b/html/en/func/client.html index 20a6c4e..93fd9b2 100644 --- a/html/en/func/client.html +++ b/html/en/func/client.html @@ -21,7 +21,7 @@ <p>The Put functions may do zoom in or out; zero order interpolation is used to scale the image. It is not possible to specify a part of the image to be drawn.</p> <hr> - <pre class="function"><span class="mainFunction">void <a name="cdGetImageRGB">cdCanvasGetImageRGB</a>(cdCanvas* canvas, unsigned char *r, + <div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetImageRGB">cdCanvasGetImageRGB</a>(cdCanvas* canvas, unsigned char *r, unsigned char *g, unsigned char *b, int x, int y, int w, int h); [in C]</span> @@ -34,7 +34,7 @@ canvas:GetImageRGB(imagergb: cdImageRGB; x, y: number) [in Lua]</pre> library, the pixel <strong><tt>(0,0)</tt></strong> is at the bottom left corner, and the pixel <strong><tt>(w-1,h-1)</tt></strong> is that the upper right corner of the image rectangle.</p> - <pre class="function"><span class="mainFunction">void <a name="cdPutImageRectRGB">cdCanvasPutImageRectRGB</a>(cdCanvas* canvas, int iw, int ih, + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPutImageRectRGB">cdCanvasPutImageRectRGB</a>(cdCanvas* canvas, int iw, int ih, const unsigned char *r, const unsigned char *g, const unsigned char *b, @@ -69,7 +69,7 @@ canvas:wPutImageRectRGB(imagergb: cdImageRGB; x, y, w, h, xmin, xmax, ymin, ymax <p>If the driver has bpp <=8 or only 256 colors or less, then the image is converted to 256 optimal colors using the function <strong><font>cdRGB2Map</font></strong> and is drawn using <strong><font>cdPutImageRectMap</font></strong>.</p> - <pre class="function"><span class="mainFunction">void <a name="cdPutImageRectRGBA">cdCanvasPutImageRectRGBA</a>(cdCanvas* canvas, int iw, int ih, + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPutImageRectRGBA">cdCanvasPutImageRectRGBA</a>(cdCanvas* canvas, int iw, int ih, const unsigned char *r, const unsigned char *g, const unsigned char *b, @@ -96,7 +96,7 @@ canvas:wPutImageRectRGBA(imagergba: cdImageRGBA; x, y, w, h, xmin, xmax, ymin, y <p>If this function is not defined for a given driver or if alpha is <font>NULL</font>, then the function <strong><font>cdPutImageRectRGB</font></strong> is used, as long as it is defined.</p> - <pre class="function"><span class="mainFunction">void <a name="cdPutImageRectMap">cdCanvasPutImageRectMap</a>(cdCanvas* canvas, int iw, int ih, + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPutImageRectMap">cdCanvasPutImageRectMap</a>(cdCanvas* canvas, int iw, int ih, const unsigned char *index, const long int *colors, int x, int y, int w, int h, @@ -114,7 +114,7 @@ canvas:wPutImageRectMap(imagemap: cdImageMap; palette: cdPalette; x, y, w, h, xm (map). The color corresponding to a given index is given in <font><b>colors[index]</b></font>. The map is also a matrix stored as a byte vector. If the color vector is null, then a vector with 256 gray tones is assumed.</p> - <pre class="function"><span class="mainFunction">void <a name="cdRGB2Map">cdRGB2Map</a>(int iw, int ih, + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdRGB2Map">cdRGB2Map</a>(int iw, int ih, const unsigned char *r, const unsigned char *g, const unsigned char *b, @@ -126,7 +126,7 @@ cd.RGB2Map(imagergb: cdImageRGB, imagemap: cdImageMap, palette: cdPalette) [in L image must have the same size (width x length) as the RGB image. It is necessary to allocate memory for the arrays <strong><font>map</font></strong> and <strong><font>colors</font></strong>. This is the same algorithm used in the IM - library - in fact, the same code.</p> + library - in fact, the same code.</p></div> <h3>Extras</h3> <p>The following functions are used only for encapsulating the several types of client images from the library in a single structure, simplifying their @@ -138,7 +138,7 @@ cd.RGB2Map(imagergb: cdImageRGB, imagemap: cdImageMap, palette: cdPalette) [in L int w /* image width */ int h /* image heigth */ int type /* image type: CD_RGBA, CD_RGB or CD_MAP */</pre> - <pre class="function"><span class="mainFunction">cdBitmap* <a name="cdCreateBitmap">cdCreateBitmap</a>(int w, int h, int type); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">cdBitmap* <a name="cdCreateBitmap">cdCreateBitmap</a>(int w, int h, int type); [in C]</span> cd.CreateBitmap(w, h, type: number) -> (bitmap: cdBitmap) [in Lua]</pre> <p>Creates an image with width <strong>w</strong>, and height <strong>h</strong> and @@ -149,7 +149,7 @@ cd.CreateBitmap(w, h, type: number) -> (bitmap: cdBitmap) [in Lua]</pre> Internally, the color palette is always allocated with 256 entries, which may or may not be totally fulfilled. In this case, the value of <strong>type</strong> can be changed as wished.</p> - <pre class="function"><span class="mainFunction">cdBitmap* <a name="cdInitBitmap">cdInitBitmap</a>(int w, int h, int type, ...); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">cdBitmap* <a name="cdInitBitmap">cdInitBitmap</a>(int w, int h, int type, ...); [in C]</span> [There is no equivalent in Lua]</pre> <p>Similar to <strong><font>cdCreateBitmap</font></strong>, but it accepts the @@ -158,12 +158,12 @@ cd.CreateBitmap(w, h, type: number) -> (bitmap: cdBitmap) [in Lua]</pre> <pre><font>CD_RGBA - (unsigned char* red, unsigned char* green, unsigned char* blue, unsigned char* alpha) CD_RGB - (unsigned char* red, unsigned char* green, unsigned char* blue) CD_MAP - (unsigned char* index, lont int* colors)</font></pre> - <pre class="function"><span class="mainFunction">void <a name="cdKillBitmap">cdKillBitmap</a>(cdBitmap* image); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdKillBitmap">cdKillBitmap</a>(cdBitmap* image); [in C]</span> cd.KillBitmap(bitmap: cdBitmap) [in Lua]</pre> <p>Liberates the memory allocated for the image. If this function is not called in Lua, the garbage collector will call it.</p> - <pre class="function"><span class="mainFunction">unsigned char* <a name="cdBitmapGetData">cdBitmapGetData</a>(cdBitmap* image, int dataptr); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">unsigned char* <a name="cdBitmapGetData">cdBitmapGetData</a>(cdBitmap* image, int dataptr); [in C]</span> cd.BitmapGetData(bitmap: cdBitmap; dataptr: number) -> (data: cdImageChannel) [in Lua]</pre> <p>Returns a pointer to the image's data area according to <font><strong>dataptr</strong></font>. @@ -177,13 +177,13 @@ cd.BitmapGetData(bitmap: cdBitmap; dataptr: number) -> (data: cdImageChannel) <p>In Lua, channels are also available as tables, see <a href="#DataAccess">Data Access</a>. </p> - <pre class="function"><span class="mainFunction">void <a name="cdBitmapSetRect">cdBitmapSetRect</a>(cdBitmap* image, int xmin, int xmax, int ymin, int ymax); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdBitmapSetRect">cdBitmapSetRect</a>(cdBitmap* image, int xmin, int xmax, int ymin, int ymax); [in C]</span> cd.BitmapSetRect(bitmap: cdBitmap; xmin, xmax, ymin, ymax: number) [in Lua]</pre> <p>Allows specifying a region of interest inside the image to be used by the function <b><font>cdPutBitmap</font></b>. If no region was defined, the whole image is used, that is, (0, w-1, 0, h-1).</p> - <pre class="function"><span class="mainFunction">void <a name="cdPutBitmap">cdCanvasPutBitmap</a>(cdCanvas* canvas, cdBitmap* image, int x, int y, int w, int h); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPutBitmap">cdCanvasPutBitmap</a>(cdCanvas* canvas, cdBitmap* image, int x, int y, int w, int h); [in C]</span> void wdCanvasPutBitmap(cdCanvas* canvas, cdBitmap* image, double x, double y, double w, double h); (WC) [in C] canvas:PutBitmap(image: cdBitmap; x, y, w, h: number) [in Lua] @@ -197,35 +197,35 @@ canvas:wPutBitmap(bitmap: cdBitmap; x, y, w, h: number) (WC) [in Lua]</pre> image, increasing or decreasing its dimensions when drawn. If <strong>w</strong> and/or <strong>h</strong> are 0, then no scale change is assumed. </p> - <pre class="function"><span class="mainFunction">void <a name="cdGetBitmap">cdCanvasGetBitmap</a>(cdCanvas* canvas, cdBitmap* image, int x, int y); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetBitmap">cdCanvasGetBitmap</a>(cdCanvas* canvas, cdBitmap* image, int x, int y); [in C]</span> canvas:GetBitmap(bitmap: cdBitmap; x, y: number) [in Lua]</pre> <p>Encapsulates <strong><font>cdGetImageRGB</font></strong>. Nothing happens if the image is MAP.</p> - <pre class="function"><span class="mainFunction">void <a name="cdBitmapRGB2Map">cdBitmapRGB2Map</a>(cdBitmap* image_rgb, cdBitmap* image_map); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdBitmapRGB2Map">cdBitmapRGB2Map</a>(cdBitmap* image_rgb, cdBitmap* image_map); [in C]</span> cd.BitmapRGB2Map(bitmap_rgb: cdBitmap, bitmap_map: cdBitmap) [in Lua]</pre> <p>Encapsulates <strong><font>cdRGB2Map</font></strong>. The images must be of - types <font>RGB(A)</font> and <font>MAP</font>, respectively.</p> + types <font>RGB(A)</font> and <font>MAP</font>, respectively.</p></div> <h3>Extras in Lua (Deprecated)</h3> - <pre class="function"><a name="cdCreateImageRGB">cd.CreateImageRGB</a>(width, height: number) -> (imagergb: cdImageRGB)</pre> + <div class="function"><pre class="function"><a name="cdCreateImageRGB">cd.CreateImageRGB</a>(width, height: number) -> (imagergb: cdImageRGB)</pre> <p>Creates an RGB image in Lua. Deprecated use <strong>cd.CreateBitmap</strong>.</p> - <pre class="function"><a name="cdKillImageRGB">cd.KillImageRGB</a>(imagergb: cdImageRGB)</pre> + </div><div class="function"><pre class="function"><a name="cdKillImageRGB">cd.KillImageRGB</a>(imagergb: cdImageRGB)</pre> <p>Destroys the created RGB image and liberates allocated memory. If this function is not called in Lua, the garbage collector will call it. Deprecated use <strong> cd.KillBitmap</strong>.</p> - <pre class="function"><a name="cdCreateImageRGBA">cd.CreateImageRGBA</a>(width, height: number) -> (imagergba: cdImageRGBA)</pre> + </div><div class="function"><pre class="function"><a name="cdCreateImageRGBA">cd.CreateImageRGBA</a>(width, height: number) -> (imagergba: cdImageRGBA)</pre> <p>Creates an RGBA image in Lua. Deprecated use <strong>cd.CreateBitmap</strong>.</p> - <pre class="function"><a name="cdKillImageRGBA">cd.KillImageRGBA</a>(imagergba: cdImageRGBA)</pre> + </div><div class="function"><pre class="function"><a name="cdKillImageRGBA">cd.KillImageRGBA</a>(imagergba: cdImageRGBA)</pre> <p>Destroys the created RGBA image and liberates allocated memory. If this function is not called in Lua, the garbage collector will call it. Deprecated use <strong> cd.KillBitmap</strong>.</p> - <pre class="function"><a name="cdCreateImageMap">cd.CreateImageMap</a>(width, height: number) -> (imagemap: cdImageMap)</pre> + </div><div class="function"><pre class="function"><a name="cdCreateImageMap">cd.CreateImageMap</a>(width, height: number) -> (imagemap: cdImageMap)</pre> <p>Creates a Map image in Lua. Deprecated use <strong>cd.CreateBitmap</strong>.</p> - <pre class="function"><a name="cdKillImageMap">cd.KillImageMap</a>(imagemap: cdImageMap)</pre> + </div><div class="function"><pre class="function"><a name="cdKillImageMap">cd.KillImageMap</a>(imagemap: cdImageMap)</pre> <p>Destroys the created Map image and liberates allocated memory. If this function is not called in Lua, the garbage collector will call it. Deprecated use <strong> - cd.KillBitmap</strong>.</p> + cd.KillBitmap</strong>.</p></div> <h3><a name="DataAccess">Data Access</a></h3> <p>Data access in Lua is done directly using the operator "<font>[y*width + x]</font>" in image channels. Each channel works as a value table which should be diff --git a/html/en/func/clipping.html b/html/en/func/clipping.html index 00bbbdd..d875b17 100644 --- a/html/en/func/clipping.html +++ b/html/en/func/clipping.html @@ -19,7 +19,7 @@ texts.</p> <p>The <b>Clip</b> function activates and deactivaes the clipping.</p> <hr> - <pre class="function"><span class="mainFunction">int cdCanvasClip(cdCanvas* canvas, int mode); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">int cdCanvasClip(cdCanvas* canvas, int mode); [in C]</span> canvas:Clip(mode: number) -> (old_mode: number) [in Lua]</pre> <p>Activates or deactivates clipping. Returns the previous status. Values: <b>CD_CLIPAREA, @@ -41,7 +41,7 @@ canvas:Clip(mode: number) -> (old_mode: number) [in Lua]</pre> polygon and complex region without having to define them again. Also if the active clipping region is re-defined it immediately becomes the current clipping region.</p> - <pre class="function"><span class="mainFunction">void cdCanvasClipArea(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void cdCanvasClipArea(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]</span> void cdfCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C] void wdCanvasClipArea(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); (WC) [in C] @@ -51,7 +51,7 @@ canvas:wClipArea(xmin, xmax, ymin, ymax: number) (WC) [in Lua]</pre> x <= xmax</b></i> and<b> </b><i><b>ymin <= y <= ymax</b></i> will be printed. Default region: (0, w-1, 0, h-1). </p> - <pre class="function"><span class="mainFunction">int cdCanvasGetClipArea(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">int cdCanvasGetClipArea(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> int cdfCanvasGetClipArea(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); [in C] int wdCanvasGetClipArea(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); (WC) [in C] @@ -59,9 +59,9 @@ canvas:GetClipArea() -> (xmin, xmax, ymin, ymax, status: number) [in Lua] canvas:wGetClipArea() -> (xmin, xmax, ymin, ymax, status: number) (WC) [in Lua]</pre> <p>Returns the rectangle and the clipping status. It is not necessary to provide all return pointers, you can provide only the desired values and <i><b>NULL</b></i> - for the others.</p> - <h4><a name="Polygons">Polygons</a></h4> + for the others.</p></div> + <div class="function"><pre class="function"><span class="mainFunction"><a name="Polygons">Polygons</a></span></pre> <p>A polygon for clipping can be created using <font face="Courier"><strong>cdBegin(</strong>CD_CLIP<strong>)/cdVertex(x,y)/.../cdEnd()</strong></font>.</p> - <p>See the documentation of <a href="polygon.html">cdBegin/cdVertex/cdEnd</a>.</p> + <p>See the documentation of <a href="polygon.html">cdBegin/cdVertex/cdEnd</a>.</p></div> </body> </html> diff --git a/html/en/func/color.html b/html/en/func/color.html index fbd4b52..de8216a 100644 --- a/html/en/func/color.html +++ b/html/en/func/color.html @@ -36,19 +36,19 @@ CD_DARK_GRAY = (128,128,128) CD_GRAY = (192,192,192) </pre> <hr> - <pre class="function"><span class="mainFunction">long int <a name="cdEncodeColor">cdEncodeColor</a>(unsigned char red, unsigned char green, unsigned char blue) [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">long int <a name="cdEncodeColor">cdEncodeColor</a>(unsigned char red, unsigned char green, unsigned char blue) [in C]</span> cd.EncodeColor(r, g, b: number) -> (old_color: lightuserdata) [in Lua]</pre> <p>Returns a codified triple (<em>r,g,b</em>) in a long integer such as <b><tt>0x00RRGGBB</tt></b>, where <tt><b>RR</b> </tt>are the red components, <b><tt>GG</tt></b> are the green ones and <b><tt>BB</tt></b> are the blue ones. The code is used in the CD library to define colors. It can be used without an active canvas.</p> - <pre class="function"><span class="mainFunction">void <a name="cdDecodeColor">cdDecodeColor</a>(long int color, unsigned char *red, unsigned char *green, unsigned char *blue) [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdDecodeColor">cdDecodeColor</a>(long int color, unsigned char *red, unsigned char *green, unsigned char *blue) [in C]</span> cd.DecodeColor(color: lightuserdata) -> (r, g, b: number) [in Lua]</pre> <p>Returns the red, green and blue components of a color in the CD library. Can be used without an active canvas.</p> - <pre class="function"><span class="mainFunction">long int <a name="cdEncodeAlpha">cdEncodeAlpha</a>(long int color, unsigned char alpha) [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">long int <a name="cdEncodeAlpha">cdEncodeAlpha</a>(long int color, unsigned char alpha) [in C]</span> cd.EncodeAlpha(color: lightuserdata, alpha: number) -> (color: lightuserdata) [in Lua]</pre> <p>Returns the given color coded with the alpha information. ATENTION: At the @@ -60,40 +60,40 @@ cd.EncodeAlpha(color: lightuserdata, alpha: number) -> (color: lightuserdata) must be 0 and opaque for backward compatibility, so you should use the <strong>cdDecodeAlpha</strong> function or the <strong>cdAlpha</strong> macro to retrieve the alpha component. 0 is transparent, 255 is opaque.</p> - <pre class="function"><span class="mainFunction">unsigned char <a name="cdDecodeAlpha">cdDecodeAlpha</a>(long int color) [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">unsigned char <a name="cdDecodeAlpha">cdDecodeAlpha</a>(long int color) [in C]</span> cd.DecodeAlpha(color: lightuserdata) -> (a: number) [in Lua]</pre> <p>Returns the alpha component of a color in the CD library. Can be used without an active canvas. 0 is transparent, 255 is opaque.</p> - <pre class="function"><span class="mainFunction">unsigned char <a name="cdRed0">cdAlpha</a>(long int color); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">unsigned char <a name="cdRed0">cdAlpha</a>(long int color); [in C]</span> cd.Alpha(color: lightuserdata) -> (r: number) [in Lua]</pre> <p>Macro that returns the alpha component of a color in the CD library. Can be used without an active canvas.</p> - <pre class="function"><span class="mainFunction">unsigned char <a name="cdRed">cdRed</a>(long int color); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">unsigned char <a name="cdRed">cdRed</a>(long int color); [in C]</span> cd.Red(color: lightuserdata) -> (r: number) [in Lua]</pre> <p>Macro that returns the red component of a color in the CD library. Can be used without an active canvas.</p> - <pre class="function"><span class="mainFunction">unsigned char <a name="cdGreen">cdGreen</a>(long int color); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">unsigned char <a name="cdGreen">cdGreen</a>(long int color); [in C]</span> cd.Green(color: lightuserdata) -> (g: number) [in Lua]</pre> <p>Macro that returns the green component of a color in the CD library. Can be used without an active canvas.</p> - <pre class="function"><span class="mainFunction">unsigned char <a name="cdBlue">cdBlue</a>(long int color); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">unsigned char <a name="cdBlue">cdBlue</a>(long int color); [in C]</span> cd.Blue(color: lightuserdata) -> (b: number) [in Lua]</pre> <p>Macro that returns the blue component of a color in the CD library. Can be used without an active canvas.</p> <hr> - <pre class="function"><span class="mainFunction">int <a name="cdGetColorPlanes">cdCanvasGetColorPlanes</a>(cdCanvas* canvas); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdGetColorPlanes">cdCanvasGetColorPlanes</a>(cdCanvas* canvas); [in C]</span> canvas:GetColorPlanes() -> (bpp: number) [in Lua]</pre> <p>Returns a given number, for instance <i>p</i>, which defines the number of colors supported by the current device as <i>2<sup>p</sup></i>, representing the number of bits by pixel. </p> - <pre class="function"><span class="mainFunction">void <a name="cdPalette">cdCanvasPalette</a>(cdCanvas* canvas, int n, const long int *color, int mode); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPalette">cdCanvasPalette</a>(cdCanvas* canvas, int n, const long int *color, int mode); [in C]</span> canvas:Palette(palette: cdPalette; mode: number) [in Lua]</pre> <p>In systems limited to 256 palette colors, this function aims at adding <b><tt> @@ -104,15 +104,15 @@ canvas:Palette(palette: cdPalette; mode: number) [in Lua]</pre> since the menus and dialogues may be in illegible colors, but there will be more colors available. <tt><b>CD_POLITE</b></tt> is the recommended type. It must always be used before drawing. It cannot be queried.</p> - +</div> <h3><a name="Palette">Palette</a></h3> - <pre class="function"><a name="cdCreatePalette">cd.CreatePalette</a>(size: number) -> (palette: cdPalette) [in Lua Only]</pre> + <div class="function"><pre class="function"><a name="cdCreatePalette">cd.CreatePalette</a>(size: number) -> (palette: cdPalette) [in Lua Only]</pre> <p>Creates a palette.</p> - <pre class="function"><a name="cdKillPalette">cd.KillPalette</a>(palette: cdPalette) [in Lua Only]</pre> + </div><div class="function"><pre class="function"><a name="cdKillPalette">cd.KillPalette</a>(palette: cdPalette) [in Lua Only]</pre> <p>Destroys the created palette and liberates allocated memory. If this function is not called in Lua, the garbage collector will call it.</p> - +</div> <h3>Palette <a name="DataAccess">Data Access</a></h3> <p>Data access in Lua is done directly using the array access operators. The diff --git a/html/en/func/control.html b/html/en/func/control.html index 5ccdd1c..42b8762 100644 --- a/html/en/func/control.html +++ b/html/en/func/control.html @@ -8,7 +8,7 @@ </head> <body> <h2 align="center">Canvas Control</h2> - <pre class="function"><span class="mainFunction">void cdCanvasClear(cdCanvas* canvas); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">void cdCanvasClear(cdCanvas* canvas); [in C]</span> canvas:Clear() [in Lua]</pre> <p>Cleans the active canvas using the current background color. This action is @@ -16,48 +16,50 @@ canvas:Clear() [in Lua]</pre> rectangle with the current background color. It is NOT necessary to call <font>cdClear</font> when the canvas has just been created, as at this moment it is already clean. Most file-based drivers do not implement this function.</p> - <pre class="function"><span class="mainFunction">void cdCanvasFlush(cdCanvas* canvas); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void cdCanvasFlush(cdCanvas* canvas); [in C]</span> canvas:Flush() [in Lua]</pre> <p>Has a different meaning for each driver. It is useful to send information to buffered devices and to move to a new page or layer. In all cases, the current canvas attributes are preserved.</p> + </div> <hr> - <pre class="function"><span class="mainFunction">cdState* <a name="cdSaveState">cdCanvasSaveState</a>(cdCanvas* canvas); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">cdState* <a name="cdSaveState">cdCanvasSaveState</a>(cdCanvas* canvas); [in C]</span> canvas:SaveState() -> (state: cdState) [in Lua]</pre> <p>Saves the state of attributes of the active canvas. It does not save cdPlay callbacks, polygon creation states (begin/vertex/vertex/...), the palette, complex clipping regions and driver internal attributes.</p> - <pre class="function"><span class="mainFunction">void <a name="cdRestoreState">cdCanvasRestoreState</a>(cdCanvas* canvas, cdState* state); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdRestoreState">cdCanvasRestoreState</a>(cdCanvas* canvas, cdState* state); [in C]</span> canvas:RestoreState(state: cdState) [in Lua]</pre> <p>Restores the attribute state of the active canvas. It can be used between canvases of different contexts. It can be used several times for the same state. </p> - <pre class="function"><span class="mainFunction">void <a name="cdReleaseState">cdReleaseState</a>(cdState* state); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdReleaseState">cdReleaseState</a>(cdState* state); [in C]</span> cd.ReleaseState(state: cdState) [in Lua]</pre> <p>Releases the memory allocated by the <strong><font>cdSaveState</font></strong> function. If this function is not called in Lua, the garbage collector will call it.</p> - <hr> - <pre class="function"><span class="mainFunction">void <a name="cdSetAttribute">cdCanvasSetAttribute</a>(cdCanvas* canvas, const char* name, char* data); [in C]</span> + + </div><hr><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdSetAttribute">cdCanvasSetAttribute</a>(cdCanvas* canvas, const char* name, char* data); [in C]</span> canvas:SetAttribute(name, data: string) [in Lua]</pre> <p>Modifies a custom attribute directly in the driver of the active canvas. If the driver does not have this attribute, the call is ignored.</p> - <pre class="function"><span class="mainFunction">void <a name="cdSetfAttribute">cdCanvasSetfAttribute</a>(cdCanvas* canvas, const char* name, const char* format, ...); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdSetfAttribute">cdCanvasSetfAttribute</a>(cdCanvas* canvas, const char* name, const char* format, ...); [in C]</span> [There is no equivalent in Lua]</pre> <p>Same as <strong><font>cdSetAttribute</font></strong>, used for the case in which the parameter <b><font>data</font></b> is a string composed by several parameters. It can be used with parameters equivalent to those of the <b><font> printf</font></b> function from the standard C library.</p> - <pre class="function"><span class="mainFunction">char* <a name="cdGetAttribute">cdCanvasGetAttribute</a>(cdCanvas* canvas, const char* name); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">char* <a name="cdGetAttribute">cdCanvasGetAttribute</a>(cdCanvas* canvas, const char* name); [in C]</span> canvas:SetAttribute(name: string) -> (data: string) [in Lua]</pre> <p>Returns a custom attribute from the driver of the active canvas. If the driver does not have this attribute, it returns <font>NULL</font>.</p> + </div> </body> </html>
\ No newline at end of file diff --git a/html/en/func/coordinates.html b/html/en/func/coordinates.html index a56b12d..ffaed2a 100644 --- a/html/en/func/coordinates.html +++ b/html/en/func/coordinates.html @@ -11,14 +11,14 @@ <body> <h2 align="center">Coordinate System</h2> -<pre class="function"><span class="mainFunction">void <a name="cdGetCanvasSize">cdCanvasGetSize</a>(cdCanvas* canvas, int *width, int *height, double *width_mm, double *height_mm); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetCanvasSize">cdCanvasGetSize</a>(cdCanvas* canvas, int *width, int *height, double *width_mm, double *height_mm); [in C]</span> canvas:GetSize() -> (width, height, mm_width, mm_height: number) [in Lua]</pre> <p>Returns the canvas size in pixels and in millimeters. You can provide only the desired values and <font>NULL</font> for the others.</p> -<pre class="function"><span class="mainFunction">int <a name="cdYAxisMode">cdCanvasYAxisMode</a>(cdCanvas* canvas, int invert); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdYAxisMode">cdCanvasYAxisMode</a>(cdCanvas* canvas, int invert); [in C]</span> canvas:YAxisMode(invert: number) -> (old_invert: number) [in Lua]</pre> @@ -30,7 +30,7 @@ canvas:YAxisMode(invert: number) -> (old_invert: number) [in Lua]</pre> orientation, with that you can in fact invert the orientation of the CD primitives.</p> -<pre class="function"><span class="mainFunction">int <a name="cdUpdateYAxis">cdCanvasUpdateYAxis</a>(cdCanvas* canvas, int *y); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdUpdateYAxis">cdCanvasUpdateYAxis</a>(cdCanvas* canvas, int *y); [in C]</span> double cdfCanvasUpdateYAxis(cdCanvas* canvas, double *y); [in C] int cdCanvasInvertYAxis(cdCanvas* canvas, int y); [in C] double cdfCanvasInvertYAxis(cdCanvas* canvas, double y); [in C] @@ -45,7 +45,7 @@ canvas:InvertYAxis(yc: number) -> (yr: number) [in Lua]</pre> the given value, the "Update" function will invert only if the canvas has the Y axis inverted.</p> -<pre class="function"><span class="mainFunction">void cdCanvasMM2Pixel(cdCanvas* canvas, double mm_dx, double mm_dy, int *dx, int *dy); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void cdCanvasMM2Pixel(cdCanvas* canvas, double mm_dx, double mm_dy, int *dx, int *dy); [in C]</span> void cdfCanvasMM2Pixel(cdCanvas* canvas, double mm_dx, double mm_dy, double *dx, double *dy); [in C] canvas:MM2Pixel(mm_dx, mm_dy: number) -> (dx, dy: number) [in Lua] @@ -55,7 +55,7 @@ canvas:fMM2Pixel(mm_dx, mm_dy: number) -> (dx, dy: number) [in Lua]</pre> provide only the desired values and <font>NULL</font> for the others.</p> -<pre class="function"><span class="mainFunction">void cdCanvasPixel2MM(cdCanvas* canvas, int dx, int dy, double *mm_dx, double *mm_dy); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void cdCanvasPixel2MM(cdCanvas* canvas, int dx, int dy, double *mm_dx, double *mm_dy); [in C]</span> void cdfCanvasPixel2MM(cdCanvas* canvas, double dx, double dy, double *mm_dx, double *mm_dy); [in C] canvas:Pixel2MM(dx, dy: number) -> (mm_dx, mm_dy: number) [in Lua] @@ -68,7 +68,7 @@ canvas:fPixel2MM(dx, dy: number) -> (mm_dx, mm_dy: number) [in Lua]</pre> <font>dy</font>. The resolution value is obtained using the formula <strong><font>res=1.0/mm</font></strong>.</p> -<pre class="function"><span class="mainFunction">void cdCanvasOrigin(cdCanvas* canvas, int x, int y); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void cdCanvasOrigin(cdCanvas* canvas, int x, int y); [in C]</span> void cdfCanvasOrigin(cdCanvas* canvas, double x, double y); [in C] canvas:Origin(x, y: number) [in Lua] @@ -80,7 +80,7 @@ canvas:fOrigin(x, y: number) [in Lua]</pre> canvas in the respective driver. Default values: (0, 0)</p> -<pre class="function"><span class="mainFunction">void cdCanvasGetOrigin(cdCanvas* canvas, int *x, int *y); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void cdCanvasGetOrigin(cdCanvas* canvas, int *x, int *y); [in C]</span> void cdfCanvasGetOrigin(cdCanvas* canvas, double *x, double *y); [in C] canvas:GetOrigin() -> (x, y: number) [in Lua] @@ -88,10 +88,10 @@ canvas:fGetOrigin() -> (x, y: number) [in Lua]</pre> <p>Returns the origin.</p> - +</div> <h3>Transformation Matrix</h3> -<pre class="function"><span class="mainFunction">void <a name="cdTransform">cdCanvasTransform</a>(cdCanvas* canvas, const double* matrix); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTransform">cdCanvasTransform</a>(cdCanvas* canvas, const double* matrix); [in C]</span> canvas:Transform(matrix: table) [in Lua]</pre> @@ -113,46 +113,46 @@ functions. And those are affected if a transformation is set, just like other regular primitives.</p> -<pre class="function"><span class="mainFunction">double* <a name="cdGetTransform">cdCanvasGetTransform</a>(cdCanvas* canvas); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">double* <a name="cdGetTransform">cdCanvasGetTransform</a>(cdCanvas* canvas); [in C]</span> canvas:GetTransformation() -> (matrix: table) [in Lua]</pre> <p>Returns the transformation matrix. If the identity is set, returns NULL.</p> -<pre class="function"><span class="mainFunction">void <a name="cdTransformMultiply">cdCanvasTransforMultiply</a>(cdCanvas* canvas, const double* matrix); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTransformMultiply">cdCanvasTransforMultiply</a>(cdCanvas* canvas, const double* matrix); [in C]</span> canvas:TransformMultiply(matrix: table) [in Lua]</pre> <p>Left multiply the current transformation by the given transformation.</p> -<pre class="function"><span class="mainFunction">void <a name="cdTransformTranslate">cdCanvasTransformTranslate</a>(cdCanvas* canvas, double dx, double dy); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTransformTranslate">cdCanvasTransformTranslate</a>(cdCanvas* canvas, double dx, double dy); [in C]</span> canvas:TransformTranslate(dx, dy: number) [in Lua]</pre> <p>Applies a translation to the current transformation.</p> -<pre class="function"><span class="mainFunction">void <a name="cdTransformScale">cdCanvasTransformScale</a>(cdCanvas* canvas, double sx, double sy); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTransformScale">cdCanvasTransformScale</a>(cdCanvas* canvas, double sx, double sy); [in C]</span> canvas:TransformScale(sx, sy: number) [in Lua]</pre> <p>Applies a scale to the current transformation.</p> -<pre class="function"><span class="mainFunction">void <a name="cdTransformRotate">cdCanvasTransformRotate</a>(cdCanvas* canvas, double angle); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTransformRotate">cdCanvasTransformRotate</a>(cdCanvas* canvas, double angle); [in C]</span> canvas:TransformRotate(angle: number) [in Lua]</pre> <p>Applies a rotation to the current transformation. Angle is in degrees, oriented counter-clockwise from the horizontal axis.</p> -<pre class="function"><span class="mainFunction">void <a name="cdTransformPoint">cdCanvasTransformPoint</a>(cdCanvas* canvas, int x, int y, int *tx, int *ty); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTransformPoint">cdCanvasTransformPoint</a>(cdCanvas* canvas, int x, int y, int *tx, int *ty); [in C]</span> void cdfCanvasTransformPoint(cdCanvas* canvas, double x, double y, double *tx, double *ty); [in C] canvas:TransformPoint(x, y: number) -> (tx, ty: number) [in Lua] canvas:fTransformPoint(x, y: number) -> (tx, ty: number) [in Lua]</pre> <p>Applies a transformation to a given point.</p> - +</div> </body> </html>
\ No newline at end of file diff --git a/html/en/func/init.html b/html/en/func/init.html index 17092c8..8b3bccb 100644 --- a/html/en/func/init.html +++ b/html/en/func/init.html @@ -11,7 +11,7 @@ <body> <h2 align="center">Canvas Initialization</h2> -<pre class="function"><span class="mainFunction">cdCanvas *<a name="cdCreateCanvas">cdCreateCanvas(cdContext* ctx, void *data)</a>; [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">cdCanvas *<a name="cdCreateCanvas">cdCreateCanvas(cdContext* ctx, void *data)</a>; [in C]</span> cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas) [in Lua]</pre> @@ -33,6 +33,8 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas) <li><a href="../drv/iup.html"><b>CD_IUP</b></a> = IUP Canvas (<b>cdiup.h</b>).</li> <li><a href="../drv/native.html"><b>CD_NATIVEWINDOW</b></a> = Native Window (<b>cdnative.h</b>).</li> + <li><b><a href="../drv/gl.html">CD_GL</a></b> = Native + Window (<b>cdgl.h</b>).</li> </ul> @@ -77,7 +79,7 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas) Metafile (<b>cdwmf.h</b>). Works only in MS Windows systems.</li> </ul> -<pre class="function"><span class="mainFunction">cdCanvas* <a name="cdCreateCanvasf">cdCreateCanvasf(cdContext *ctx, const char* format, ...)</a>; [in C] +</div><div class="function"><pre class="function"><span class="mainFunction">cdCanvas* <a name="cdCreateCanvasf">cdCreateCanvasf(cdContext *ctx, const char* format, ...)</a>; [in C] </span><font> </font>[There is no equivalent in Lua]</pre> @@ -85,14 +87,14 @@ cd.CreateCanvas(ctx: number, data: string or userdata) -> (canvas: cdCanvas) <font>data</font></b> is a string composed by several parameters. This function can be used with parameters equivalent to the <b><font>printf</font></b> function from the default C library.</p> -<pre class="function"><span class="mainFunction">void <a name="cdKillCanvas">cdKillCanvas(cdCanvas *canvas)</a>; [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdKillCanvas">cdKillCanvas(cdCanvas *canvas)</a>; [in C]</span> cd.KillCanvas(canvas: cdCanvas) [in Lua]</pre> <p>Destroys a previously created canvas. If this function is not called in Lua, the garbage collector will call it.</p> -<pre class="function"><span class="mainFunction">int <a name="cdCanvasActivate">cdCanvasActivate</a>(cdCanvas *canvas); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdCanvasActivate">cdCanvasActivate</a>(cdCanvas *canvas); [in C]</span> canvas:Activate(canvas: cdCanvas) -> (status: number) [in Lua]</pre> @@ -102,7 +104,7 @@ canvas:Activate(canvas: cdCanvas) -> (status: number) [in Lua]</pre> canvas size has changed. In these cases the function MUST be called, for other drivers is useless. Returns CD_ERROR or CD_OK.</p> -<pre class="function"><span class="mainFunction">void <a name="cdCanvasDeactivate">cdCanvasDeactivate</a>(cdCanvas* canvas); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdCanvasDeactivate">cdCanvasDeactivate</a>(cdCanvas* canvas); [in C]</span> canvas:Deactivate(canvas: cdCanvas) [in Lua]</pre> @@ -111,14 +113,14 @@ canvas:Deactivate(canvas: cdCanvas) [in Lua]</pre> can not be retained, the drawing can only be done again after a <strong> cdCanvasActivate</strong>. On some drivers will simply call <a href="control.html#cdFlush">Flush</a>.</p> -<pre class="function"><span class="mainFunction">int <a name="cdUseContextPlus">cdUseContextPlus</a>(int use); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdUseContextPlus">cdUseContextPlus</a>(int use); [in C]</span> cd.UseContextPlus(use: boolean) -> (old_use: boolean) [in Lua]</pre> <p>Activates or deactivates the use of an external context for the next calls of the <font face="Courier"><b> <a href="../func/init.html#cdCreateCanvas">cdCreateCanvas</a></b></font> function.</p> -<pre class="function"><span class="mainFunction">void <a name="cdInitContextPlus">cdInitContextPlus</a>(void); [in C] +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdInitContextPlus">cdInitContextPlus</a>(void); [in C] </span> cd.InitContextPlus() [in Lua]</pre> <p>Initializes the context driver to use another context replacing the standard drivers. @@ -130,14 +132,13 @@ transparency.</p> <p>In Lua, when using require"cdluacontextplus" this function will be automatically called.</p> -<hr> -<pre class="function"><span class="mainFunction">cdContext* cdCanvasGetContext(cdCanvas *canvas); [in C]</span> +</div><hr><div class="function"><pre class="function"><span class="mainFunction">cdContext* cdCanvasGetContext(cdCanvas *canvas); [in C]</span> canvas:GetContext(canvas: cdCanvas) -> (ctx: number) [in Lua]</pre> <p>Returns the context of a given canvas, which can be compared with the predefined contexts, such as "CD_PS".</p> -<pre class="function"><span class="mainFunction">int cdContextCaps(cdContext* ctx); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int cdContextCaps(cdContext* ctx); [in C]</span> cd.ContextCaps(ctx: number) -> (caps: number) [in Lua]</pre> @@ -180,7 +181,7 @@ cd.ContextCaps(ctx: number) -> (caps: number) [in Lua]</pre> (Native Window and IUP).</p> -<pre class="function"><span class="mainFunction">int cdCanvasSimulate(cdCanvas* canvas, int mode); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int cdCanvasSimulate(cdCanvas* canvas, int mode); [in C]</span> canvas:Simulate(mode: number) -> (old_mode: number) [in Lua]</pre> @@ -209,27 +210,27 @@ canvas:Simulate(mode: number) -> (old_mode: number) [in Lua]</pre> <font>CD_SIM_FILLS</font> - Combination of <font>CD_SIM_BOX, CD_SIM_SECTOR, CD_SIM_</font>CHORD and <font>CD_SIM_POLYGON</font>.<br> </p> - +</div> <h3>Extras</h3> -<pre class="function">int <strong><span style="font-size: 110%"><a name="cdlua_open">cdlua_open</a></span></strong>(lua_State* L); [for Lua 5]</pre> +<div class="function"><pre class="function">int <strong><span style="font-size: 110%"><a name="cdlua_open">cdlua_open</a></span></strong>(lua_State* L); [for Lua 5]</pre> <p>Initializes the CDLua binding. In Lua 5 the binding is lua state safe, this means that several states can be initialized any time.</p> -<pre class="function">int <strong><span style="font-size: 110%"><a name="cdlua_close">cdlua_close</a></span></strong>(lua_State* L); [for Lua 5]</pre> +</div><div class="function"><pre class="function">int <strong><span style="font-size: 110%"><a name="cdlua_close">cdlua_close</a></span></strong>(lua_State* L); [for Lua 5]</pre> <p>Releases the memory allocated by the CDLua binding.</p> -<pre class="function">cdCanvas* <strong><span style="font-size: 110%"><a name="cdlua_getcanvas">cdlua_checkcanvas</a></span></strong>(lua_State* L, int pos); [for Lua 5]</pre> +</div><div class="function"><pre class="function">cdCanvas* <strong><span style="font-size: 110%"><a name="cdlua_getcanvas">cdlua_checkcanvas</a></span></strong>(lua_State* L, int pos); [for Lua 5]</pre> <p>Returns the canvas in the Lua stack at position pos. The function will call lua_error if there is not a valid canvas in the stack at the given position.</p> -<pre class="function">void <strong><span style="font-size: 110%">cdlua_pushcanvas</span></strong>(lua_State* L, cdCanvas* canvas);</pre> +</div><div class="function"><pre class="function">void <strong><span style="font-size: 110%">cdlua_pushcanvas</span></strong>(lua_State* L, cdCanvas* canvas);</pre> <p>Pushes the given canvas into the stack.</p> - +</div> </body> </html>
\ No newline at end of file diff --git a/html/en/func/lines.html b/html/en/func/lines.html index cbea432..2456df7 100644 --- a/html/en/func/lines.html +++ b/html/en/func/lines.html @@ -20,7 +20,7 @@ opacity attribute and by the background color.</p> <hr> -<pre class="function"><span class="mainFunction">void <a name="cdLine">cdCanvasLine</a>(cdCanvas* canvas, int x1, int y1, int x2, int y2); [in C] +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdLine">cdCanvasLine</a>(cdCanvas* canvas, int x1, int y1, int x2, int y2); [in C] </span>void cdfCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2); [in C]<br>void wdCanvasLine(cdCanvas* canvas, double x1, double y1, double x2, double y2); (WC) [in C] canvas:Line(x1, y1, x2, y2: <em>number</em>) [in Lua] @@ -31,7 +31,7 @@ canvas:wLine(x1, y1, x2, y2: <em>number</em>)<font><font> (WC) [in Lua]</font></ the current foreground color and line width and style. Both points are included in the line. </p> -<pre class="function"><a name="Polygons"><strong>Polygons</strong></a><strong> and Bezier Lines</strong></pre> +</div><div class="function"><pre class="function"><a name="Polygons"><strong>Polygons</strong></a><strong> and Bezier Lines</strong></pre> <p>Open polygons can be created using <font><strong>cdBegin(</strong></font><b>CD_OPEN_LINES</b><font><strong>)/cdVertex(x,y)/.../cdEnd()</strong></font>.</p> <p>Closed polygons use the same number of vertices but the last point is @@ -44,7 +44,7 @@ canvas:wLine(x1, y1, x2, y2: <em>number</em>)<font><font> (WC) [in Lua]</font></ bezier will be used as the start point.</p> <p>See the documentation of <a href="polygon.html">cdBegin/cdVertex/cdEnd</a>.</p> -<pre class="function"><span class="mainFunction">void <a name="cdRect">cdCanvasRect</a>(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]<br></span>void cdfCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C] +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdRect">cdCanvasRect</a>(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]<br></span>void cdfCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C] void wdCanvasRect(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); (WC) [in C] canvas:Rect(xmin, xmax, ymin, ymax: <em>number</em>) [in Lua] @@ -56,7 +56,7 @@ canvas:fRect(xmin, xmax, ymin, ymax: <em>number</em>) [in Lua]<br>canvas:wRect(x If the active driver does not include this primitive, it will be simulated using the <strong><font>cdLine</font></strong> primitive.</p> -<pre class="function"><span class="mainFunction">void <a name="cdArc">cdCanvasArc</a></span><span class="mainFunction">(cdCanvas* canvas, int xc, int yc, int w, int h, double angle1, double angle2); [in C]<br></span>void cdfCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); [in C]<strong> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdArc">cdCanvasArc</a></span><span class="mainFunction">(cdCanvas* canvas, int xc, int yc, int w, int h, double angle1, double angle2); [in C]<br></span>void cdfCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); [in C]<strong> </strong>void wdCanvasArc(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); (WC) [in C] canvas:Arc(xc, yc, w, h, angle1, angle2: <em>number</em>) [in Lua] @@ -87,9 +87,9 @@ canvas:wArc(xc, yc, w, h, angle1, angle2: <em>number</em>)<font><font> (WC) [in to multiply the value in radians before passing the angle to CD.</p> <p align="center"><font size="4">Arc Parameters<br> </font> <img src="../../img/arc.gif" border="2" width="161" height="160"></p> - +</div> <h3>Attributes</h3> -<pre class="function"><span class="mainFunction">int <a name="cdLineStyle">cdCanvasLineStyle</a>(cdCanvas* canvas, int style); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">int <a name="cdLineStyle">cdCanvasLineStyle</a>(cdCanvas* canvas, int style); [in C]</span> canvas:LineStyle(style: <em>number</em>) -> (old_style: <em>number</em>) [in Lua]</pre> @@ -104,7 +104,7 @@ canvas:LineStyle(style: <em>number</em>) -> (old_style: <em>number</em>) [in <p align="center"><font size="4">Line Styles</font><br> <img src="../../img/lines.gif" border="2" width="243" height="62"></p> -<pre class="function"><span class="mainFunction">void <a name="cdLineStyleDashes">cdCanvasLineStyleDashes</a>(cdCanvas* canvas, const int* dashes, int count); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdLineStyleDashes">cdCanvasLineStyleDashes</a>(cdCanvas* canvas, const int* dashes, int count); [in C]</span> canvas:LineStyleDashes(dashes: table, count: number) -> (old_style: number) [in Lua]</pre> @@ -113,7 +113,7 @@ canvas:LineStyleDashes(dashes: table, count: number) -> (old_style: number) [ example: "10 2 5 2" means dash size 10, space size 2, dash size 5, space size 2, and repeats the pattern. Sizes are in pixels.</p> -<pre class="function"><span class="mainFunction">int <a name="cdLineWidth">cdCanvasLineWidth</a>(cdCanvas* canvas, int width); [in C]<br></span>double wdCanvasLineWidth(cdCanvas* canvas, double width_mm); (WC) [in C] +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdLineWidth">cdCanvasLineWidth</a>(cdCanvas* canvas, int width); [in C]<br></span>double wdCanvasLineWidth(cdCanvas* canvas, double width_mm); (WC) [in C] canvas:LineWidth(width: number) -> (old_width: number) [in Lua] canvas:wLineWidth(width_mm: number) -> (old_width_mm: number) (WC) [in Lua]</pre> @@ -123,7 +123,7 @@ canvas:wLineWidth(width_mm: number) -> (old_width_mm: number) (WC) [in Lua]</ current value. Valid width interval: >= 1.</p> <p>In WC, it configures the current line width in millimeters. </p> -<pre class="function"><span class="mainFunction">int <a name="cdLineJoin">cdCanvasLineJoin</a>(cdCanvas* canvas, int style); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdLineJoin">cdCanvasLineJoin</a>(cdCanvas* canvas, int style); [in C]</span> canvas:LineJoin(style: number) -> (old_style: number) [in Lua]</pre> @@ -134,7 +134,7 @@ canvas:LineJoin(style: number) -> (old_style: number) [in Lua]</pre> <p align="center"><font size="4">Line Joins</font><br> <img src="../../img/linejoin.gif" border="2" width="111" height="138"></p> -<pre class="function"><span class="mainFunction">int <a name="cdLineCap">cdCanvasLineCap</a>(cdCanvas* canvas, int style); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdLineCap">cdCanvasLineCap</a>(cdCanvas* canvas, int style); [in C]</span> canvas:LineCap(style: number) -> (old_style: number) [in Lua]</pre> @@ -145,7 +145,7 @@ canvas:LineCap(style: number) -> (old_style: number) [in Lua]</pre> <p align="center"><font size="4">Line Caps</font><br> <img src="../../img/linecap.gif" border="2" width="211" height="166"></p> - +</div> </body> </html> diff --git a/html/en/func/marks.html b/html/en/func/marks.html index e467c10..926498d 100644 --- a/html/en/func/marks.html +++ b/html/en/func/marks.html @@ -15,10 +15,10 @@ <p>A mark is a punctual representation. It can have different sizes and types. All types are affected only by mark attributes and by the foreground color.</p> <p>All marks in all drivers are simulated using other CD primitives, except -<strong>cdPixel</strong>.</p> +<strong>cdCanvasPixel</strong>.</p> <hr> -<pre class="function"><span class="mainFunction">void <a name="cdPixel">cdCanvasPixel</a>(cdCanvas* canvas, int x, int y, long int color); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPixel">cdCanvasPixel</a>(cdCanvas* canvas, int x, int y, long int color); [in C]</span> void wdCanvasPixel(cdCanvas* canvas, double x, double y, long int color); (WC) [in C] canvas:Pixel(x, y: number, color: lightuserdata) [in Lua] @@ -28,7 +28,7 @@ canvas:wPixel(x, y: number, color: lightuserdata) (WC) [in Lua]</pre> on global attributes of the canvas. It can be very slow on some drivers. Sometimes it is implemented as a rectangle with size 1x1.</p> -<pre class="function"><span class="mainFunction">void <a name="cdMark">cdCanvasMark</a>(cdCanvas* canvas, int x, int y); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdMark">cdCanvasMark</a>(cdCanvas* canvas, int x, int y); [in C]</span> void wdCanvasMark(cdCanvas* canvas, double x, double y); (WC) [in C] canvas:Mark(x, y: number) [in Lua] @@ -36,27 +36,26 @@ canvas:wMark(x, y: number) (WC) [in Lua]</pre> <p>Draws a mark in <b><b>(x,y)</b> </b>using the current foreground color. It is not possible to use this function between a call to functions - <font><b>cdBegin</b></font> and <font><b>cdEnd</b></font> + <font><b>cdCanvasBegin</b></font> and <font><b>cdCanvasEnd</b></font> if the type of mark is set to <b>CD_DIAMOND</b>. If the active driver does not include this primitive, it will be simulated using other primitives - from the library, such as <strong><font>cdLine</font></strong>.</p> - <p>If you will call function <strong><font>cdMark</font></strong> - or <strong><font>wdMark</font></strong> several times in a + from the library, such as <strong><font>cdCanvasLine</font></strong>.</p> + <p>If you will call this function several times in a sequence, then it is recommended that the application changes the filling and - line attributes to those used by the <strong><font>cdMark</font></strong> + line attributes to those used by this function:</p> -<pre>cdInteriorStyle(CD_SOLID); -cdLineStyle(CD_CONTINUOUS); -cdLineWidth(1);</pre> +<pre>cdCanvasInteriorStyle(canvas, CD_SOLID); +cdCanvasLineStyle(canvas, CD_CONTINUOUS); +cdCanvasLineWidth(canvas, 1);</pre> <p>This will greatly increase this function's performance. Also in this case, - if the mark is very small, we suggest using the <font>cdPixel</font> + if the mark is very small, we suggest using the <font><strong>cdCanvasPixel</strong></font> function so that the application itself draws the mark. In many cases, this also increases this function's performance.</p> - +</div> <h3>Attributes</h3> -<pre class="function"><span class="mainFunction">int <a name="cdMarkType">cdCanvasMarkType</a>(cdCanvas* canvas, int type); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">int <a name="cdMarkType">cdCanvasMarkType</a>(cdCanvas* canvas, int type); [in C]</span> canvas:MarkType(type: number) -> (old_type: number) [in Lua]</pre> @@ -69,7 +68,7 @@ canvas:MarkType(type: number) -> (old_type: number) [in Lua]</pre> <p align="center"><font size="4">Mark Types</font><br> <img src="../../img/marks.gif" border="2" width="148" height="193"></p> -<pre class="function"><span class="mainFunction">int <a name="cdMarkSize">cdCanvasMarkSize</a>(cdCanvas* canvas, int size); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdMarkSize">cdCanvasMarkSize</a>(cdCanvas* canvas, int size); [in C]</span> double wdCanvasMarkSize(cdCanvas* canvas, double size); (WC) [in C] canvas:MarkSize(size: number) -> (old_size: number) [in Lua] @@ -79,7 +78,7 @@ canvas:wMarkSize(size: number) -> (old_size: number) (WC) [in Lua]</pre> value: 10. Value <b><b>CD_QUERY</b> </b>simply returns the current value. Valid width interval: >= 1.</p> <p>In WC, it configures the current line width in millimeters. </p> - +</div> </body> diff --git a/html/en/func/other.html b/html/en/func/other.html index d334508..5a14387 100644 --- a/html/en/func/other.html +++ b/html/en/func/other.html @@ -11,7 +11,7 @@ <body> <h2 align="center">System</h2> -<pre class="function"><span class="mainFunction">char* <a name="cdVersion">cdVersion</a>(void); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">char* <a name="cdVersion">cdVersion</a>(void); [in C]</span> cd.Version() -> (version: string) [in Lua]</pre> @@ -24,15 +24,15 @@ cd.Version() -> (version: string) [in Lua]</pre> functions added to the library; and the build version number represents one or more corrected bugs.</p> -<pre class="function"><span class="mainFunction">char* cdVersionDate(void); [in C] +</div><div class="function"><pre class="function"><span class="mainFunction">char* cdVersionDate(void); [in C] </span> cd.VersionDate() -> (versiondate: string) [in Lua]</pre> <p>Returns the release date of the current version of the library.</p> -<pre class="function"><span class="mainFunction">int cdVersionNumber(void); [in C] +</div><div class="function"><pre class="function"><span class="mainFunction">int cdVersionNumber(void); [in C] </span> cd.VersionNumber() -> (version: number) [in Lua]</pre> <p>Returns the current version number of the library.</p> -<pre class="function">[in C] +</div><div class="function"><pre class="function">[in C] <span class="mainFunction">CD_NAME</span> "CD - Canvas Draw" <span class="mainFunction">CD_DESCRIPTION</span> "A 2D Graphics Library" <span class="mainFunction">CD_COPYRIGHT</span> "Copyright (C) 1994-2007 Tecgraf/PUC-Rio and PETROBRAS S/A" @@ -50,10 +50,10 @@ cd._VERSION_NUMBER</pre> <p>Useful definitions. They have the same value returned by <b>cdVersion</b>* functions, except that they do not include the build number.</p> - +</div> <hr> <h2 align="center">Metafile Interpretation</h2> -<pre class="function"><span class="mainFunction">int cdCanvasPlay(cdCanvas* canvas, cdContext* ctx, int xmin, int xmax, int ymin, int ymax, void *data); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">int cdCanvasPlay(cdCanvas* canvas, cdContext* ctx, int xmin, int xmax, int ymin, int ymax, void *data); [in C]</span> canvas:Play(ctx, xmin, xmax, ymin, ymax: number, data: string) -> (status: number) [in Lua]</pre> @@ -90,7 +90,7 @@ canvas:Play(ctx, xmin, xmax, ymin, ymax: number, data: string) -> (status: nu is a <strong>cdCanvas</strong><b>*</b> of the Picture canvas.</li> </ul> -<pre class="function"><span class="mainFunction">int cdContextRegisterCallback(cdContext *ctx, int cb, int(*func)(cdCanvas* canvas, ...)); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int cdContextRegisterCallback(cdContext *ctx, int cb, int(*func)(cdCanvas* canvas, ...)); [in C]</span> cd.ContextRegisterCallback(ctx, cb: number, func: function) -> (status: number) [in Lua]</pre> @@ -114,7 +114,7 @@ cd.ContextRegisterCallback(ctx, cb: number, func: function) -> (status: numbe create the canvas inside the callback. It works as a <b> <font>cdCanvasGetSize</font></b> function.</p> - +</div> </body> </html>
\ No newline at end of file diff --git a/html/en/func/polygon.html b/html/en/func/polygon.html index 90890d4..1c930c3 100644 --- a/html/en/func/polygon.html +++ b/html/en/func/polygon.html @@ -26,7 +26,7 @@ Regions Creation</h2> that can contains one or more polygons inside. </p> <hr> -<pre class="function"><span class="mainFunction">void <a name="cdBegin">cdCanvasBegin</a>(cdCanvas* canvas, int mode); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdBegin">cdCanvasBegin</a>(cdCanvas* canvas, int mode); [in C]</span> canvas:Begin(mode: number) [in Lua]</pre> @@ -70,7 +70,7 @@ canvas:Begin(mode: number) [in Lua]</pre> </font><img src="../../img/polygon.gif" border="2" width="249" height="116"></p> <p align="center"><font size="4">Bezier Lines<br> </font><img src="../../img/bezier.gif" border="2" width="241" height="220"></p> -<pre class="function"><span class="mainFunction">void <a name="cdVertex">cdCanvasVertex</a>(cdCanvas* canvas, int x, int y); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdVertex">cdCanvasVertex</a>(cdCanvas* canvas, int x, int y); [in C]</span> void cdfCanvasVertex(cdCanvas* canvas, double x, double y); [in C] void wdCanvasVertex(cdCanvas* canvas, double x, double y); (WC) [in C] @@ -79,14 +79,14 @@ canvas:wVertex(x, y: number) (WC) [in Lua]</pre> <p>Adds a vertex to the polygon definition.</p> -<pre class="function"><span class="mainFunction">void <a name="cdEnd">cdCanvasEnd</a>(cdCanvas* canvas); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdEnd">cdCanvasEnd</a>(cdCanvas* canvas); [in C]</span> canvas:End() [in Lua]</pre> <p>Ends the polygon's definition and draws it.</p> -<pre class="function"><span class="mainFunction">void <a name="cdPathSet">cdCanvasPathSet</a>(cdCanvas* canvas, int action); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPathSet">cdCanvasPathSet</a>(cdCanvas* canvas, int action); [in C]</span> canvas:PathSet(action: number) [in Lua]</pre> @@ -151,7 +151,7 @@ cdCanvasVertex(canvas, x8, y8); /* start angle, end angle (degrees / 1000) */ cdCanvasPathSet(canvas, CD_PATH_STROKE); cdCanvasEnd(canvas);</pre> - +</div> </body> </html> diff --git a/html/en/func/region.html b/html/en/func/region.html index 59874b8..985bf23 100644 --- a/html/en/func/region.html +++ b/html/en/func/region.html @@ -39,7 +39,7 @@ <p>Complex clipping regions are not saved by <strong>cdSaveState</strong>.</p> <hr> -<pre class="function"><span class="mainFunction">int cdCanvasRegionCombineMode(cdCanvas* canvas, int mode); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">int cdCanvasRegionCombineMode(cdCanvas* canvas, int mode); [in C]</span> canvas:RegionCombineMode(mode: number) -> (old_mode: number) [in Lua]</pre> @@ -50,7 +50,7 @@ canvas:RegionCombineMode(mode: number) -> (old_mode: number) [in Lua]</pre> <p align="center"><font size="4">Combine Modes<br> </font><img src="../../img/regions.gif" border="2" width="297" height="361"></p> -<pre class="function"><span class="mainFunction">int cdCanvasIsPointInRegion(cdCanvas* canvas, int x, int y); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int cdCanvasIsPointInRegion(cdCanvas* canvas, int x, int y); [in C]</span> int wdCanvasIsPointInRegion(cdCanvas* canvas, double x, double y); (WC) [in C] canvas:IsPointInRegion(x, y: number) -> (status: boolean) [in Lua] @@ -59,7 +59,7 @@ canvas:wIsPointInRegion(x, y: number) -> (status: boolean) [in Lua]</pre> <p>Returns a non zero value if the point is contained inside the current region.</p> -<pre class="function"><span class="mainFunction">void cdCanvasOffsetRegion(cdCanvas* canvas, int dx, int dy); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void cdCanvasOffsetRegion(cdCanvas* canvas, int dx, int dy); [in C]</span> void wdCanvasOffsetRegion(cdCanvas* canvas, double dx, double dy); (WC) [in C] canvas:OffsetRegion(dx, dy: number) [in Lua] @@ -69,7 +69,7 @@ canvas:wOffsetRegion(dx, dy: number) (WC) [in Lua]</pre> moves to outside the canvas border, the part moved outside will be lost, the region will need to be reconstructed.</p> -<pre class="function"><span class="mainFunction">void cdCanvasGetRegionBox(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void cdCanvasGetRegionBox(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> void wdCanvasGetRegionBox(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); (WC) [in C] canvas:GetRegionBox() -> (xmin, xmax, ymin, ymax, status: number) [in Lua] @@ -79,7 +79,7 @@ canvas:wGetRegionBox() -> (xmin, xmax, ymin, ymax, status: number) (WC) [in L necessary to provide all return pointers, you can provide only the desired values and <i><tt>NULL</tt></i> for the others.</p> - +</div> </body> </html> diff --git a/html/en/func/server.html b/html/en/func/server.html index 2a9142e..85bc42d 100644 --- a/html/en/func/server.html +++ b/html/en/func/server.html @@ -25,7 +25,7 @@ and Cairo, support server images.</p> <hr> -<pre class="function"><span class="mainFunction">cdImage* <a name="cdCreateImage">cdCanvasCreateImage</a>(cdCanvas* canvas, int w, int h); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">cdImage* <a name="cdCreateImage">cdCanvasCreateImage</a>(cdCanvas* canvas, int w, int h); [in C]</span> canvas:CreateImage(w, h: number) -> (image: cdImage) [in Lua]</pre> @@ -36,14 +36,14 @@ canvas:CreateImage(w, h: number) -> (image: cdImage) [in Lua]</pre> the same type as the canvas that was active when the image was created. The default background is the same as the canvas, <strong><tt>CD_WHITE</tt></strong>.</p> -<pre class="function"><span class="mainFunction">void <a name="cdKillImage">cdKillImage</a>(cdImage* image); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdKillImage">cdKillImage</a>(cdImage* image); [in C]</span> image:KillImage() [in Lua]</pre> <p>Liberates memory allocated for the image. If this function is not called in Lua, the garbage collector will call it.</p> -<pre class="function"><span class="mainFunction">void <a name="cdGetImage">cdCanvasGetImage</a>(cdCanvas* canvas, cdImage* image, int x, int y); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetImage">cdCanvasGetImage</a>(cdCanvas* canvas, cdImage* image, int x, int y); [in C]</span> canvas:GetImage(image: cdImage; x, y: number) [in Lua]</pre> @@ -53,7 +53,7 @@ canvas:GetImage(image: cdImage; x, y: number) [in Lua]</pre> width and length of the rectangular region are defined in the image structure (when the image is created).</p> -<pre class="function"><span class="mainFunction">void <a name="cdPutImageRect">cdCanvasPutImageRect</a>(cdCanvas* canvas, cdImage* image, int x, int y, int xmin, int xmax, int ymin, int ymax); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPutImageRect">cdCanvasPutImageRect</a>(cdCanvas* canvas, cdImage* image, int x, int y, int xmin, int xmax, int ymin, int ymax); [in C]</span> void wdCanvasPutImageRect(cdCanvas* canvas, cdImage* image, double x, double y, int xmin, int xmax, int ymin, int ymax); (WC) [in C] canvas:PutImageRect(image: cdImage; x, y, xmin, xmax, ymin, ymax: number) [in Lua] @@ -66,7 +66,7 @@ canvas:wPutImageRect(image: cdImage; x, y, xmin, xmax, ymin, ymax: number) (WC) and <strong><font>ymax</font></strong> are 0, then the whole image is assumed.</p> -<pre class="function"><span class="mainFunction">void <a name="cdScrollArea">cdCanvasScrollArea</a>(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax, int dx, int dy); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdScrollArea">cdCanvasScrollArea</a>(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax, int dx, int dy); [in C]</span> canvas:ScrollArea(xmin, xmax, ymin, ymax, dx, dy: number) [in Lua]</pre> @@ -79,7 +79,7 @@ canvas:ScrollArea(xmin, xmax, ymin, ymax, dx, dy: number) [in Lua]</pre> to the second, remains unchanged (the function does not clean this region). </p> - +</div> </body> </html>
\ No newline at end of file diff --git a/html/en/func/text.html b/html/en/func/text.html index c2735b0..a5edc29 100644 --- a/html/en/func/text.html +++ b/html/en/func/text.html @@ -34,7 +34,7 @@ <font><strong>TextAligment</strong></font> function. </p> <hr> -<pre class="function"><span class="mainFunction">void <a name="cdText">cdCanvasText</a>(cdCanvas* canvas, int x, int y, const char* text); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdText">cdCanvasText</a>(cdCanvas* canvas, int x, int y, const char* text); [in C]</span> void cdfCanvasText(cdCanvas* canvas, double x, double y, const char* text); [in C] void wdCanvasText(cdCanvas* canvas, double x, double y, const char* text); (WC) [in C] @@ -44,9 +44,9 @@ canvas:wText(x, y: number, text: string) (WC) [in Lua]</pre> <p>Draws a text in the position <b><tt>(x,y)</tt></b> according to the current font and text alignment. It expects an ANSI string. Can have line breaks.</p> - +</div> <h3>Attributes</h3> -<pre class="function"><span class="mainFunction">void <a name="cdFont">cdCanvasFont</a>(cdCanvas* canvas, const char* typeface, int style, int size); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdFont">cdCanvasFont</a>(cdCanvas* canvas, const char* typeface, int style, int size); [in C]</span> void wdCanvasFont(cdCanvas* canvas, const char* typeface, int style, double size); (WD) [in C] canvas:Font(typeface, style, size: number) [in Lua] @@ -89,7 +89,7 @@ driver.</p> </center> </div> -<pre class="function"><span class="mainFunction">void <a name="cdGetFont">cdCanvasGetFont</a>(cdCanvas* canvas, char* typeface, int *style, int *size); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetFont">cdCanvasGetFont</a>(cdCanvas* canvas, char* typeface, int *style, int *size); [in C]</span> void wdCanvasGetFont(cdCanvas* canvas, char* typeface, int *style, double *size); (WC) [in C] canvas:GetFont() -> (typeface: string, style, size: number) [in Lua] @@ -99,7 +99,7 @@ canvas:wGetFont() -> (typeface: string, style, size: number) (WC) [in Lua]</p return pointers; you can provide only the desired values.</p> <p>In WC, the size is returned in millimeters.</p> -<pre class="function"><span class="mainFunction">char* <a name="cdNativeFont">cdCanvasNativeFont</a>(cdCanvas* canvas, const char* nativefont); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">char* <a name="cdNativeFont">cdCanvasNativeFont</a>(cdCanvas* canvas, const char* nativefont); [in C]</span> canvas:NativeFont(font: string) -> (old_font: string) [in Lua]</pre> @@ -127,7 +127,7 @@ and platforms.</p> <p>Using "(char*)CD_QUERY" as a parameter, it returns the current selected font in the common format definition.</p> -<pre class="function"><span class="mainFunction">int <a name="cdTextAlignment">cdCanvasTextAlignment</a>(cdCanvas* canvas, int alignment); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdTextAlignment">cdCanvasTextAlignment</a>(cdCanvas* canvas, int alignment); [in C]</span> canvas:TextAlignment(alignment: number) -> (old_alignment: number) [in Lua]</pre> @@ -139,16 +139,16 @@ canvas:TextAlignment(alignment: number) -> (old_alignment: number) [in Lua]</ <p align="center"><font size="4">Text Alignment</font><br> <img src="../../img/align.gif" border="2" width="273" height="227"></p> -<pre class="function"><span class="mainFunction">double <a name="cdTextOrientation">cdCanvasTextOrientation</a>(cdCanvas* canvas, double angle); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">double <a name="cdTextOrientation">cdCanvasTextOrientation</a>(cdCanvas* canvas, double angle); [in C]</span> canvas:TextOrientation(angle: number) -> (old_angle: number) [in Lua]</pre> <p>Defines the text orientation, which is an angle provided in degrees relative to the horizontal line according to which the text is drawn. Returns the previous value. Value <tt><b>CD_QUERY</b> </tt>simply returns the current value. The default value is 0.</p> - +</div> <h3>Properties</h3> -<pre class="function"><span class="mainFunction">void <a name="cdFontDim">cdCanvasGetFontDim</a>(cdCanvas* canvas, int *max_width, int *height, int *ascent, int *descent); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdFontDim">cdCanvasGetFontDim</a>(cdCanvas* canvas, int *max_width, int *height, int *ascent, int *descent); [in C]</span> void wdCanvasGetFontDim(cdCanvas* canvas, double *max_width, double *height, double *ascent, double *descent); (WC) [in C] canvas:GetFontDim() -> (max_width, height, ascent, descent: number) [in Lua] @@ -163,7 +163,7 @@ canvas:wGetFontDim() -> (max_width, height, ascent, descent: number) (WC) [in <p align="center"><font size="4">Font Dimension Attributes<br> </font><img src="../../img/font_dim.gif" border="2" width="300" height="139"></p> -<pre class="function"><span class="mainFunction">void <a name="cdTextSize">cdCanvasGetTextSize</a>(cdCanvas* canvas, const char* text, int *width, int *height); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTextSize">cdCanvasGetTextSize</a>(cdCanvas* canvas, const char* text, int *width, int *height); [in C]</span> void wdCanvasGetTextSize(cdCanvas* canvas, const char* text, double *width, double *height); (WC) [in C] canvas:GetTextSize(text: string) -> (width, heigth: number) [in Lua] @@ -173,7 +173,7 @@ canvas:wGetTextSize(text: string) -> (width, heigth: number) (WC) [in Lua]</p not necessary to provide all return pointers, you can provide only the desired values and <font>NULL</font> for the others.</p> -<pre class="function"><span class="mainFunction">void <a name="cdTextBounds">cdCanvasGetTextBounds</a>(cdCanvas* canvas, int x, int y, const char *text, int *rect); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTextBounds">cdCanvasGetTextBounds</a>(cdCanvas* canvas, int x, int y, const char *text, int *rect); [in C]</span> void wdCanvasGetTextBounds(cdCanvas* canvas, double x, double y, const char* text, double *rect); (WC) [in C] canvas:GetTextBounds(x, y: number, text: string) -> (rect: table) [in Lua] @@ -185,7 +185,7 @@ canvas:wGetTextBounds(x, y: number, text: string) -> (rect: table) (WC) [in L order starting with the bottom left corner, arranged (x0,y0,x1,y1,x2,y2,x3,y3).</p> -<pre class="function"><span class="mainFunction">void <a name="cdTextBox">cdCanvasGetTextBox</a>(cdCanvas* canvas, int x, int y, const char* text, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdTextBox">cdCanvasGetTextBox</a>(cdCanvas* canvas, int x, int y, const char* text, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> void wdCanvasGetTextBox(cdCanvas* canvas, double x, double y, const char* text, double *xmin, double *xmax, double *ymin, double *ymax); (WC) [in C] canvas:GetTextBox(x, y: number, text: string) -> (xmin, xmax, ymin, ymax: number) [in Lua] @@ -195,7 +195,7 @@ canvas:wGetTextBox(x, y: number, text: string) -> (xmin, xmax, ymin, ymax: nu position. If orientation is not 0 then its area is always larger than the area of the rectangle returned by <strong>GetTextBounds</strong>. It is not necessary to provide all return pointers, you can provide only the desired values and <i><tt>NULL</tt></i> for the others.</p> - +</div> </body> diff --git a/html/en/func/vectortext.html b/html/en/func/vectortext.html index ec66aa2..febcf24 100644 --- a/html/en/func/vectortext.html +++ b/html/en/func/vectortext.html @@ -17,7 +17,7 @@ <p>All vector text drawing in all drivers are simulated with other CD primitives using polygons only.</p> <hr> - <pre class="function"><span class="mainFunction">void <a name="cdVectorText">cdCanvasVectorText</a>(cdCanvas* canvas, int x, int y, const char* text); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">void <a name="cdVectorText">cdCanvasVectorText</a>(cdCanvas* canvas, int x, int y, const char* text); [in C]</span> void wdCanvasVectorText(cdCanvas* canvas, double x, double y, const char* text); (WC) [in C] canvas:VectorText(x, y: number, text: string) [in Lua] @@ -32,9 +32,9 @@ canvas:wVectorText(x, y: number, text: string) (WC) [in Lua]</pre> actually depends on World Coordinates. The other Vector Text functions although use the "<strong>wd</strong>" prefix they do not depend on World Coordinates. They are kept with these names for backward compatibility. The - correct prefix would be "<strong>cdf</strong>".</p> + correct prefix would be "<strong>cdf</strong>".</p></div> <h3>Attributes</h3> - <pre class="function"><span class="mainFunction">void <a name="cdVectorTextDirection">cdCanvasVectorTextDirection</a>(cdCanvas* canvas, int x1, int y1, int x2, int y2); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">void <a name="cdVectorTextDirection">cdCanvasVectorTextDirection</a>(cdCanvas* canvas, int x1, int y1, int x2, int y2); [in C]</span> void wdCanvasVectorTextDirection(cdCanvas* canvas, double x1, double y1, double x2, double y2); [in C] canvas:VectorTextDirection(x1, y1, x2, y2: number) [in Lua] @@ -42,7 +42,7 @@ canvas:wVectorTextDirection(x1, y1, x2, y2: number) [in Lua]</pre> <p>Defines the text direction by means of two points, <b><tt>(x1,y1)</tt></b> and <b> <tt>(x2,y2)</tt></b>. The default direction is horizontal from left to right. It is independent from the transformation matrix.</p> - <pre class="function"><span class="mainFunction">double* <a name="cdVectorTextTransform">cdCanvasVectorTextTransform</a>(cdCanvas* canvas, const double* matrix); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">double* <a name="cdVectorTextTransform">cdCanvasVectorTextTransform</a>(cdCanvas* canvas, const double* matrix); [in C]</span> canvas:VectorTextTransform(matrix: table) -> (old_matrix: table) [in Lua] </pre> <p>Defines a transformation matrix with 6 elements. If the matrix is NULL, no @@ -57,14 +57,14 @@ canvas:VectorTextTransform(matrix: table) -> (old_matrix: table) [in Lua]&nbs |1|</pre> <p>It has the same effect of the <strong> cdCanvasTransform,</strong> but notice that the indices are different.</p> - <pre class="function"><span class="mainFunction">void <a name="cdVectorTextSize">cdCanvasVectorTextSize</a>(cdCanvas* canvas, int width, int height, const char * text); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdVectorTextSize">cdCanvasVectorTextSize</a>(cdCanvas* canvas, int width, int height, const char * text); [in C]</span> void wdCanvasVectorTextSize(cdCanvas* canvas, double width, double height, const char* text); [in C] canvas:VectorTextSize(width, height: number, text: string) [in Lua] canvas:wVectorTextSize(width, height: number, text: string) [in Lua]</pre> <p>Modifies the font size of the vector text so that it fits the string in the box defined by <b><tt>width</tt></b> and <b><tt>height</tt></b>.</p> - <pre class="function"><span class="mainFunction">double <a name="cdVectorCharSize">cdCanvasVectorCharSize</a>(cdCanvas* canvas, int size); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">double <a name="cdVectorCharSize">cdCanvasVectorCharSize</a>(cdCanvas* canvas, int size); [in C]</span> double wdCanvasVectorCharSize(cdCanvas* canvas, double size); [in C] canvas:VectorCharSize(size: number) -> (old_size: number) [in Lua] @@ -72,17 +72,17 @@ canvas:wVectorCharSize(size: number) -> (old_size: number) [in Lua]</pre> <p>Modifies the font size by specifying the height of the characters. Returns the previous value. <strong><tt>CD_QUERY</tt></strong> returns the current value.</p> - <pre class="function"><span class="mainFunction">void <a name="cdVectorFontSize">cdCanvasVectorFontSize</a>(cdCanvas* canvas, double size_x, double size_x); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdVectorFontSize">cdCanvasVectorFontSize</a>(cdCanvas* canvas, double size_x, double size_x); [in C]</span> canvas:VectorFontSize(size_x, size_y: number) [in Lua]</pre> <p>Directly modifies the font size. Set size_x==size_y to maintain the original aspect ratio of the font.</p> - <pre class="function"><span class="mainFunction">void <a name="cdGetVectorFontSize">cdCanvasGetVectorFontSize</a>(cdCanvas* canvas, double *size_x, double *size_x); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetVectorFontSize">cdCanvasGetVectorFontSize</a>(cdCanvas* canvas, double *size_x, double *size_x); [in C]</span> canvas:GetVectorFontSize() -> (size_x, size_y: number) [in Lua]</pre> <p>Returns the font size. It is not necessary to provide all return pointers, you can provide only the desired values and <font>NULL</font> for the others.</p> - <pre class="function"><span class="mainFunction">char* <a name="cdVectorFont">cdCanvasVectorFont</a>(cdCanvas* canvas, const char *filename); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">char* <a name="cdVectorFont">cdCanvasVectorFont</a>(cdCanvas* canvas, const char *filename); [in C]</span> canvas:VectorFont(filename: string) -> (fontname: string) [in Lua]</pre> <p>Replaces the current vector font with a font stored in a file with a given @@ -95,9 +95,9 @@ canvas:VectorFont(filename: string) -> (fontname: string) [in Lua]</pre> load it using the <font>filename</font> as a string containing the font as if the file was loaded into that string, if it fails again the font is reset to the default font and returns NULL. The file format is - compatible with the GKS file format (text mode).</p> + compatible with the GKS file format (text mode).</p></div> <h3>Properties</h3> - <pre class="function"><span class="mainFunction">void <a name="cdGetVectorTextSize">cdCanvasGetVectorTextSize</a>(cdCanvas* canvas, const char* text, int *width, int *height); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetVectorTextSize">cdCanvasGetVectorTextSize</a>(cdCanvas* canvas, const char* text, int *width, int *height); [in C]</span> void wdCanvasGetVectorTextSize(cdCanvas* canvas, const char* text, double *width, double *height); [in C] canvas:GetVectorTextSize(text: string) -> (width, height: number) [in Lua] @@ -105,7 +105,7 @@ canvas:wGetVectorTextSize(text: string) -> (width, height: number) [in Lua]</ <p>Returns the text size independent from orientation. It is not necessary to provide all return pointers, you can provide only the desired values and <font>NULL</font> for the others.</p> - <pre class="function"><span class="mainFunction">void <a name="cdGetVectorTextBounds">cdCanvasGetVectorTextBounds</a>(cdCanvas* canvas, char* text, int x, int y, int *rect); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetVectorTextBounds">cdCanvasGetVectorTextBounds</a>(cdCanvas* canvas, char* text, int x, int y, int *rect); [in C]</span> void wdCanvasGetVectorTextBounds(cdCanvas* canvas, char* text, double x, double y, double *rect); [in C] canvas:GetVectorTextBounds(text: string, x, y: number) -> (rect: table) [in Lua] @@ -117,7 +117,7 @@ canvas:wGetVectorTextBounds(text: string, x, y: number) -> (rect: table) [in order starting with the bottom left corner, arranged (x0,y0,x1,y1,x2,y2,x3,y3).</p> -<pre class="function"><span class="mainFunction">void <a name="cdGetVectorTextBox">cdCanvasGetVectorTextBox</a>(cdCanvas* canvas, int x, int y, const char* text, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">void <a name="cdGetVectorTextBox">cdCanvasGetVectorTextBox</a>(cdCanvas* canvas, int x, int y, const char* text, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> void wdCanvasGetVectorTextBox(cdCanvas* canvas, double x, double y, const char* text, double *xmin, double *xmax, double *ymin, double *ymax); [in C] canvas:GetVectorTextBox(x, y: number, text: string) -> (xmin, xmax, ymin, ymax: number) [in Lua] @@ -128,7 +128,7 @@ canvas:wGetVectorTextBox(x, y: number, text: string) -> (xmin, xmax, ymin, ym orientation is not 0 then its area is always larger than the area of the rectangle returned by <strong>GetVectorTextBounds</strong>. It is not necessary to provide all return pointers, you can provide only the desired values and <i><tt>NULL</tt></i> for the others.</p> - +</div> <h3>Character Codes</h3> <p>The old GKS format contains ASCII codes so a convertion from ANSI to ASCII is done when possible, unmapped characters are left unchanged, but some rearrage diff --git a/html/en/func/wd.html b/html/en/func/wd.html index c7aacff..ebd9793 100644 --- a/html/en/func/wd.html +++ b/html/en/func/wd.html @@ -27,21 +27,21 @@ primitives and do NOT depend or use the <strong>cdCanvasTransform</strong> transformation matrix.</p> <hr> - <pre class="function"><span class="mainFunction">void <a name="wdWindow">wdCanvasWindow</a>(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">void <a name="wdWindow">wdCanvasWindow</a>(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C]</span> canvas:wWindow(xmin, xmax, ymin, ymax: number) [in Lua]</pre> <p>Configures a window in the world coordinate system to be used to convert world coordinates (with values in real numbers) into canvas coordinates (with values in integers). The default window is the size in millimeters of the whole canvas.</p> - <pre class="function"><span class="mainFunction">void <a name="wdGetWindow">wdCanvasGetWindow</a>(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdGetWindow">wdCanvasGetWindow</a>(cdCanvas* canvas, double *xmin, double *xmax, double *ymin, double *ymax); [in C]</span> canvas:wGetWindow() -> (xmin, xmax, ymin, ymax: number) [in Lua]</pre> <p>Queries the current window in the world coordinate system being used to convert world coordinates into canvas coordinates (and the other way round). It is not necessary to provide all return pointers, you can provide only the desired values.</p> - <pre class="function"><span class="mainFunction">void <a name="wdViewport">wdCanvasViewport</a>(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdViewport">wdCanvasViewport</a>(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]</span> canvas:wViewport(xmin, xmax, ymin, ymax: number) [in Lua]</pre> <p>Configures a viewport in the canvas coordinate system to be used to convert @@ -49,27 +49,27 @@ canvas:wViewport(xmin, xmax, ymin, ymax: number) [in Lua]</pre> values in integers). The default viewport is the whole canvas <font>(0,w-1,0,h-1)</font>. If the canvas size is changed, the viewport will not be automatically updated. </p> - <pre class="function"><span class="mainFunction">void <a name="wdGetViewport">wdCanvasGetViewport</a>(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdGetViewport">wdCanvasGetViewport</a>(cdCanvas* canvas, int *xmin, int *xmax, int *ymin, int *ymax); [in C]</span> canvas:wGetViewport() -> (xmin, xmax, ymin, ymax: number) [in Lua]</pre> <p>Queries the current viewport in the world coordinate system being used to convert world coordinates into canvas coordinates (and the other way round). It is not necessary to provide all return pointers, you can provide only the desired values and <font>NULL</font> for the others.</p> - <pre class="function"><span class="mainFunction">void <a name="wdWorld2Canvas">wdCanvasWorld2Canvas</a>(cdCanvas* canvas, double xw, double yw, int *xv, int *yv); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdWorld2Canvas">wdCanvasWorld2Canvas</a>(cdCanvas* canvas, double xw, double yw, int *xv, int *yv); [in C]</span> canvas:wWorld2Canvas(xw, yw: number) -> (xv, yv: number) [in Lua]</pre> <p>Converts world coordinates into canvas coordinates. It is not necessary to provide all return pointers, you can provide only the desired values and <font>NULL</font> for the others.</p> - <pre class="function"><span class="mainFunction">void <a name="wdCanvas2World">wdCanvasCanvas2World</a>(cdCanvas* canvas, int xv, int yv, double *xw, double *yw); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdCanvas2World">wdCanvasCanvas2World</a>(cdCanvas* canvas, int xv, int yv, double *xw, double *yw); [in C]</span> canvas:wCanvas2World(xv, yv: number) -> (xw, yw: number) [in Lua]</pre> <p>Converts canvas coordinates into world coordinates. It is not necessary to provide all return pointers, you can provide only the desired values and <font>NULL</font> for the others.</p> - <pre class="function"><span class="mainFunction">void <a name="wdSetTransform">wdCanvasSetTransform</a>(cdCanvas* canvas, double sx, double sy, double tx, double ty); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdSetTransform">wdCanvasSetTransform</a>(cdCanvas* canvas, double sx, double sy, double tx, double ty); [in C]</span> canvas:wSetTransform(sx, sy, tx, ty: number) [in Lua]</pre> <p>Configures the world coordinate system transformation to be used to @@ -77,7 +77,7 @@ canvas:wSetTransform(sx, sy, tx, ty: number) [in Lua]</pre> coordinates (with values in integers). The transformation is automatically set by <strong>wdCanvasWindow</strong> and <strong>wdCanvasViewport</strong>. This has NO relation with <strong>cdCanvasTransform</strong>.</p> - <pre class="function"><span class="mainFunction">void <a name="wdGetTransform">wdCanvasGetTransform</a>(cdCanvas* canvas, double *sx, double *sy, double *tx, double *ty); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdGetTransform">wdCanvasGetTransform</a>(cdCanvas* canvas, double *sx, double *sy, double *tx, double *ty); [in C]</span> canvas:wGetTransform() -> (sx, sy, tx, ty: number) [in Lua]</pre> <p>Queries the current transformation being used to @@ -85,20 +85,20 @@ canvas:wGetTransform() -> (sx, sy, tx, ty: number) [in Lua]</pre> is not necessary to provide all return pointers, you can provide only the desired values.</p> - <pre class="function"><span class="mainFunction">void <a name="wdTranslate">wdCanvasTranslate</a>(cdCanvas* canvas, double dtx, double dty); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdTranslate">wdCanvasTranslate</a>(cdCanvas* canvas, double dtx, double dty); [in C]</span> canvas:wTranslate(dtx, dty: number) [in Lua]</pre> <p>Translates the transformation by a delta, by adding the given values to the current tx and ty values.</p> - <pre class="function"><span class="mainFunction">void <a name="wdScale">wdCanvasScale</a>(cdCanvas* canvas, double dsx, double dsy); [in C]</span> + </div><div class="function"><pre class="function"><span class="mainFunction">void <a name="wdScale">wdCanvasScale</a>(cdCanvas* canvas, double dsx, double dsy); [in C]</span> canvas:wScale(dsx, dsy: number) [in Lua]</pre> <p>Scales the transformation by a delta, by multiplying the given values by - the current sx and sy values.</p> + the current sx and sy values.</p></div> <h3>Extra</h3> - <pre class="function"><span class="mainFunction">void <a name="wdHardcopy">wdCanvasHardcopy</a>(cdCanvas *canvas, cdContext* ctx, void *data, void(*draw_func)(cdCanvas *canvas_copy)); [in C]</span> + <div class="function"><pre class="function"><span class="mainFunction">void <a name="wdHardcopy">wdCanvasHardcopy</a>(cdCanvas *canvas, cdContext* ctx, void *data, void(*draw_func)(cdCanvas *canvas_copy)); [in C]</span> canvas:wCanvasHardcopy(ctx: number, data: string or userdata, draw_func: function) [in Lua]</pre> <p>Creates a new canvas, prepares Window and Viewport according to @@ -107,6 +107,6 @@ canvas:wCanvasHardcopy(ctx: number, data: string or userdata, draw_func: functio must use routines in WC) and, finally, removes the new canvas.</p> <p>It is usually used for "hard copies" of drawings (print equivalent copy). The most common used contexts are Printer, PS and PDF.</p> - + </div> </body> </html> diff --git a/html/en/to_do.html b/html/en/to_do.html index be20e0c..78c0e8b 100644 --- a/html/en/to_do.html +++ b/html/en/to_do.html @@ -6,6 +6,11 @@ <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>To Do</title> <link rel="stylesheet" type="text/css" href="../style.css"> +<style type="text/css"> +.style1 { + color: #FF0000; +} +</style> </head> <body> @@ -28,6 +33,12 @@ <li>Shape Extension and XShapeCombineMask to implement "WINDOWRGN" attribute (non rectangular windows from regions)</li> </ul> +<h3>OpenGL</h3> +<ul> + <li class="style1">Use textures to improve image drawing with transformation + and patter+stipple support.</li> + <li>Use tesselation to support fillmode and non convex polygons.</li> +</ul> <h3>Simulation</h3> <ul> <li>Implement line styles, line cap and line join for line with > 1.</li> |