summaryrefslogtreecommitdiff
path: root/html/en/drv
diff options
context:
space:
mode:
authorscuri <scuri>2010-05-21 04:51:07 +0000
committerscuri <scuri>2010-05-21 04:51:07 +0000
commitcc487d4de29a48d8e20a9a8492957a5950d5c181 (patch)
treeed854e4264ab307be3bd37419359bd48a39f776e /html/en/drv
parent2aec4aa2e0451fd1257fd562a58e29635f979521 (diff)
*** empty log message ***
Diffstat (limited to 'html/en/drv')
-rw-r--r--html/en/drv/cairo.html42
-rw-r--r--html/en/drv/gdiplus.html6
-rw-r--r--html/en/drv/pdf.html5
-rw-r--r--html/en/drv/ps.html5
-rw-r--r--html/en/drv/svg.html3
-rw-r--r--html/en/drv/win32.html3
-rw-r--r--html/en/drv/xrender.html3
7 files changed, 60 insertions, 7 deletions
diff --git a/html/en/drv/cairo.html b/html/en/drv/cairo.html
index 4977258..c0ad80f 100644
--- a/html/en/drv/cairo.html
+++ b/html/en/drv/cairo.html
@@ -6,6 +6,11 @@
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>CAIRO</title>
<link rel="stylesheet" type="text/css" href="../../style.css">
+<style type="text/css">
+.style1 {
+ font-family: Courier;
+}
+</style>
</head>
<body>
@@ -15,8 +20,9 @@
<p>This driver represents a basic driver for all system-dependent drivers
implemented in the X-Windows and MS-Windows systems. The implementation uses the
<a href="http://library.gnome.org/devel/pango/">Cairo</a> API
- functions and some GTK functions to support Unicode text. This driver can be
- compiled and used in all systems Cairo is supported.</p>
+ functions and Pango functions to support Unicode text. This driver can be
+ compiled and used in all systems Cairo is supported. The drivers <b>Native Window</b>,
+ <b>Image</b>, <b>Printer</b> and <b>Double Buffer</b> were implemented.</p>
<p>The main motivation for the use of Cairo was transparency for all the
primitives. Beyond that we got other features like anti-aliasing, gradient
filling, transformations and back-ends (support to rendering: PDF, PS, SVG and
@@ -24,6 +30,25 @@ PNG surfaces).</p>
<p>This driver still does not completely replace the X-Windows and GDI Windows
base drivers, because Cairo does not have support for bitwise XOR operations and
for complex clipping regions.</p>
+ <p>So we let the programmer to choose what to use. We created the function <font face="Courier"><strong>
+ cdUseContextPlus</strong></font> that allows to activate or to deactivate the use of
+ Cairo for the available GDK, Win32 or X-Windows based drivers.
+ This function affects only the <font face="Courier"><strong>cdCreateCanvas</strong></font> function call, once created
+ the canvas will be always a Cairo canvas. In fact the function affects primary the definitions
+ <font face="Courier"><strong>CD_NATIVEWINDOW</strong></font>,
+ <strong><span style="font-family: Courier">CD_IMAGE</span></strong> and <strong>
+ <span style="font-family: Courier">CD_DBUFFER</span></strong>, because they are
+ function calls and not static defines.</p>
+ <p>Using Cairo it is allowed to create more that one canvas at the same time for the same Window. And they can co-exist
+ with a standard GD, Win32 or X-Windows canvas.</p>
+ <p>To enable the use of Cairo based drivers you must call the initialization function <font face="Courier"><strong>
+ cdInitContextPlus()</strong></font> once and link to the libraries &quot;<strong>cdcairo</strong>&quot; and &quot;<strong>cairo</strong>&quot;.
+ When using the GDK base driver you do not need to link with the &quot;<strong>cdcairo</strong>&quot;
+ library. Also the Cairo library must be installed in your system.</p>
+ <p>In CDLua it is not necessary any additional initialization, but the
+ application must still be linked with the <strong>cdcontextplus.lib</strong>
+ library or a <strong>require&quot;cdluacontextplus&quot;</strong> can be used when
+ using dynamic libraries.</p>
<h3>Behavior of Functions</h3>
<h4>Control&nbsp; </h4>
@@ -39,6 +64,13 @@ for complex clipping regions.</p>
<font face="Courier"><strong>UpdateYAxis</strong></font></a>: the
orientation of axis Y is the opposite to its orientation in the CD library.</li>
</ul>
+<h4>Primitives</h4>
+<ul>
+ <li><a href="../func/lines.html#cdBegin">
+ <font face="Courier"><strong>Begin</strong></font></a>: <strong><tt>CD_PATH</tt></strong>
+ is supported.</li>
+ <li>Floating point primitives are supported.</li>
+</ul>
<h4>Attributes </h4>
<ul>
<li>
@@ -104,6 +136,12 @@ for complex clipping regions.</p>
</ul>
<ul>
+ <li>&quot;<span class="style1"><strong>PATTERNIMAGE</strong></span>&quot;:&nbsp;defines
+ a filled interior style using a server image as pattern. Data must be a server
+ image handle created with he Cairo base driver.</li>
+</ul>
+
+<ul>
<li>&quot;<b><font face="Courier">POLYHOLE</font></b>&quot;:&nbsp;defines the index of
the vertex where there is a hole in a closed polygon. It will affect the next
<strong>cdEnd</strong>. Can be called several times between <strong>cdBegin</strong>
diff --git a/html/en/drv/gdiplus.html b/html/en/drv/gdiplus.html
index f5b89f4..41e72dd 100644
--- a/html/en/drv/gdiplus.html
+++ b/html/en/drv/gdiplus.html
@@ -61,7 +61,8 @@
</ul>
<h4>Primitives</h4>
<ul>
- <li><font face="Courier"><strong><a href="../func/marks.html#cdPixel">Pixel</a></strong></font>:
+ <li>Floating point primitives are supported.</li>
+ <li><font face="Courier"><strong><a href="../func/marks.html#cdPixel">Pixel</a></strong></font>:
uses GDI. Excepting when the canvas is an image so it is done using GDI+.</li>
<li><font face="Courier"><a href="../func/filled.html#cdSector"><b>Sector</b></a></font>:
it also draws an arc in the same position to complete the size of the sector.</li>
@@ -77,7 +78,8 @@
<strong><tt>CD_FILLGRADIENT</tt></strong> defines the points of a filled polygon. It is filled with a gradient from
colors in each vertex to a color in its center. The colors are defined by the &quot;<strong><tt>GRADIENTCOLOR</tt></strong>&quot;
attribute, that must be set before each <strong><tt>cdVertex</tt></strong> call and before <strong><tt>cdEnd</tt></strong>
- for the center color. This will not affect the current interior style.</li>
+ for the center color. This will not affect the current interior style.<br>
+ <strong><tt>CD_PATH</tt></strong> is supported. </li>
</ul>
<h4>Attributes </h4>
<ul>
diff --git a/html/en/drv/pdf.html b/html/en/drv/pdf.html
index 979256b..2d9203d 100644
--- a/html/en/drv/pdf.html
+++ b/html/en/drv/pdf.html
@@ -166,7 +166,10 @@ ZapfDingbats</pre>
<li><font face="Courier"><strong><a href="../func/marks.html#cdPixel">Pixel</a></strong></font>:
does not exist in PDF, is simulated using a circle with radius=1.</li>
<li>Floating point primitives are supported.</li>
- <li>Filled primitves do not include the line at the edges of the filled area.</li>
+ <li>Filled primitives do not include the line at the edges of the filled area.</li>
+ <li><a href="../func/lines.html#cdBegin">
+ <font face="Courier"><strong>Begin</strong></font></a>: <strong><tt>CD_PATH</tt></strong>
+ is supported.</li>
</ul>
<h4>Server Images</h4>
<ul>
diff --git a/html/en/drv/ps.html b/html/en/drv/ps.html
index 7e8f0c2..9f4267a 100644
--- a/html/en/drv/ps.html
+++ b/html/en/drv/ps.html
@@ -179,7 +179,10 @@
<li><font face="Courier"><strong><a href="../func/marks.html#cdPixel">Pixel</a></strong></font>:
does not exist in PS, is simulated using a circle with radius=1.</li>
<li>Floating point primitives are supported.</li>
- <li>Filled primitves do not include the line at the edges of the filled area.</li>
+ <li>Filled primitives do not include the line at the edges of the filled area.</li>
+ <li><a href="../func/lines.html#cdBegin">
+ <font face="Courier"><strong>Begin</strong></font></a>: <strong><tt>CD_PATH</tt></strong>
+ is supported.</li>
</ul>
<h4>Server Images</h4>
<ul>
diff --git a/html/en/drv/svg.html b/html/en/drv/svg.html
index 10a0952..af703a5 100644
--- a/html/en/drv/svg.html
+++ b/html/en/drv/svg.html
@@ -76,6 +76,9 @@
<a href="http://www.tecgraf.puc-rio.br/cd/en/func/marks.html#cdPixel">Pixel</a></strong></font>:
does not exist in SVG, is simulated using a circle with radius=0.1.</li>
<li>Floating point primitives are supported.</li>
+ <li><a href="../func/lines.html#cdBegin">
+ <font face="Courier"><strong>Begin</strong></font></a>: <strong><tt>CD_PATH</tt></strong>
+ is supported.</li>
</dir>
<h4>Client Images</h4>
<dir>
diff --git a/html/en/drv/win32.html b/html/en/drv/win32.html
index df0d902..86a3f4e 100644
--- a/html/en/drv/win32.html
+++ b/html/en/drv/win32.html
@@ -37,6 +37,9 @@
using bitmaps.</li>
<li><font face="Courier"><strong><a href="../func/lines.html#cdLine">Line</a></strong></font>:
needs to draw an extra pixel in the final position.</li>
+ <li><a href="../func/lines.html#cdBegin">
+ <font face="Courier"><strong>Begin</strong></font></a>: <strong><tt>CD_PATH</tt></strong>
+ is supported.</li>
</ul>
<h4>Attributes </h4>
<ul>
diff --git a/html/en/drv/xrender.html b/html/en/drv/xrender.html
index 381470f..be85b8e 100644
--- a/html/en/drv/xrender.html
+++ b/html/en/drv/xrender.html
@@ -69,7 +69,8 @@ IRIX.</p>
contain text regions.</li>
<li><a href="../func/lines.html#cdBegin">
<font face="Courier"><strong>Begin</strong></font></a>: <strong><tt>
- CD_BEZIER</tt></strong> is simulated with lines.</li>
+ CD_BEZIER</tt></strong> is simulated with lines.
+ <strong><tt>CD_PATH</tt></strong> is supported.</li>
<li><font face="Courier"><strong><a href="../func/lines.html#cdRect">Rect</a></strong></font>:
simulated using the client's <strong>Line</strong>.</li>
<li><font face="Courier"><a href="../func/lines.html#cdArc"><b>Arc</b></a></font>: