diff options
author | scuri <scuri> | 2010-06-24 20:32:39 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-06-24 20:32:39 +0000 |
commit | 1ad72d5276b1876bf218336a1ff47f086a0834c9 (patch) | |
tree | 6d66a57e994c21b579e8e600859365d363d57c34 /html/en/func/init.html | |
parent | 3ba2df20bc93a97c479c4021a9218eadcf5d850f (diff) |
*** empty log message ***
Diffstat (limited to 'html/en/func/init.html')
-rw-r--r-- | html/en/func/init.html | 35 |
1 files changed, 18 insertions, 17 deletions
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 |