summaryrefslogtreecommitdiff
path: root/html/en
diff options
context:
space:
mode:
authorscuri <scuri>2011-03-18 22:23:38 +0000
committerscuri <scuri>2011-03-18 22:23:38 +0000
commit64a0b5ebb41d36a7db87d24c5451f7db925e24f8 (patch)
treef377bae28d0cae28aa0f9ea32442bee56e1f6135 /html/en
parent0daf9f7ba7b50fea5c9764cf0dc05ad76c005716 (diff)
New: functions cdContextIsPlus and cdContextType.
Diffstat (limited to 'html/en')
-rw-r--r--html/en/drv/cairo.html2
-rw-r--r--html/en/func/init.html25
-rw-r--r--html/en/history.html6
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&quot;cdluacairo&quot;</strong> is
+<p>These are not ContextPlus drivers. In Lua, they are available only when <strong>require&quot;cdluacairo&quot;</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&quot;cdluacontextplus&quot; this function will be
automatically called.</p>
-</div><hr><div class="function"><pre class="function"><span class="mainFunction">cdContext*&nbsp;cdCanvasGetContext(cdCanvas *canvas); [in C]</span>
+</div><hr><div class="function"><pre class="function"><span class="mainFunction">cdContext*&nbsp;<a name="cdCanvasGetContext">cdCanvasGetContext</a>(cdCanvas *canvas); [in C]</span>
canvas:GetContext(canvas: cdCanvas) -&gt; (ctx: number) [in Lua]</pre>
<p>Returns the context of a given canvas, which can be compared with the predefined contexts, such as &quot;CD_PS&quot;.</p>
-</div><div class="function"><pre class="function"><span class="mainFunction">int&nbsp;cdContextCaps(cdContext* ctx); [in C]</span>
+</div><div class="function"><pre class="function"><span class="mainFunction">int&nbsp;<a name="cdContextCaps">cdContextCaps</a>(cdContext* ctx); [in C]</span>
cd.ContextCaps(ctx: number) -&gt; (caps: number) [in Lua]</pre>
@@ -181,7 +181,26 @@ cd.ContextCaps(ctx: number) -&gt; (caps: number) [in Lua]</pre>
(Native Window and IUP).</p>
-</div><div class="function"><pre class="function"><span class="mainFunction">int&nbsp;cdCanvasSimulate(cdCanvas* canvas, int mode); [in C]</span>
+</div><div class="function"><pre class="function"><span class="mainFunction">int&nbsp;<a name="cdContextType">cdContextType</a>(cdContext* ctx); [in C]</span>
+
+cd.ContextType(ctx: number) -&gt; (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&nbsp;<a name="cdContextIsPlus">cdContextIsPlus</a>(cdContext* ctx); [in C]</span>
+
+cd.ContextIsPlus(ctx: number) -&gt; (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&nbsp;<a name="cdCanvasSimulate">cdCanvasSimulate</a>(cdCanvas* canvas, int mode); [in C]</span>
canvas:Simulate(mode: number) -&gt; (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>