1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Painting system</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>Painting system</h1>Classes that provide support for vector graphics.
<a href="#_details">More...</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WBrush.html">Wt::WBrush</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class that defines the style for filling areas. <a href="classWt_1_1WBrush.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WCanvasPaintDevice.html">Wt::WCanvasPaintDevice</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A paint device for rendering using the HTML 5 <canvas> element. <a href="classWt_1_1WCanvasPaintDevice.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WColor.html">Wt::WColor</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A class that specifies a color. <a href="classWt_1_1WColor.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFont.html">Wt::WFont</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A style class describing a font. <a href="classWt_1_1WFont.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineF.html">Wt::WLineF</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Utility class that defines a single line. <a href="classWt_1_1WLineF.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPaintDevice.html">Wt::WPaintDevice</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The abstract base class for a paint device. <a href="classWt_1_1WPaintDevice.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPaintedWidget.html">Wt::WPaintedWidget</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A widget that is painted using vector graphics. <a href="classWt_1_1WPaintedWidget.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainter.html">Wt::WPainter</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Helper class for painting on a <a class="el" href="classWt_1_1WPaintDevice.html" title="The abstract base class for a paint device.">WPaintDevice</a>. <a href="classWt_1_1WPainter.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html">Wt::WPainterPath</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A path defining a shape. <a href="classWt_1_1WPainterPath.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPen.html">Wt::WPen</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class that defines the style for pen strokes. <a href="classWt_1_1WPen.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPointF.html">Wt::WPointF</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Utility class that defines a 2D point. <a href="classWt_1_1WPointF.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WRectF.html">Wt::WRectF</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Utility class that defines a rectangle. <a href="classWt_1_1WRectF.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WShadow.html">Wt::WShadow</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Class that defines a shadow style. <a href="classWt_1_1WShadow.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html">Wt::WSvgImage</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A paint device for rendering using Scalable Vector Graphics (SVG). <a href="classWt_1_1WSvgImage.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTransform.html">Wt::WTransform</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A 2D affine transformation matrix. <a href="classWt_1_1WTransform.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVectorImage.html">Wt::WVectorImage</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">An abstract paint device for rendering using native vector graphics. <a href="classWt_1_1WVectorImage.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WVmlImage.html">Wt::WVmlImage</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">A paint device for rendering using the VML pseudo-standard. <a href="classWt_1_1WVmlImage.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__painting.html#gb70170afb6347d18ff9dac17e05e133e">Wt::WPen::PenStyle</a> { <br>
<a class="el" href="group__painting.html#ggb70170afb6347d18ff9dac17e05e133ea8125e799a1289cd6dd0b2595a496a82">Wt::NoPen</a>,
<a class="el" href="group__painting.html#ggb70170afb6347d18ff9dac17e05e133ec1888b9cee513c2bf98c6fb9f4e307ab">Wt::SolidLine</a>,
<a class="el" href="group__painting.html#ggb70170afb6347d18ff9dac17e05e133e7667698a6fb5adbf8f128519cbb93af8">Wt::DashLine</a>,
<a class="el" href="group__painting.html#ggb70170afb6347d18ff9dac17e05e133e26ade9ba6072abfcef185cca70227d15">Wt::DotLine</a>,
<br>
<a class="el" href="group__painting.html#ggb70170afb6347d18ff9dac17e05e133e45cac3164febb16cf7028403e01077a0">Wt::DashDotLine</a>,
<a class="el" href="group__painting.html#ggb70170afb6347d18ff9dac17e05e133e758c17a422e91d2e497f15054123e302">Wt::DashDotDotLine</a>
<br>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration that indicates a pen style. <a href="group__painting.html#gb70170afb6347d18ff9dac17e05e133e">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__painting.html#g819ef9a03fb79c9834508b79eac604f2">Wt::WPen::PenCapStyle</a> { <a class="el" href="group__painting.html#gg819ef9a03fb79c9834508b79eac604f2394700c2ab47fe2b23564ced1c1e129a">Wt::FlatCap</a>,
<a class="el" href="group__painting.html#gg819ef9a03fb79c9834508b79eac604f239a378820d5058a3677f9852c5783783">Wt::SquareCap</a>,
<a class="el" href="group__painting.html#gg819ef9a03fb79c9834508b79eac604f23d1c8a630cb15cec7b33434d9564182a">Wt::RoundCap</a>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration that indicates how line end points are rendered. <a href="group__painting.html#g819ef9a03fb79c9834508b79eac604f2">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__painting.html#gaf495faaba3ae03366a1646a4b5526be">Wt::WPen::PenJoinStyle</a> { <a class="el" href="group__painting.html#ggaf495faaba3ae03366a1646a4b5526bed2f7df311a138e580c95d728b0128004">Wt::MiterJoin</a>,
<a class="el" href="group__painting.html#ggaf495faaba3ae03366a1646a4b5526be9550acce5f4da6e134f34392d7b072ba">Wt::BevelJoin</a>,
<a class="el" href="group__painting.html#ggaf495faaba3ae03366a1646a4b5526be3be2fdf749560b7229b3472d8ff6ad12">Wt::RoundJoin</a>
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration that indicates how line joins are rendered. <a href="group__painting.html#gaf495faaba3ae03366a1646a4b5526be">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">Wt::WBrush::WBrushStyle</a> { <a class="el" href="group__painting.html#ggffe43936b1bbb1ca2b308572fcdeb157a6f513232fadbbcaf8a576b7aaefc67a">Wt::NoBrush</a> = 0,
<a class="el" href="group__painting.html#ggffe43936b1bbb1ca2b308572fcdeb157574469ed16523a26c683e83c8fee3ed6">Wt::SolidPattern</a> = 1
}</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Enumeration that indicates a fill style. <a href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">More...</a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Classes that provide support for vector graphics.
<p>
Wt provides a vector graphics painting system, which depending on the browser support, uses one of three different methods to paint the graphics (inline SVG, inline VML or HTML 5 <canvas> element). Vector graphics has as benefit a lower bandwidth usage compared to raster images, indepedent of the image size. To use the paint system, you need to specialize <a class="el" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics.">WPaintedWidget</a> and use a <a class="el" href="classWt_1_1WPainter.html" title="Helper class for painting on a WPaintDevice.">WPainter</a> to paint the contents of the widget inside its <a class="el" href="classWt_1_1WPaintedWidget.html#d8ce22eff41754c8616f45851f57fb1a" title="Paints the widget.">WPaintedWidget::paintEvent()</a>.<p>
If you want to use inline SVG (which has some benefits since it is widely supported and is the most complete), you will need to enable xhtml support in your configuration file by enabling send-xhtml-mimetype, see <a class="el" href="overview.html#config_general">9.2 General application settings (wt_config.xml)</a>. <hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="g819ef9a03fb79c9834508b79eac604f2"></a><!-- doxytag: member="Wt::WPen::PenCapStyle" ref="g819ef9a03fb79c9834508b79eac604f2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__painting.html#g819ef9a03fb79c9834508b79eac604f2">PenCapStyle</a><code> [related, inherited]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Enumeration that indicates how line end points are rendered.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="gg819ef9a03fb79c9834508b79eac604f2394700c2ab47fe2b23564ced1c1e129a"></a><!-- doxytag: member="FlatCap" ref="gg819ef9a03fb79c9834508b79eac604f2394700c2ab47fe2b23564ced1c1e129a" args="" -->FlatCap</em> </td><td>
Flat ends. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="gg819ef9a03fb79c9834508b79eac604f239a378820d5058a3677f9852c5783783"></a><!-- doxytag: member="SquareCap" ref="gg819ef9a03fb79c9834508b79eac604f239a378820d5058a3677f9852c5783783" args="" -->SquareCap</em> </td><td>
Square ends (prolongs line with half width). </td></tr>
<tr><td valign="top"><em><a class="anchor" name="gg819ef9a03fb79c9834508b79eac604f23d1c8a630cb15cec7b33434d9564182a"></a><!-- doxytag: member="RoundCap" ref="gg819ef9a03fb79c9834508b79eac604f23d1c8a630cb15cec7b33434d9564182a" args="" -->RoundCap</em> </td><td>
Round ends (terminates with a half circle). </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="gaf495faaba3ae03366a1646a4b5526be"></a><!-- doxytag: member="Wt::WPen::PenJoinStyle" ref="gaf495faaba3ae03366a1646a4b5526be" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__painting.html#gaf495faaba3ae03366a1646a4b5526be">PenJoinStyle</a><code> [related, inherited]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Enumeration that indicates how line joins are rendered.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="ggaf495faaba3ae03366a1646a4b5526bed2f7df311a138e580c95d728b0128004"></a><!-- doxytag: member="MiterJoin" ref="ggaf495faaba3ae03366a1646a4b5526bed2f7df311a138e580c95d728b0128004" args="" -->MiterJoin</em> </td><td>
Pointy joins. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggaf495faaba3ae03366a1646a4b5526be9550acce5f4da6e134f34392d7b072ba"></a><!-- doxytag: member="BevelJoin" ref="ggaf495faaba3ae03366a1646a4b5526be9550acce5f4da6e134f34392d7b072ba" args="" -->BevelJoin</em> </td><td>
Squared-off joins. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggaf495faaba3ae03366a1646a4b5526be3be2fdf749560b7229b3472d8ff6ad12"></a><!-- doxytag: member="RoundJoin" ref="ggaf495faaba3ae03366a1646a4b5526be3be2fdf749560b7229b3472d8ff6ad12" args="" -->RoundJoin</em> </td><td>
Rounded joins. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="gb70170afb6347d18ff9dac17e05e133e"></a><!-- doxytag: member="Wt::WPen::PenStyle" ref="gb70170afb6347d18ff9dac17e05e133e" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__painting.html#gb70170afb6347d18ff9dac17e05e133e">PenStyle</a><code> [related, inherited]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Enumeration that indicates a pen style.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="ggb70170afb6347d18ff9dac17e05e133ea8125e799a1289cd6dd0b2595a496a82"></a><!-- doxytag: member="NoPen" ref="ggb70170afb6347d18ff9dac17e05e133ea8125e799a1289cd6dd0b2595a496a82" args="" -->NoPen</em> </td><td>
Do not stroke. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggb70170afb6347d18ff9dac17e05e133ec1888b9cee513c2bf98c6fb9f4e307ab"></a><!-- doxytag: member="SolidLine" ref="ggb70170afb6347d18ff9dac17e05e133ec1888b9cee513c2bf98c6fb9f4e307ab" args="" -->SolidLine</em> </td><td>
Stroke with a solid line. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggb70170afb6347d18ff9dac17e05e133e7667698a6fb5adbf8f128519cbb93af8"></a><!-- doxytag: member="DashLine" ref="ggb70170afb6347d18ff9dac17e05e133e7667698a6fb5adbf8f128519cbb93af8" args="" -->DashLine</em> </td><td>
Stroked with a dashed line. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggb70170afb6347d18ff9dac17e05e133e26ade9ba6072abfcef185cca70227d15"></a><!-- doxytag: member="DotLine" ref="ggb70170afb6347d18ff9dac17e05e133e26ade9ba6072abfcef185cca70227d15" args="" -->DotLine</em> </td><td>
Stroke with a dotted line. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggb70170afb6347d18ff9dac17e05e133e45cac3164febb16cf7028403e01077a0"></a><!-- doxytag: member="DashDotLine" ref="ggb70170afb6347d18ff9dac17e05e133e45cac3164febb16cf7028403e01077a0" args="" -->DashDotLine</em> </td><td>
Stroke with a dash dot line. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggb70170afb6347d18ff9dac17e05e133e758c17a422e91d2e497f15054123e302"></a><!-- doxytag: member="DashDotDotLine" ref="ggb70170afb6347d18ff9dac17e05e133e758c17a422e91d2e497f15054123e302" args="" -->DashDotDotLine</em> </td><td>
Stroke with a dash dot dot line. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="gffe43936b1bbb1ca2b308572fcdeb157"></a><!-- doxytag: member="Wt::WBrush::WBrushStyle" ref="gffe43936b1bbb1ca2b308572fcdeb157" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__painting.html#gffe43936b1bbb1ca2b308572fcdeb157">WBrushStyle</a><code> [related, inherited]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Enumeration that indicates a fill style.
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="ggffe43936b1bbb1ca2b308572fcdeb157a6f513232fadbbcaf8a576b7aaefc67a"></a><!-- doxytag: member="NoBrush" ref="ggffe43936b1bbb1ca2b308572fcdeb157a6f513232fadbbcaf8a576b7aaefc67a" args="" -->NoBrush</em> </td><td>
Do not fill. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="ggffe43936b1bbb1ca2b308572fcdeb157574469ed16523a26c683e83c8fee3ed6"></a><!-- doxytag: member="SolidPattern" ref="ggffe43936b1bbb1ca2b308572fcdeb157574469ed16523a26c683e83c8fee3ed6" args="" -->SolidPattern</em> </td><td>
Fill with a solid color. </td></tr>
</table>
</dl>
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:06 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|