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 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WSvgImage Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
</head>
<body>
<div id="top"><!-- do not remove this div! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">Wt
 <span id="projectnumber">3.2.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceWt.html">Wt</a> </li>
<li class="navelem"><a class="el" href="classWt_1_1WSvgImage.html">WSvgImage</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pro-methods">Protected Member Functions</a> </div>
<div class="headertitle">
<div class="title">Wt::WSvgImage Class Reference<div class="ingroups"><a class="el" href="group__painting.html">Painting system</a></div></div> </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WSvgImage" --><!-- doxytag: inherits="Wt::WResource,Wt::WVectorImage" -->
<p>A paint device for rendering using Scalable Vector Graphics (SVG).
<a href="classWt_1_1WSvgImage.html#details">More...</a></p>
<p><code>#include <Wt/WSvgImage></code></p>
<div class="dynheader">
Inheritance diagram for Wt::WSvgImage:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WSvgImage__inherit__graph.png" border="0" usemap="#Wt_1_1WSvgImage_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WSvgImage_inherit__map" id="Wt_1_1WSvgImage_inherit__map">
<area shape="rect" href="classWt_1_1WResource.html" title="An object which can be rendered in the HTTP protocol." alt="" coords="5,80,120,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="15,5,111,32"/><area shape="rect" href="classWt_1_1WVectorImage.html" title="An abstract paint device for rendering using native vector graphics." alt="" coords="144,80,275,107"/><area shape="rect" href="classWt_1_1WPaintDevice.html" title="The abstract base class for a paint device." alt="" coords="145,5,273,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classWt_1_1WSvgImage-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a483d67f1044b129def4a00641d046650">WSvgImage</a> (const <a class="el" href="classWt_1_1WLength.html">WLength</a> &width, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &height, <a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0, bool paintUpdate=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create an SVG paint device. <a href="#a483d67f1044b129def4a00641d046650"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adae0510faa27fb9ae5d3e199de3cd5d9"></a><!-- doxytag: member="Wt::WSvgImage::~WSvgImage" ref="adae0510faa27fb9ae5d3e199de3cd5d9" args="()" -->
 </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#adae0510faa27fb9ae5d3e199de3cd5d9">~WSvgImage</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8d0f1b0da9d0cca17b459afe586199aa"></a><!-- doxytag: member="Wt::WSvgImage::features" ref="a8d0f1b0da9d0cca17b459afe586199aa" args="() const " -->
