summaryrefslogtreecommitdiff
path: root/html/en/drv
diff options
context:
space:
mode:
authorscuri <scuri>2010-06-10 20:17:50 +0000
committerscuri <scuri>2010-06-10 20:17:50 +0000
commit2fb345fc972465ade03cc1d527ad3c8db3438ac5 (patch)
tree3fd9b1f7e2b12fd79c2000c0f305e8ef7763364a /html/en/drv
parentc5f7b4e29afdd70a0f05d8785619585a45916b27 (diff)
*** empty log message ***
Diffstat (limited to 'html/en/drv')
-rw-r--r--html/en/drv/cairo.html56
-rw-r--r--html/en/drv/gdk.html8
-rw-r--r--html/en/drv/svg.html2
-rw-r--r--html/en/drv/xwin.html4
4 files changed, 54 insertions, 16 deletions
diff --git a/html/en/drv/cairo.html b/html/en/drv/cairo.html
index 2e04833..adb65ac 100644
--- a/html/en/drv/cairo.html
+++ b/html/en/drv/cairo.html
@@ -10,6 +10,9 @@
.style1 {
font-family: Courier;
}
+.style3 {
+ text-decoration: underline;
+}
</style>
</head>
@@ -19,8 +22,7 @@
<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 Pango functions to support Unicode text. This driver can be
+ <a href="http://library.gnome.org/devel/pango/">Cairo</a> and Pango functions. 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
@@ -40,15 +42,49 @@ for complex clipping regions.</p>
<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>
+ with a standard GDK, 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>
+ cdInitContextPlus()</strong></font> once and link to the libraries &quot;<strong>cdcairo</strong>&quot; and &quot;<strong>cairo</strong>&quot;. Also the Cairo library must be installed in your system.
+ When using the GDK base driver you do not need to link with the &quot;<strong>cdcairo</strong>&quot;
+ library. </p>
+ <p>In CDLua it is not necessary any additional initialization, and <strong>require&quot;cdluacairo&quot;</strong> can be used when
+ using dynamic libraries. But when using require there are some restrictions,
+ in Win32 the GDK base driver can NOT be used, in Linux the X11 base driver
+ can NOT be used, and in other UNICES the GDK base driver can NOT be used.</p>
+
+<h3>Extra Drivers (cdcairo.h)</h3>
+<p>Only available in Lua when <strong>require&quot;cdluacairo&quot;</strong> is
+used.</p>
+
+<h4>CD_CAIRO_PS - PostScript Driver</h4>
+
+ <p>Similar to <a href="ps.html">CD_PS</a>, uses the same creation parameters.
+ But margins are not supported and Postscript level can be 2 (parameter -2)
+ or 3 (parameter -3).</p>
+
+<h4>CD_CAIRO_PDF - PDF Driver</h4>
+
+ <p>Similar to <a href="pdf.html">CD_PDF</a>, uses the same creation
+ parameters. The driver also does not depends on the PDFLib. The additional
+ attributes &quot;OPACITY&quot;, &quot;PATTERN&quot;, &quot;PDF&quot;, &quot;PDFLIBVERSION&quot; and the description
+ strings, are not supported.</p>
+<h4>CD_CAIRO_SVG - Scalable Vector Graphics Driver</h4>
+
+ <p>Similar to <a href="svg.html">CD_SVG</a>, uses the same creation
+ parameters. The additional attributes &quot;OPACITY&quot; and &quot;CMD&quot; are not supported.</p>
+
+<h4>CD_CAIRO_IMAGERGB - RGB Client Image Driver</h4>
+
+ <p>Similar to <a href="irgb.html">CD_IMAGERGB</a>, uses <span class="style3">
+ almost</span> the same creation parameters. The main difference is that the
+ data pointers are packed in RGBARGBARGBA... format. So it is used only 1
+ pointer for data, instead of 3. Also the attributes &quot;REDIMAGE&quot;,
+ &quot;GREENIMAGE&quot;, &quot;BLUEIMAGE&quot; and &quot;ALPHAIMAGE are not supported and replaced by
+ the &quot;RGBDATA&quot; attribute. There are also two new attributes, &quot;STRIDE&quot; that
+ returns the line size in bytes, when data is specified during creation then
+ stride is always width*32. Even when there is not alpha channel, data is
+ stored in 32 bits per pixel. Image data is also organized in top-bottom
+ orientation, it means the data pointer points to the top-left corner.</p>
<h3>Behavior of Functions</h3>
<h4>Control&nbsp; </h4>
diff --git a/html/en/drv/gdk.html b/html/en/drv/gdk.html
index 694a22c..e54d6e0 100644
--- a/html/en/drv/gdk.html
+++ b/html/en/drv/gdk.html
@@ -6,11 +6,6 @@
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>GDK</title>
<link rel="stylesheet" type="text/css" href="../../style.css">
-<style type="text/css">
-.style1 {
- font-family: monospace;
-}
-</style>
</head>
<body>
@@ -23,6 +18,9 @@
<a href="http://library.gnome.org/devel/pango/">Pango</a> API
functions. This driver was designed for the GTK+ version 2, and can be
compiled and used in all systems GDK is supported.</p>
+<p>This is included in the main library in Linux and BSD. To use it in other
+Unices and in Win32 you must link with the <strong>cdgdk</strong> library
+instead of the <strong>cd</strong> main library.</p>
<h3>Behavior of Functions</h3>
<h4>Control&nbsp; </h4>
diff --git a/html/en/drv/svg.html b/html/en/drv/svg.html
index 10a0952..31a5f4a 100644
--- a/html/en/drv/svg.html
+++ b/html/en/drv/svg.html
@@ -10,7 +10,7 @@
<body>
-<h2 style="text-align: left">CD_SVG - CD Scalable Vector Graphics Driver (cdsvg.h)</h2>
+<h2 style="text-align: left">CD_SVG - Scalable Vector Graphics Driver (cdsvg.h)</h2>
<p>This driver allows the generation of a SVG file, a modularized language for
describing two-dimensional vector and mixed vector/raster graphics in XML. The
diff --git a/html/en/drv/xwin.html b/html/en/drv/xwin.html
index 3049da9..86d57ed 100644
--- a/html/en/drv/xwin.html
+++ b/html/en/drv/xwin.html
@@ -21,6 +21,10 @@
implemented in the X-Windows system. The implementation uses the XLIB API
functions. It was developed using X11R4, but works in more recent versions,
such as X11R6.</p>
+<p>This is included in the main library in AIX, SunOS and IRIX. To use it in
+Linux and BSD you must link with the <strong>cdx11</strong> library instead of
+the <strong>cd</strong> main library.</p>
+
<p>Note: The coordinates internally implemented by the video driver use 16-bit
integers. Therefore, if a coordinate with less than -32k or more than 32k is
defined, it will be interpreted incorrectly.</p>