diff options
author | scuri <scuri> | 2011-03-18 22:23:38 +0000 |
---|---|---|
committer | scuri <scuri> | 2011-03-18 22:23:38 +0000 |
commit | 64a0b5ebb41d36a7db87d24c5451f7db925e24f8 (patch) | |
tree | f377bae28d0cae28aa0f9ea32442bee56e1f6135 /html/en | |
parent | 0daf9f7ba7b50fea5c9764cf0dc05ad76c005716 (diff) |
New: functions cdContextIsPlus and cdContextType.
Diffstat (limited to 'html/en')
-rw-r--r-- | html/en/drv/cairo.html | 2 | ||||
-rw-r--r-- | html/en/func/init.html | 25 | ||||
-rw-r--r-- | html/en/history.html | 6 |
3 files changed, 27 insertions, 6 deletions
diff --git a/html/en/drv/cairo.html b/html/en/drv/cairo.html index 0b28ea5..793760e 100644 --- a/html/en/drv/cairo.html +++ b/html/en/drv/cairo.html @@ -67,7 +67,7 @@ driver can be used; in other UNICES only the X-Win base driver can be used.</p> <h3>Extra Drivers (cdcairo.h)</h3> -<p>Only available in Lua when <strong>require"cdluacairo"</strong> is +<p>These are not ContextPlus drivers. In Lua, they are available only when <strong>require"cdluacairo"</strong> is used.</p> <h4>CD_CAIRO_PS - PostScript Driver</h4> diff --git a/html/en/func/init.html b/html/en/func/init.html index 8b3bccb..a73deea 100644 --- a/html/en/func/init.html +++ b/html/en/func/init.html @@ -132,13 +132,13 @@ transparency.</p> <p>In Lua, when using require"cdluacontextplus" this function will be automatically called.</p> -</div><hr><div class="function"><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* <a name="cdCanvasGetContext">cdCanvasGetContext</a>(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> -</div><div class="function"><pre class="function"><span class="mainFunction">int cdContextCaps(cdContext* ctx); [in C]</span> +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdContextCaps">cdContextCaps</a>(cdContext* ctx); [in C]</span> cd.ContextCaps(ctx: number) -> (caps: number) [in Lua]</pre> @@ -181,7 +181,26 @@ cd.ContextCaps(ctx: number) -> (caps: number) [in Lua]</pre> (Native Window and IUP).</p> -</div><div class="function"><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 <a name="cdContextType">cdContextType</a>(cdContext* ctx); [in C]</span> + +cd.ContextType(ctx: number) -> (type: number) [in Lua]</pre> + + <p>Returns the type of the context:</p> + + <p>CD_CTX_WINDOW - GUI window based<br> +CD_CTX_DEVICE - device based (clipboard, printer, picture)<br> +CD_CTX_IMAGE - server or client image based, including double buffer based <br> + CD_CTX_FILE - metafile based</p> + + +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdContextIsPlus">cdContextIsPlus</a>(cdContext* ctx); [in C]</span> + +cd.ContextIsPlus(ctx: number) -> (plus: boolean) [in Lua]</pre> + + <p>Returns if it is a context plus.</p> + + +</div><div class="function"><pre class="function"><span class="mainFunction">int <a name="cdCanvasSimulate">cdCanvasSimulate</a>(cdCanvas* canvas, int mode); [in C]</span> canvas:Simulate(mode: number) -> (old_mode: number) [in Lua]</pre> diff --git a/html/en/history.html b/html/en/history.html index cdb7187..117262b 100644 --- a/html/en/history.html +++ b/html/en/history.html @@ -27,8 +27,10 @@ <body> <h2>History of Changes</h2> -<h3>CVS (17/Nov/2010)</h3> +<h3>CVS (18/Mar/2011)</h3> <ul> + <li><span class="hist_new">New:</span> functions <strong>cdContextIsPlus</strong> + and <strong>cdContextType</strong>.</li> <li><span class="hist_fixed">Fixed:</span> defines in Cairo so it can be compiled using older Cairo and Pango versions.</li> </ul> @@ -51,7 +53,7 @@ <span class="hist_fixed">Fixed:</span> CD_QUERY in <strong> cdCanvasNativeFont</strong>.</li> <li> - <span class="hist_fixed">Fixed:</span> canvas:Transform when nil is used + <span class="hist_fixed">Fixed:</span> canvas:<strong>Transform</strong> when nil is used to reset the transformation.</li> <li> <span class="hist_fixed">Fixed:</span> <strong>cdCanvasClear</strong> |