diff options
-rw-r--r-- | html/en/func/attributes.html | 18 | ||||
-rw-r--r-- | html/en/func/filled.html | 59 | ||||
-rw-r--r-- | html/en/home.html | 7 | ||||
-rw-r--r-- | html/style.css | 37 | ||||
-rw-r--r-- | html/wb/wb_usr.lua | 1 | ||||
-rw-r--r-- | html/wb_tree.html | 1 |
6 files changed, 83 insertions, 40 deletions
diff --git a/html/en/func/attributes.html b/html/en/func/attributes.html index 984af01..cc87ee6 100644 --- a/html/en/func/attributes.html +++ b/html/en/func/attributes.html @@ -8,18 +8,21 @@ </head> <body> <h2 align="center">General Attributes</h2> + <div class="function"> <pre class="function"><span class="mainFunction">long int <a name="cdForeground">cdCanvasForeground</a>(cdCanvas* canvas, long int color); [in C]</span> void cdCanvasSetForeground(cdCanvas* canvas, long int color); [in C] canvas:Foreground(color: lightuserdata) -> (old_color: lightuserdata) [in Lua] canvas:SetForeground(color: lightuserdata) [in Lua]</pre> - <p>Configures a new current foreground color and returns the previous one. This - color is used in all primitives (lines, areas, marks and text). Default value: <b> + <p>Configures a new current foreground color and returns the previous one. + This color is used in all primitives (lines, areas, marks and text). Default + value: <b> <tt>CD_BLACK</tt></b>. Value <tt><b>CD_QUERY</b> </tt>simply returns the - current value.</p> + current value.</p> <p>Notice that CD_QUERY conflicts with color RGBA=(255,255,255,0) (full - transparent white). Use <strong>SetForeground</strong> to avoid the - conflict. See also <a href="color.html">Color Coding</a>.</p> + transparent white). Use <strong>SetForeground</strong> to avoid the + conflict. See also <a href="color.html">Color Coding</a>.</p></div> + <div class="function"> <pre class="function"><span class="mainFunction">long int <a name="cdBackground">cdCanvasBackground</a>(cdCanvas* canvas, long int color); [in C]</span> void cdCanvasSetBackground(cdCanvas* canvas, long int color); [in C] @@ -33,7 +36,8 @@ canvas:SetBackground(color: lightuserdata) [in Lua]</pre> Value <tt><b>CD_QUERY</b> </tt>simply returns the current value.</p> <p>Notice that CD_QUERY conflicts with color RGBA=(255,255,255,0) (full transparent white). Use <strong>SetBackground</strong> to avoid the - conflict. See also <a href="color.html">Color Coding</a>.</p> + conflict. See also <a href="color.html">Color Coding</a>.</p></div> + <div class="function"> <pre class="function"><span class="mainFunction">int <a name="cdWriteMode">cdCanvasWriteMode</a>(cdCanvas* canvas, int mode); [in C]</span> canvas:WriteMode(mode: number) -> (old_mode: number) [in Lua]</pre> @@ -44,6 +48,6 @@ canvas:WriteMode(mode: number) -> (old_mode: number) [in Lua]</pre> </p> <p>Note: operation XOR is very useful, because, using white as the foreground color and drawing the same image twice, you can go back to the original color, - before the drawing. This is commonly used for mouse selection feedback.</p> + before the drawing. This is commonly used for mouse selection feedback.</p></div> </body> </html> diff --git a/html/en/func/filled.html b/html/en/func/filled.html index 97a2e84..036f015 100644 --- a/html/en/func/filled.html +++ b/html/en/func/filled.html @@ -35,11 +35,11 @@ PDF drivers the line at the edge is not included at all.</p> the clipping is only affected if it is active.</p> <hr> -<pre class="function"><span class="mainFunction">Filled <a name="Polygons">Polygons</a></span></pre> +<h3>Filled <a name="Polygons">Polygons</a></h3> <p>Filled polygons can be created using <font><strong>cdBegin(</strong>CD_FILL<strong>)/cdVertex(x,y)/.../cdEnd()</strong></font>.</p> <p>See the documentation of <a href="polygon.html">cdBegin/cdVertex/cdEnd</a>.</p> - +<div class="function"> <pre class="function"><span class="mainFunction">void <a name="cdBox">cdCanvasBox</a>(cdCanvas* canvas, int xmin, int xmax, int ymin, int ymax); [in C]</span> void cdfCanvasBox(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); [in C] void wdCanvasBox(cdCanvas* canvas, double xmin, double xmax, double ymin, double ymax); (WC) [in C] @@ -53,8 +53,8 @@ canvas:wBox(xmin, xmax, ymin, ymax: number) (WC) [in Lua]</pre> will be painted. When the interior style <font>CD_HOLLOW</font> is defined, the function behaves like its equivalent <strong> <font>cdRect</font>.</strong></p> - -<pre class="function"><span class="mainFunction">void <a name="cdSector">cdCanvasSector</a>(cdCanvas* canvas, int xc, int yc, int w, int h, double angle1, double angle2); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdSector">cdCanvasSector</a>(cdCanvas* canvas, int xc, int yc, int w, int h, double angle1, double angle2); [in C]</span> void cdfCanvasSector(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); [in C] void wdCanvasSector(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); (WC) [in C] @@ -89,7 +89,8 @@ canvas:wSector(xc, yc, w, h, angle1, angle2: number) (WC) [in Lua]</pre> plus two lines connecting to the center.</p> <p align="center"><font size="4">Sector Parameters</font><br> <img src="../../img/sector.gif" border="2" width="161" height="160"></p> - +</div> +<div class="function"> <pre class="function"><span class="mainFunction">void <a name="cdChord">cdCanvasChord</a>(cdCanvas* canvas, int xc, int yc, int w, int h, double angle1, double angle2); [in C]</span> void cdfCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); [in C] void wdCanvasChord(cdCanvas* canvas, double xc, double yc, double w, double h, double angle1, double angle2); (WC) [in C] @@ -106,9 +107,9 @@ canvas:wChord(xc, yc, w, h, angle1, angle2: number) (WC) [in Lua]</pre> plus a line connecting the arc start and end points.</p> <p align="center"><font size="4">Chord Parameters</font><br> <img src="../../img/chord.gif" border="2" width="161" height="160"></p> - +</div> <h3>Attributes</h3> -<pre class="function"><span class="mainFunction">int <a name="cdBackOpacity">cdCanvasBackOpacity</a>(cdCanvas* canvas, int opacity); [in C]</span> +<div class="function"><pre class="function"><span class="mainFunction">int <a name="cdBackOpacity">cdCanvasBackOpacity</a>(cdCanvas* canvas, int opacity); [in C]</span> canvas:BackOpacity(opacity: number) -> (old_opacity: number) [in Lua]</pre> @@ -121,8 +122,8 @@ canvas:BackOpacity(opacity: number) -> (old_opacity: number) [in Lua]</pre> current value. In some drivers is always opaque.</p> <p align="center"><font size="4">Back Opacity Attribute<br> </font><img src="../../img/opacity.gif" border="2" width="260" height="136"></p> - -<pre class="function"><span class="mainFunction">int <a name="cdFillMode">cdCanvasFillMode</a>(cdCanvas* canvas, int mode); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">int <a name="cdFillMode">cdCanvasFillMode</a>(cdCanvas* canvas, int mode); [in C]</span> canvas:FillMode(mode: number) -> (old_mode: number) [in Lua]</pre> @@ -132,7 +133,8 @@ canvas:FillMode(mode: number) -> (old_mode: number) [in Lua]</pre> <p align="center"><font size="4">Fill Modes</font><br> <img src="../../img/fillmode.gif" border="2" width="260" height="136"></p> -<pre class="function"><span class="mainFunction">int <a name="cdInteriorStyle">cdCanvasInteriorStyle</a>(cdCanvas* canvas, int style); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">int <a name="cdInteriorStyle">cdCanvasInteriorStyle</a>(cdCanvas* canvas, int style); [in C]</span> canvas:InteriorStyle(style: number) -> (old_style: number) [in Lua]</pre> @@ -150,7 +152,8 @@ canvas:InteriorStyle(style: number) -> (old_style: number) [in Lua]</pre> equivalent <strong>cdRect</strong> and <strong>cdArc+Lines</strong>, and the polygons with style <b>CD_FILL</b> behave like <b>CD_CLOSED_LINES</b>.</p> -<pre class="function"><span class="mainFunction">int <a name="cdHatch">cdCanvasHatch</a>(cdCanvas* canvas, int style); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">int <a name="cdHatch">cdCanvasHatch</a>(cdCanvas* canvas, int style); [in C]</span> canvas:Hatch(style: number) -> (old_style: number) [in Lua]</pre> @@ -166,7 +169,8 @@ canvas:Hatch(style: number) -> (old_style: number) [in Lua]</pre> <p align="center"><font size="4">Hatch Styles</font><br> <img src="../../img/hatch.gif" border="2" width="182" height="348"></p> -<pre class="function"><span class="mainFunction">void <a name="cdStipple">cdCanvasStipple</a>(cdCanvas* canvas, int w, int h, const unsigned char *fgbg) [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdStipple">cdCanvasStipple</a>(cdCanvas* canvas, int w, int h, const unsigned char *fgbg) [in C]</span> canvas:Stipple(stipple: cdStipple) [in Lua]</pre> @@ -181,7 +185,8 @@ canvas:Stipple(stipple: cdStipple) [in Lua]</pre> drivers is always opaque. The foreground and background colors must be set before setting the style. </p> -<pre class="function"><span class="mainFunction">void <a name="wdStipple">wdCanvasStipple</a>(cdCanvas* canvas, int w, int h, const unsigned char *fgbg, double w_mm, double h_mm); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="wdStipple">wdCanvasStipple</a>(cdCanvas* canvas, int w, int h, const unsigned char *fgbg, double w_mm, double h_mm); [in C]</span> canvas:wStipple(stipple: cdStipple, w_mm, h_mm: number) [in Lua]</pre> @@ -191,14 +196,16 @@ canvas:wStipple(stipple: cdStipple, w_mm, h_mm: number) [in Lua]</pre> size that is closets to the size in millimeters. The use of this function may produce very large or very small stipples.</p> -<pre class="function"><span class="mainFunction">unsigned char* <a name="cdGetStipple">cdCanvasGetStipple</a>(cdCanvas* canvas, int* w, int* h); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">unsigned char* <a name="cdGetStipple">cdCanvasGetStipple</a>(cdCanvas* canvas, int* w, int* h); [in C]</span> canvas:GetStipple() - > (stipple: cdStipple) [in Lua]</pre> <p>Returns the current <i>stipple</i> and its dimensions. Returns NULL if no <i>stipple</i> was defined.</p> -<pre class="function"><span class="mainFunction">void <a name="cdPattern">cdCanvasPattern</a>(cdCanvas* canvas, int w, int h, const long int *color); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="cdPattern">cdCanvasPattern</a>(cdCanvas* canvas, int w, int h, const long int *color); [in C]</span> canvas:Pattern(pattern: cdPattern) [in Lua]</pre> @@ -209,7 +216,8 @@ canvas:Pattern(pattern: cdPattern) [in Lua]</pre> does not need to be stored by the application, as it is internally replicated by the library.</p> -<pre class="function"><span class="mainFunction">void <a name="wdPattern">wdCanvasPattern</a>(cdCanvas* canvas, int w, int h, const long int *color, double w_mm, double h_mm); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">void <a name="wdPattern">wdCanvasPattern</a>(cdCanvas* canvas, int w, int h, const long int *color, double w_mm, double h_mm); [in C]</span> canvas:wPattern(pattern: cdPattern, w_mm, h_mm: number) [in Lua]</pre> @@ -219,32 +227,37 @@ canvas:wPattern(pattern: cdPattern, w_mm, h_mm: number) [in Lua]</pre> size that is closets to the size in millimeters. The use of this function may produce very large or very small patterns.</p> -<pre class="function"><span class="mainFunction">long int* <a name="cdGetPattern">cdCanvasGetPattern</a>(cdCanvas* canvas, int* w, int* h); [in C]</span> +</div> +<div class="function"><pre class="function"><span class="mainFunction">long int* <a name="cdGetPattern">cdCanvasGetPattern</a>(cdCanvas* canvas, int* w, int* h); [in C]</span> canvas:GetPattern() - > (pattern: cdPattern) [in Lua]</pre> <p>Returns the current <i>pattern</i> and its dimensions. Returns NULL if no <i>pattern</i> was defined.</p> - +</div> <h3>Extras in Lua</h3> -<pre class="function"><a name="cdCreatePattern">cd.CreatePattern</a>(width, height: number) -> (pattern: cdPattern)</pre> + +<div class="function"><pre class="function"><a name="cdCreatePattern">cd.CreatePattern</a>(width, height: number) -> (pattern: cdPattern)</pre> <p>Creates a pattern in Lua.</p> -<pre class="function"><a name="cdKillPattern">cd.KillPattern</a>(pattern: cdPattern)</pre> +</div> +<div class="function"><pre class="function"><a name="cdKillPattern">cd.KillPattern</a>(pattern: cdPattern)</pre> <p>Destroys the created pattern and liberates allocated memory. If this function is not called in Lua, the garbage collector will call it.</p> -<pre class="function"><a name="cdCreateStipple">cd.CreateStipple</a>(width, height: number) -> (stipple: cdStipple)</pre> +</div> +<div class="function"><pre class="function"><a name="cdCreateStipple">cd.CreateStipple</a>(width, height: number) -> (stipple: cdStipple)</pre> <p>Creates a stipple in Lua.</p> -<pre class="function"><a name="cdKillStipple">cd.KillStipple</a>(stipple: cdStipple)</pre> +</div> +<div class="function"><pre class="function"><a name="cdKillStipple">cd.KillStipple</a>(stipple: cdStipple)</pre> <p>Destroys the created stipple and liberates allocated memory. If this function is not called in Lua, the garbage collector will call it.</p> - +</div> <h3><a name="DataAccess">Data Access</a></h3> <p>Data access in Lua is done directly using the operator "<font>[y*width diff --git a/html/en/home.html b/html/en/home.html index 07f79ab..8232b61 100644 --- a/html/en/home.html +++ b/html/en/home.html @@ -5,6 +5,11 @@ <meta http-equiv="Content-Language" content="en-us"> <title>Home</title> <link rel="stylesheet" type="text/css" href="../style.css"> +<style type="text/css"> +.style1 { + text-align: left; +} +</style> </head> <body> @@ -20,7 +25,7 @@ either a window or a more abstract surface, such as Image, Clipboard, Metafile, PS, and so on.</p> <p>This work was developed at Tecgraf/PUC-Rio by means of the partnership with PETROBRAS/CENPES.</p> - <h2>Project Management:</h2> + <h2 class="style1">Project Management:</h2> <p class="info">Antonio Escaņo Scuri</p> diff --git a/html/style.css b/html/style.css index b70dcd7..3e962ca 100644 --- a/html/style.css +++ b/html/style.css @@ -17,6 +17,11 @@ background-color: #E1E1E1; border: 1px solid #808080; color: #5C5C5C; + border-radius: .3em; + -webkit-border-radius: .3em; + -moz-border-radius: .3em; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; } pre { background-color: #CEE7FF; @@ -50,16 +55,30 @@ h4.function { margin-right: 3em; font-weight: normal; } +div.function { + border: 1px solid #93ADE3; + border-radius: .3em; + -webkit-border-radius: .3em; + -moz-border-radius: .3em; + -webkit-box-shadow: 2px 2px 3px #999; + -moz-box-shadow: rgba(0, 0, 0, 0.15) 2px 2px 2px; + margin-bottom: 1em; +} pre.function { - font-family: "Courier New", Courier, monospace; - background-color: #E1E1E1; - border: 1px solid #B1B1B1; - padding: 10px; - font-size: 100%; - line-height: 125%; - margin-left: 0.5em; - margin-right: 3em; - font-weight: normal; + margin: 0px; + font-family: "Courier New", Courier, monospace; + background-color: #E9E9E9; + border-top-left-radius: .3em; + -moz-border-radius-topleft: .3em; + -webkit-border-top-left-radius: .3em; + border-top-right-radius: .3em; + -moz-border-radius-topright: .3em; + -webkit-border-top-right-radius: .3em; + border: 0; + padding: 10px; + font-size: 100%; + line-height: 125%; + font-weight: normal; } .mainFunction { font-size: 110%; diff --git a/html/wb/wb_usr.lua b/html/wb/wb_usr.lua index 36f55c8..24d9c5b 100644 --- a/html/wb/wb_usr.lua +++ b/html/wb/wb_usr.lua @@ -943,6 +943,7 @@ wb_usr.tree = } } }, + { link= "", name= {en= "" } }, { name= {nl= "Drivers"}, link= "drv.html", diff --git a/html/wb_tree.html b/html/wb_tree.html index a7d6053..5bdccbd 100644 --- a/html/wb_tree.html +++ b/html/wb_tree.html @@ -505,6 +505,7 @@ <p><img src="wb_img/vertline.png"><img src="wb_img/blank.png"><img src="wb_img/nodelast.png"><a class="el" name="link187folder.5.3" href="en/func/color.html#cdKillPalette">KillPalette</a></p> </div> </div> + <p class="sep"><img src="wb_img/sepnode.png"></p> <p><img name="imgfolder.6" src="wb_img/plusnodelast.png" onclick="toggleFolder('folder.6')"><a name="link188folder.6" class="el" href="en/drv.html">Drivers</a></p> <div id="folder.6"> <p><img src="wb_img/blank.png"><img name="imgfolder.6.1" src="wb_img/plusnode.png" onclick="toggleFolder('folder.6.1')"> Window Systems</p> |