summaryrefslogtreecommitdiff
path: root/html/en/func/wd.html
diff options
context:
space:
mode:
authorscuri <scuri>2010-06-24 20:32:39 +0000
committerscuri <scuri>2010-06-24 20:32:39 +0000
commit1ad72d5276b1876bf218336a1ff47f086a0834c9 (patch)
tree6d66a57e994c21b579e8e600859365d363d57c34 /html/en/func/wd.html
parent3ba2df20bc93a97c479c4021a9218eadcf5d850f (diff)
*** empty log message ***
Diffstat (limited to 'html/en/func/wd.html')
-rw-r--r--html/en/func/wd.html26
1 files changed, 13 insertions, 13 deletions
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() -&gt; (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() -&gt; (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) -&gt; (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) -&gt; (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() -&gt; (sx, sy, tx, ty: number) [in Lua]</pre>
<p>Queries the current transformation being used to
@@ -85,20 +85,20 @@ canvas:wGetTransform() -&gt; (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>