virtual WFlags< <a class="el" href="classWt_1_1WPaintDevice.html#a03b5b2abb109568cc60b2d6ec595ad0b">FeatureFlag</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a8d0f1b0da9d0cca17b459afe586199aa">features</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns device features. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a9716e255c443f13d4845799f2ddadf67">setChanged</a> (WFlags< <a class="el" href="classWt_1_1WPaintDevice.html#a1a2feafa01212eba9ad6c7b484ad8da1">ChangeFlag</a> > flags)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Indicates changes in painter state. <a href="#a9716e255c443f13d4845799f2ddadf67"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#afd7b970580c7433fe58ec157d273d824">drawArc</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &rect, double startAngle, double spanAngle)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws an arc. <a href="#afd7b970580c7433fe58ec157d273d824"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a856da1392335f90675d3d110c90a8e02">drawImage</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &rect, const std::string &imgUri, int imgWidth, int imgHeight, const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &sourceRect)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws an image. <a href="#a856da1392335f90675d3d110c90a8e02"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#adaeba36845c9772efc195a88a53584a6">drawLine</a> (double x1, double y1, double x2, double y2)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a line. <a href="#adaeba36845c9772efc195a88a53584a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a7f76614002d01f2fce87b9fd5097009e">drawPath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &path)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws a path. <a href="#a7f76614002d01f2fce87b9fd5097009e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a5a650e6997b4bc04e76c48c804b9b1b1">drawText</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &rect, WFlags< <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> > alignmentFlags, <a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419">TextFlag</a> textFlag, const <a class="el" href="classWt_1_1WString.html">WString</a> &text)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Draws text. <a href="#a5a650e6997b4bc04e76c48c804b9b1b1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WTextItem.html">WTextItem</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a3a3a5bdf8997895db4703213b40bf7ff">measureText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &text, double maxWidth=-1, bool wordWrap=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Measures rendered text size. <a href="#a3a3a5bdf8997895db4703213b40bf7ff"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WFontMetrics.html">WFontMetrics</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a10e130d629f8a46f3245aaa89d3d2005">fontMetrics</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns font metrics. <a href="#a10e130d629f8a46f3245aaa89d3d2005"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#ad0333d7b9933ced6929d1482f8320fb5">init</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Initializes the device for painting. <a href="#ad0333d7b9933ced6929d1482f8320fb5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a9dac09bd538e107a2808effbdd42a0c2">done</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Finishes painting on the device. <a href="#a9dac09bd538e107a2808effbdd42a0c2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#aeadc4934d16507d660ad8b95e4ad407a">paintActive</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether painting is active. <a href="#aeadc4934d16507d660ad8b95e4ad407a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11bb431a8cec09c1e38c710e50407043"></a><!-- doxytag: member="Wt::WSvgImage::rendered" ref="a11bb431a8cec09c1e38c710e50407043" args="()" -->
virtual std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a11bb431a8cec09c1e38c710e50407043">rendered</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Internal method. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WLength.html">WLength</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#aee03b670ef9fb624e4393a9ef55005d3">width</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the device width. <a href="#aee03b670ef9fb624e4393a9ef55005d3"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WLength.html">WLength</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#af8655b3ac955b1e87e64a4db7912a03b">height</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the device height. <a href="#af8655b3ac955b1e87e64a4db7912a03b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#ae79007c08cab7b4c9f24f0e0210c02e1">handleRequest</a> (const <a class="el" href="classWt_1_1Http_1_1Request.html">Http::Request</a> &request, <a class="el" href="classWt_1_1Http_1_1Response.html">Http::Response</a> &response)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Handles a request. <a href="#ae79007c08cab7b4c9f24f0e0210c02e1"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WPainter.html">WPainter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a674990e3990d86462436b2ac01df6baf">painter</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the painter that is currently painting on the device. <a href="#a674990e3990d86462436b2ac01df6baf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1da329a749b8b699ec599cc711a16870"></a><!-- doxytag: member="Wt::WSvgImage::setPainter" ref="a1da329a749b8b699ec599cc711a16870" args="(WPainter *painter)" -->
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WSvgImage.html#a1da329a749b8b699ec599cc711a16870">setPainter</a> (<a class="el" href="classWt_1_1WPainter.html">WPainter</a> *painter)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the painter. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A paint device for rendering using Scalable Vector Graphics (SVG). </p>
<p>The WSvgImage is primarily used by <a class="el" href="classWt_1_1WPaintedWidget.html" title="A widget that is painted using vector graphics.">WPaintedWidget</a> to render to the browser in Support Vector Graphics (SVG) format.</p>
<p>You may also use the WSvgImage as an independent resource, for example in conjunction with a <a class="el" href="classWt_1_1WAnchor.html" title="A widget that represents an HTML anchor (to link to other documents).">WAnchor</a> or <a class="el" href="classWt_1_1WImage.html" title="A widget that displays an image.">WImage</a>, or to make a hard copy of an image in SVG format, using <a class="el" href="classWt_1_1WResource.html#ad8bbe65a888cc43e0d356f18509b9a0f" title="Stream the resource to a stream.">write()</a>: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1Chart_1_1WCartesianChart.html" title="A cartesian chart.">Wt::Chart::WCartesianChart</a> *chart = ...
<a class="code" href="classWt_1_1WSvgImage.html" title="A paint device for rendering using Scalable Vector Graphics (SVG).">Wt::WSvgImage</a> svgImage(800, 400);
<a class="code" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">Wt::WPainter</a> p(&svgImage);
chart-><a class="code" href="classWt_1_1Chart_1_1WCartesianChart.html#a6fb2219936b721b8829dc7093dcb5c16" title="Paint the chart in a rectangle of the given painter.">paint</a>(p);
p.end();
std::ofstream f(<span class="stringliteral">"chart.svg"</span>);
svgImage.write(f);
</pre></div> </div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="a483d67f1044b129def4a00641d046650"></a><!-- doxytag: member="Wt::WSvgImage::WSvgImage" ref="a483d67f1044b129def4a00641d046650" args="(const WLength &width, const WLength &height, WObject *parent=0, bool paintUpdate=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Wt::WSvgImage::WSvgImage </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> & </td>
<td class="paramname"><em>width</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> & </td>
<td class="paramname"><em>height</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1WObject.html">WObject</a> * </td>
<td class="paramname"><em>parent</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>paintUpdate</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create an SVG paint device. </p>
<p>If <code>paintUpdate</code> is <code>true</code>, then only an SVG fragment will be rendered that can be used to update the DOM of an existing SVG image, instead of a full SVG image. </p>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a9dac09bd538e107a2808effbdd42a0c2"></a><!-- doxytag: member="Wt::WSvgImage::done" ref="a9dac09bd538e107a2808effbdd42a0c2" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::done </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Finishes painting on the device. </p>
<p>This method is called when a <a class="el" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">WPainter</a> stopped painting.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a50beb0c8cb77c12e2dee807e4fe4bcb4" title="Ends painting.">WPainter::end()</a> </dd></dl>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a75827be2076716985533dbc75dfdc512">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="afd7b970580c7433fe58ec157d273d824"></a><!-- doxytag: member="Wt::WSvgImage::drawArc" ref="afd7b970580c7433fe58ec157d273d824" args="(const WRectF &rect, double startAngle, double spanAngle)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::drawArc </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> & </td>
<td class="paramname"><em>rect</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>startAngle</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>spanAngle</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws an arc. </p>
<p>The arc is defined as in <a class="el" href="classWt_1_1WPainter.html#aa79220ed9456f67a393009e5c5eea27e" title="Draws an arc.">WPainter::drawArc(const WRectF& rectangle, int startAngle, int spanAngle)</a></p>
<p>The arc must be stroked, filled, and transformed using the current painter settings. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a605316797b1aa4be60c24d95fc5a1ab4">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="a856da1392335f90675d3d110c90a8e02"></a><!-- doxytag: member="Wt::WSvgImage::drawImage" ref="a856da1392335f90675d3d110c90a8e02" args="(const WRectF &rect, const std::string &imgUri, int imgWidth, int imgHeight, const WRectF &sourceRect)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::drawImage </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> & </td>
<td class="paramname"><em>rect</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>imageUri</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>imgWidth</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>imgHeight</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> & </td>
<td class="paramname"><em>sourceRect</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws an image. </p>
<p>Draws <em>sourceRect</em> from the image with URL <code>imageUri</code> and original dimensions <em>imgWidth</em> and <code>imgHeight</code> to the location, into the rectangle defined by <code>rect</code>.</p>
<p>The image is transformed using the current painter settings. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#af92ff3c6d2f5c351c6931306d9cc1162">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="adaeba36845c9772efc195a88a53584a6"></a><!-- doxytag: member="Wt::WSvgImage::drawLine" ref="adaeba36845c9772efc195a88a53584a6" args="(double x1, double y1, double x2, double y2)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::drawLine </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>x1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>y1</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>x2</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>y2</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws a line. </p>
<p>The line must be stroked and transformed using the current painter settings. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#abd267ca3adb6c394079042810864ac9a">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="a7f76614002d01f2fce87b9fd5097009e"></a><!-- doxytag: member="Wt::WSvgImage::drawPath" ref="a7f76614002d01f2fce87b9fd5097009e" args="(const WPainterPath &path)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::drawPath </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> & </td>
<td class="paramname"><em>path</em></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws a path. </p>
<p>The path must be stroked, filled, and transformed using the current painter settings. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#ab3c368b79fef8bc53681821610dd2077">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="a5a650e6997b4bc04e76c48c804b9b1b1"></a><!-- doxytag: member="Wt::WSvgImage::drawText" ref="a5a650e6997b4bc04e76c48c804b9b1b1" args="(const WRectF &rect, WFlags< AlignmentFlag > alignmentFlags, TextFlag textFlag, const WString &text)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::drawText </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> & </td>
<td class="paramname"><em>rect</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">WFlags< <a class="el" href="namespaceWt.html#ab8f772c69bc8180c31f9e4f4593b143f">AlignmentFlag</a> > </td>
<td class="paramname"><em>alignmentFlags</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceWt.html#a3bf85f6b385349dadfa7e205a39ec419">TextFlag</a> </td>
<td class="paramname"><em>textFlag</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td>
<td class="paramname"><em>text</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Draws text. </p>
<p>The text must be rendered, stroked and transformed using the current painter settings. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#adfcb1566a4c765d0ff1575cc3f6be31d">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="a10e130d629f8a46f3245aaa89d3d2005"></a><!-- doxytag: member="Wt::WSvgImage::fontMetrics" ref="a10e130d629f8a46f3245aaa89d3d2005" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WFontMetrics.html">WFontMetrics</a> Wt::WSvgImage::fontMetrics </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns font metrics. </p>
<p>This returns font metrics for the current font.</p>
<p>Throws a std::logic_error if the underlying device does not provide font metrics. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a468ec8684106f8e24b3c46876ee86ff7">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="ae79007c08cab7b4c9f24f0e0210c02e1"></a><!-- doxytag: member="Wt::WSvgImage::handleRequest" ref="ae79007c08cab7b4c9f24f0e0210c02e1" args="(const Http::Request &request, Http::Response &response)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::handleRequest </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1Http_1_1Request.html">Http::Request</a> & </td>
<td class="paramname"><em>request</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classWt_1_1Http_1_1Response.html">Http::Response</a> & </td>
<td class="paramname"><em>response</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Handles a request. </p>
<p>Reimplement this method so that a proper response is generated for the given request. From the <code>request</code> object you can access request parameters and whether the request is a continuation request. In the <code>response</code> object, you should set the mime type and stream the output data.</p>
<p>A request may also concern a continuation, indicated in <a class="el" href="classWt_1_1Http_1_1Request.html#a2d4f88961a222be846460a8238823ae0" title="Returns a continuation object.">Http::Request::continuation()</a>, in which case the next part for a previously created continuation should be served.</p>
<p>While handling a request, which may happen at any time together with event handling, the library makes sure that the resource is not being concurrently deleted, but multiple requests may happend simultaneously for a single resource. </p>
<p>Implements <a class="el" href="classWt_1_1WResource.html#a3a740f8cc29e2e6e4e58defc9c88b8b6">Wt::WResource</a>.</p>
</div>
</div>
<a class="anchor" id="af8655b3ac955b1e87e64a4db7912a03b"></a><!-- doxytag: member="Wt::WSvgImage::height" ref="af8655b3ac955b1e87e64a4db7912a03b" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classWt_1_1WLength.html">WLength</a> Wt::WSvgImage::height </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the device height. </p>
<p>The device height, in pixels, establishes the height of the device coordinate system. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a24c7e1363440e6994b44381ebf443157">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="ad0333d7b9933ced6929d1482f8320fb5"></a><!-- doxytag: member="Wt::WSvgImage::init" ref="ad0333d7b9933ced6929d1482f8320fb5" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::init </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Initializes the device for painting. </p>
<p>This method is called when a <a class="el" href="classWt_1_1WPainter.html" title="Vector graphics painting class.">WPainter</a> starts painting.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#a6b81663b5599f0736ae5099ac7325d44" title="Begins painting on a paint device.">WPainter::begin(WPaintDevice *)</a>, <a class="el" href="classWt_1_1WSvgImage.html#a674990e3990d86462436b2ac01df6baf" title="Returns the painter that is currently painting on the device.">painter()</a> </dd></dl>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a04d6f9e0653a9785662c1e987b597cc6">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="a3a3a5bdf8997895db4703213b40bf7ff"></a><!-- doxytag: member="Wt::WSvgImage::measureText" ref="a3a3a5bdf8997895db4703213b40bf7ff" args="(const WString &text, double maxWidth=-1, bool wordWrap=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WTextItem.html">WTextItem</a> Wt::WSvgImage::measureText </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td>
<td class="paramname"><em>text</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>maxWidth</em> = <code>-1</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>wordWrap</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Measures rendered text size. </p>
<p>Returns the bounding rect of the given text when rendered using the current font.</p>
<p>If <code>maxWidth</code> != -1, then the text is truncated to fit in the width.</p>
<p>If <code>wordWrap</code> = <code>true</code> then text is truncated only at word boundaries. Note that in this case the whitespace at the truncated position is included in the text but not accounted for by the returned width (since usually you will not render the whitespace at the end of a line).</p>
<p>Throws a std::logic_error if the underlying device does not provide font metrics. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a21d005287f1973348357e089d6d18df1">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="aeadc4934d16507d660ad8b95e4ad407a"></a><!-- doxytag: member="Wt::WSvgImage::paintActive" ref="aeadc4934d16507d660ad8b95e4ad407a" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool Wt::WSvgImage::paintActive </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns whether painting is active. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WSvgImage.html#ad0333d7b9933ced6929d1482f8320fb5" title="Initializes the device for painting.">init()</a>, <a class="el" href="classWt_1_1WSvgImage.html#a674990e3990d86462436b2ac01df6baf" title="Returns the painter that is currently painting on the device.">painter()</a> </dd></dl>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a7dc74a2c7c98e38c7851277313d313f6">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="a674990e3990d86462436b2ac01df6baf"></a><!-- doxytag: member="Wt::WSvgImage::painter" ref="a674990e3990d86462436b2ac01df6baf" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classWt_1_1WPainter.html">WPainter</a>* Wt::WSvgImage::painter </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the painter that is currently painting on the device. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WSvgImage.html#ad0333d7b9933ced6929d1482f8320fb5" title="Initializes the device for painting.">init()</a> </dd></dl>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#ae1c75c6bc0e5a2d6322b176f6f13403c">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="a9716e255c443f13d4845799f2ddadf67"></a><!-- doxytag: member="Wt::WSvgImage::setChanged" ref="a9716e255c443f13d4845799f2ddadf67" args="(WFlags< ChangeFlag > flags)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WSvgImage::setChanged </td>
<td>(</td>
<td class="paramtype">WFlags< <a class="el" href="classWt_1_1WPaintDevice.html#a1a2feafa01212eba9ad6c7b484ad8da1">ChangeFlag</a> > </td>
<td class="paramname"><em>flags</em></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Indicates changes in painter state. </p>
<p>The <code>flags</code> argument is the logical OR of one or more change flags.</p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPaintDevice.html#a1a2feafa01212eba9ad6c7b484ad8da1" title="Enumeration to communicate painter state changes.">ChangeFlag</a> </dd></dl>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#ab3a4c9799e46ab66c0f6cb4182e9cb72">Wt::WPaintDevice</a>.</p>
</div>
</div>
<a class="anchor" id="aee03b670ef9fb624e4393a9ef55005d3"></a><!-- doxytag: member="Wt::WSvgImage::width" ref="aee03b670ef9fb624e4393a9ef55005d3" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classWt_1_1WLength.html">WLength</a> Wt::WSvgImage::width </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns the device width. </p>
<p>The device width, in pixels, establishes the width of the device coordinate system. </p>
<p>Implements <a class="el" href="classWt_1_1WPaintDevice.html#a9a0d38acb408d4520d0dd520c93d47e0">Wt::WPaintDevice</a>.</p>
</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Fri Mar 30 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by <a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>
|