File: classWt_1_1WPainterPath.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (946 lines) | stat: -rw-r--r-- 49,268 bytes parent folder | download
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
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
<!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: Wt::WPainterPath Class Reference</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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WPainterPath Class Reference<br>
<small>
[<a class="el" href="group__painting.html">Painting system</a>]</small>
</h1><!-- doxytag: class="Wt::WPainterPath" -->A path defining a shape.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WPainterPath&gt;</code>
<p>

<p>
<a href="classWt_1_1WPainterPath-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#ce0add71a1ebc8b45a821aa8d70d3e3f">WPainterPath</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Default constructor.  <a href="#ce0add71a1ebc8b45a821aa8d70d3e3f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#364b46c7a45bcb18e235ec0b41268a15">WPainterPath</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;startPoint)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct a new path, and set the initial position.  <a href="#364b46c7a45bcb18e235ec0b41268a15"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="bea96512cd12bc8630f81b2ed91deb80"></a><!-- doxytag: member="Wt::WPainterPath::WPainterPath" ref="bea96512cd12bc8630f81b2ed91deb80" args="(const WPainterPath &amp;path)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#bea96512cd12bc8630f81b2ed91deb80">WPainterPath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Copy constructor. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b9efa54a1626d775bc208bf3caef10db"></a><!-- doxytag: member="Wt::WPainterPath::operator=" ref="b9efa54a1626d775bc208bf3caef10db" args="(const WPainterPath &amp;path)" -->
<a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#b9efa54a1626d775bc208bf3caef10db">operator=</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Assignment operator. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WPointF.html">WPointF</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#7022e9937045d3da2b5e54a875b33003">currentPosition</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the current position.  <a href="#7022e9937045d3da2b5e54a875b33003"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#dffb5d532acabefc8f885da5d531907b">isEmpty</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether the path is empty.  <a href="#dffb5d532acabefc8f885da5d531907b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#52e236ff7c41d05e1b29b0dcb2b1059c">operator==</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#52e236ff7c41d05e1b29b0dcb2b1059c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#ccbaa725ccfc0291695b4f47b5b58923">operator!=</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Comparison operator.  <a href="#ccbaa725ccfc0291695b4f47b5b58923"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#9db15664f1cea3f12a2c7ab1337a343b">closeSubPath</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Closes the last sub path.  <a href="#9db15664f1cea3f12a2c7ab1337a343b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#9801a3988b2a57c412ba175142d2e3ff">moveTo</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;point)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Moves the current position to a new location.  <a href="#9801a3988b2a57c412ba175142d2e3ff"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#2cdd1952ade53cc4b2f2a0146fc8c00f">moveTo</a> (double x, double y)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Moves the current position to a new location.  <a href="#2cdd1952ade53cc4b2f2a0146fc8c00f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#c52bacd9bb3b07043e56be2af56f7f66">lineTo</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;point)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a straight line.  <a href="#c52bacd9bb3b07043e56be2af56f7f66"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#afdba97cf01c017fa9e8f18169c7a205">lineTo</a> (double x, double y)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a straight line.  <a href="#afdba97cf01c017fa9e8f18169c7a205"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#c5a13ec3faf642cd05a57988366e005f">cubicTo</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;c1, const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;c2, const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;endPoint)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a cubic bezier curve.  <a href="#c5a13ec3faf642cd05a57988366e005f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#d751c7f66795ecdbe1fc7098dc11977b">cubicTo</a> (double c1x, double c1y, double c2x, double c2y, double endPointx, double endPointy)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a cubic bezier curve.  <a href="#d751c7f66795ecdbe1fc7098dc11977b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#3b1188816772497c5ae7a627a77e1d09">arcTo</a> (double cx, double cy, double radius, double startAngle, double sweepLength)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws an arc.  <a href="#3b1188816772497c5ae7a627a77e1d09"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#6e4d29695685a08198be2c2dff53e49c">arcMoveTo</a> (double cx, double cy, double radius, double angle)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Moves to a point on an arc.  <a href="#6e4d29695685a08198be2c2dff53e49c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#366810aa107d35409f9fbd33b8e91dbb">arcMoveTo</a> (double x, double y, double width, double height, double angle)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Move to a point on an arc.  <a href="#366810aa107d35409f9fbd33b8e91dbb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#5cf7125271a74e15a52db05876b8c878">quadTo</a> (const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;c, const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;endPoint)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a quadratic bezier curve.  <a href="#5cf7125271a74e15a52db05876b8c878"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#2eaf3d30b6cf1590a3f368b8b94d49ca">quadTo</a> (double cx, double cy, double endPointx, double endPointy)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a quadratic bezier curve.  <a href="#2eaf3d30b6cf1590a3f368b8b94d49ca"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#e8783aad1c538e0180b2323a3a926999">addEllipse</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;boundingRectangle)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws an ellipse.  <a href="#e8783aad1c538e0180b2323a3a926999"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#3dadfaa8235becb01221431d1f1a97d6">addEllipse</a> (double x, double y, double width, double height)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws an ellipse.  <a href="#3dadfaa8235becb01221431d1f1a97d6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#52f1c2008c15cd133e8fb405d8b0466b">addRect</a> (const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;rectangle)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a rectangle.  <a href="#52f1c2008c15cd133e8fb405d8b0466b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#b5b658698acf7a87948e7c0adf6c1151">addRect</a> (double x, double y, double width, double height)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Draws a rectangle.  <a href="#b5b658698acf7a87948e7c0adf6c1151"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#8f2e9933f699b967fe5776c98080a410">addPath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a path.  <a href="#8f2e9933f699b967fe5776c98080a410"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#7a5d7f8d62eda600ab05926c8f8014be">connectPath</a> (const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;path)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a path, connecting.  <a href="#7a5d7f8d62eda600ab05926c8f8014be"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WRectF.html">WRectF</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WPainterPath.html#2662ae29dce3cafd3a44cded9ef3112f">controlPointRect</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the bounding box of the control points.  <a href="#2662ae29dce3cafd3a44cded9ef3112f"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A path defining a shape. 
<p>
A painter path represents a (complex) path that may be composed of lines, arcs and bezier curve segments, and painted onto a paint device using <a class="el" href="classWt_1_1WPainter.html#2ef57868d6fbf99a901cbe1f29723b50" title="Draws a (complex) path.">WPainter::drawPath()</a>.<p>
The path that is composed in a painter path may consist of multiple closed sub-paths. Only the last sub-path can be left open.<p>
To compose a path, this class maintains a current position, which is the starting point for the next drawing operation. An operation may draw a line (see <a class="el" href="classWt_1_1WPainterPath.html#c52bacd9bb3b07043e56be2af56f7f66" title="Draws a straight line.">lineTo()</a>), arc (see <a class="el" href="classWt_1_1WPainterPath.html#3b1188816772497c5ae7a627a77e1d09" title="Draws an arc.">arcTo()</a>), or bezier curve (see <a class="el" href="classWt_1_1WPainterPath.html#5cf7125271a74e15a52db05876b8c878" title="Draws a quadratic bezier curve.">quadTo()</a> and <a class="el" href="classWt_1_1WPainterPath.html#c5a13ec3faf642cd05a57988366e005f" title="Draws a cubic bezier curve.">cubicTo()</a>) from the current position to a new position. A new sub path may be started by moving the current position to a new location (see <a class="el" href="classWt_1_1WPainterPath.html#9801a3988b2a57c412ba175142d2e3ff" title="Moves the current position to a new location.">moveTo()</a>), which automatically closes the previous sub path.<p>
When sub paths overlap, the result is undefined (it is dependent on the underlying painting device).<p>
Usage example:<p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WPainter.html" title="Helper class for painting on a WPaintDevice.">Wt::WPainter</a> painter(...);

 <a class="code" href="classWt_1_1WPainterPath.html" title="A path defining a shape.">Wt::WPainterPath</a> path(<a class="code" href="classWt_1_1WPointF.html" title="Utility class that defines a 2D point.">Wt::WPointF</a>(10, 10));
 path.lineTo(10, 20);
 path.lineTo(30, 20);
 path.closeSubPath();

 painter.setPen(<a class="code" href="group__style.html#gg9686ea88ce4db2c0a12ea84452f6013357462cb05392ee7e39d27e5f66252c42" title="Color red.">Wt::red</a>);
 painter.setBrush(<a class="code" href="group__style.html#gg9686ea88ce4db2c0a12ea84452f601330cb88ce2189a8986f24a4409498e490e" title="Color blue.">Wt::blue</a>);
 painter.drawPath(path);
</pre></div><p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainter.html#2ef57868d6fbf99a901cbe1f29723b50" title="Draws a (complex) path.">WPainter::drawPath()</a> </dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="ce0add71a1ebc8b45a821aa8d70d3e3f"></a><!-- doxytag: member="Wt::WPainterPath::WPainterPath" ref="ce0add71a1ebc8b45a821aa8d70d3e3f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WPainterPath::WPainterPath           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Default constructor. 
<p>
Creates an empty path, and sets the current position to (0, 0). 
</div>
</div><p>
<a class="anchor" name="364b46c7a45bcb18e235ec0b41268a15"></a><!-- doxytag: member="Wt::WPainterPath::WPainterPath" ref="364b46c7a45bcb18e235ec0b41268a15" args="(const WPointF &amp;startPoint)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WPainterPath::WPainterPath           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>startPoint</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct a new path, and set the initial position. 
<p>
Creates an empty path, and sets the current position to <code>startPoint</code>. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7022e9937045d3da2b5e54a875b33003"></a><!-- doxytag: member="Wt::WPainterPath::currentPosition" ref="7022e9937045d3da2b5e54a875b33003" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WPointF.html">WPointF</a> Wt::WPainterPath::currentPosition           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the current position. 
<p>
Returns the current position, which is the end point of the last move or draw operation, and which well be the start point of the next draw operation. 
</div>
</div><p>
<a class="anchor" name="dffb5d532acabefc8f885da5d531907b"></a><!-- doxytag: member="Wt::WPainterPath::isEmpty" ref="dffb5d532acabefc8f885da5d531907b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WPainterPath::isEmpty           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns whether the path is empty. 
<p>
Returns <code>true</code> if the path contains no drawing operations. 
</div>
</div><p>
<a class="anchor" name="52e236ff7c41d05e1b29b0dcb2b1059c"></a><!-- doxytag: member="Wt::WPainterPath::operator==" ref="52e236ff7c41d05e1b29b0dcb2b1059c" args="(const WPainterPath &amp;path) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WPainterPath::operator==           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<p>
Returns <code>true</code> if the paths are exactly the same. 
</div>
</div><p>
<a class="anchor" name="ccbaa725ccfc0291695b4f47b5b58923"></a><!-- doxytag: member="Wt::WPainterPath::operator!=" ref="ccbaa725ccfc0291695b4f47b5b58923" args="(const WPainterPath &amp;path) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WPainterPath::operator!=           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Comparison operator. 
<p>
Returns <code>true</code> if the paths are different. 
</div>
</div><p>
<a class="anchor" name="9db15664f1cea3f12a2c7ab1337a343b"></a><!-- doxytag: member="Wt::WPainterPath::closeSubPath" ref="9db15664f1cea3f12a2c7ab1337a343b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::closeSubPath           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Closes the last sub path. 
<p>
Draws a line from the current position to the start position of the last sub path (which is the end point of the last move operation), and sets the current position to (0, 0). 
</div>
</div><p>
<a class="anchor" name="9801a3988b2a57c412ba175142d2e3ff"></a><!-- doxytag: member="Wt::WPainterPath::moveTo" ref="9801a3988b2a57c412ba175142d2e3ff" args="(const WPointF &amp;point)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::moveTo           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>point</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Moves the current position to a new location. 
<p>
Moves the current position to a new point, implicitly closing the last sub path.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#9db15664f1cea3f12a2c7ab1337a343b" title="Closes the last sub path.">closeSubPath()</a>, <a class="el" href="classWt_1_1WPainterPath.html#2cdd1952ade53cc4b2f2a0146fc8c00f" title="Moves the current position to a new location.">moveTo(double, double)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="2cdd1952ade53cc4b2f2a0146fc8c00f"></a><!-- doxytag: member="Wt::WPainterPath::moveTo" ref="2cdd1952ade53cc4b2f2a0146fc8c00f" args="(double x, double y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::moveTo           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Moves the current position to a new location. 
<p>
Moves the current position to a new point, implicitly closing the last sub path.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#9db15664f1cea3f12a2c7ab1337a343b" title="Closes the last sub path.">closeSubPath()</a>, <a class="el" href="classWt_1_1WPainterPath.html#2cdd1952ade53cc4b2f2a0146fc8c00f" title="Moves the current position to a new location.">moveTo(double, double)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="c52bacd9bb3b07043e56be2af56f7f66"></a><!-- doxytag: member="Wt::WPainterPath::lineTo" ref="c52bacd9bb3b07043e56be2af56f7f66" args="(const WPointF &amp;point)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::lineTo           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>point</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a straight line. 
<p>
Draws a straight line from the current position to <code>point</code>, which becomes the new current position.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#afdba97cf01c017fa9e8f18169c7a205" title="Draws a straight line.">lineTo(double, double)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="afdba97cf01c017fa9e8f18169c7a205"></a><!-- doxytag: member="Wt::WPainterPath::lineTo" ref="afdba97cf01c017fa9e8f18169c7a205" args="(double x, double y)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::lineTo           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a straight line. 
<p>
Draws a straight line from the current position to (<code>x</code>, <code>y</code>), which becomes the new current position.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#c52bacd9bb3b07043e56be2af56f7f66" title="Draws a straight line.">lineTo(const WPointF&amp;)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="c5a13ec3faf642cd05a57988366e005f"></a><!-- doxytag: member="Wt::WPainterPath::cubicTo" ref="c5a13ec3faf642cd05a57988366e005f" args="(const WPointF &amp;c1, const WPointF &amp;c2, const WPointF &amp;endPoint)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::cubicTo           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>endPoint</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a cubic bezier curve. 
<p>
Draws a cubic bezier curve from the current position to <code>endPoint</code>, which becomes the new current position. The bezier curve uses the two control points <em>c1</em> and <code>c2</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#d751c7f66795ecdbe1fc7098dc11977b" title="Draws a cubic bezier curve.">cubicTo(double c1x, double c1y, double c2x, double c2y, double endPointx, double endPointy)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="d751c7f66795ecdbe1fc7098dc11977b"></a><!-- doxytag: member="Wt::WPainterPath::cubicTo" ref="d751c7f66795ecdbe1fc7098dc11977b" args="(double c1x, double c1y, double c2x, double c2y, double endPointx, double endPointy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::cubicTo           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>c1x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>c1y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>c2x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>c2y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>endPointx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>endPointy</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a cubic bezier curve. 
<p>
This is an overloaded method provided for convenience.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#c5a13ec3faf642cd05a57988366e005f" title="Draws a cubic bezier curve.">cubicTo(const WPointF&amp;, const WPointF&amp;, const WPointF&amp;)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="3b1188816772497c5ae7a627a77e1d09"></a><!-- doxytag: member="Wt::WPainterPath::arcTo" ref="3b1188816772497c5ae7a627a77e1d09" args="(double cx, double cy, double radius, double startAngle, double sweepLength)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::arcTo           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>cy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>startAngle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>sweepLength</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws an arc. 
<p>
Draws an arc which is a segment of a circle. The circle is defined with center (<em>cx</em>, <em>cy</em>) and <code>radius</code>. The segment starts at <code>startAngle</code>, and spans an angle given by <code>spanAngle</code>. These angles are expressed in degrees, and are measured counter-clockwise starting from the 3 o'clock position.<p>
Implicitly draws a line from the current position to the start of the arc, if the current position is different from the start.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#6e4d29695685a08198be2c2dff53e49c" title="Moves to a point on an arc.">arcMoveTo(double cx, double cy, double radius, double angle)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="6e4d29695685a08198be2c2dff53e49c"></a><!-- doxytag: member="Wt::WPainterPath::arcMoveTo" ref="6e4d29695685a08198be2c2dff53e49c" args="(double cx, double cy, double radius, double angle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::arcMoveTo           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>cy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>angle</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Moves to a point on an arc. 
<p>
Moves to a point on a circle. The circle is defined with center (<em>cx</em>, <em>cy</em>) and <code>radius</code>, and the point is at <code>angle</code> degrees measured counter-clockwise starting from the 3 o'clock position.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#3b1188816772497c5ae7a627a77e1d09" title="Draws an arc.">arcTo(double cx, double cy, double radius, double startAngle, double sweepLength)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="366810aa107d35409f9fbd33b8e91dbb"></a><!-- doxytag: member="Wt::WPainterPath::arcMoveTo" ref="366810aa107d35409f9fbd33b8e91dbb" args="(double x, double y, double width, double height, double angle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::arcMoveTo           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>height</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>angle</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Move to a point on an arc. 
<p>
Moves to a point on an ellipse. The ellipse fits in the rectangle defined by top left position (<code>x</code>, <em>y</em>), and size <em>width</em> x <code>height</code>, and the point is at <code>angle</code> degrees measured counter-clockwise starting from the 3 o'clock position.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#3b1188816772497c5ae7a627a77e1d09" title="Draws an arc.">arcTo()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="5cf7125271a74e15a52db05876b8c878"></a><!-- doxytag: member="Wt::WPainterPath::quadTo" ref="5cf7125271a74e15a52db05876b8c878" args="(const WPointF &amp;c, const WPointF &amp;endPoint)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::quadTo           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPointF.html">WPointF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>endPoint</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a quadratic bezier curve. 
<p>
Draws a quadratic bezier curve from the current position to <code>endPoint</code>, which becomes the new current position. The bezier curve uses the single control point <code>c</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#2eaf3d30b6cf1590a3f368b8b94d49ca" title="Draws a quadratic bezier curve.">quadTo(double cx, double cy, double endPointx, double endPointy)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="2eaf3d30b6cf1590a3f368b8b94d49ca"></a><!-- doxytag: member="Wt::WPainterPath::quadTo" ref="2eaf3d30b6cf1590a3f368b8b94d49ca" args="(double cx, double cy, double endPointx, double endPointy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::quadTo           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>cx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>cy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>endPointx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>endPointy</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a quadratic bezier curve. 
<p>
This is an overloaded method provided for convenience.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#5cf7125271a74e15a52db05876b8c878" title="Draws a quadratic bezier curve.">quadTo(const WPointF&amp;, const WPointF&amp;)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="e8783aad1c538e0180b2323a3a926999"></a><!-- doxytag: member="Wt::WPainterPath::addEllipse" ref="e8783aad1c538e0180b2323a3a926999" args="(const WRectF &amp;boundingRectangle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::addEllipse           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>boundingRectangle</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws an ellipse. 
<p>
This method closes the current sub path, and adds an ellipse that is bounded by the rectangle <code>boundingRectangle</code>.<p>
<code>Note:</code> some renderers only support circles (width == height)<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#3dadfaa8235becb01221431d1f1a97d6" title="Draws an ellipse.">addEllipse(double x, double y, double width, double height)</a>, <a class="el" href="classWt_1_1WPainterPath.html#3b1188816772497c5ae7a627a77e1d09" title="Draws an arc.">arcTo()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="3dadfaa8235becb01221431d1f1a97d6"></a><!-- doxytag: member="Wt::WPainterPath::addEllipse" ref="3dadfaa8235becb01221431d1f1a97d6" args="(double x, double y, double width, double height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::addEllipse           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>height</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws an ellipse. 
<p>
This method closes the current sub path, and adds an ellipse that is bounded by the rectangle defined by top left position (<code>x</code>, <em>y</em>), and size <em>width</em> x <code>height</code>.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>Some renderers only support circles (width == height)</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#e8783aad1c538e0180b2323a3a926999" title="Draws an ellipse.">addEllipse(const WRectF&amp;)</a>, <a class="el" href="classWt_1_1WPainterPath.html#3b1188816772497c5ae7a627a77e1d09" title="Draws an arc.">arcTo()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="52f1c2008c15cd133e8fb405d8b0466b"></a><!-- doxytag: member="Wt::WPainterPath::addRect" ref="52f1c2008c15cd133e8fb405d8b0466b" args="(const WRectF &amp;rectangle)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::addRect           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WRectF.html">WRectF</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>rectangle</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a rectangle. 
<p>
This method closes the current sub path, and adds a rectangle that is defined by <code>rectangle</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#b5b658698acf7a87948e7c0adf6c1151" title="Draws a rectangle.">addRect(double x, double y, double width, double height)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="b5b658698acf7a87948e7c0adf6c1151"></a><!-- doxytag: member="Wt::WPainterPath::addRect" ref="b5b658698acf7a87948e7c0adf6c1151" args="(double x, double y, double width, double height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::addRect           </td>
          <td>(</td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&nbsp;</td>
          <td class="paramname"> <em>height</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Draws a rectangle. 
<p>
This method closes the current sub path, and adds a rectangle that is defined by top left position (<em>x</em>, <code>y</code>), and size <em>width</em> x <code>height</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#52f1c2008c15cd133e8fb405d8b0466b" title="Draws a rectangle.">addRect(const WRectF&amp;)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="8f2e9933f699b967fe5776c98080a410"></a><!-- doxytag: member="Wt::WPainterPath::addPath" ref="8f2e9933f699b967fe5776c98080a410" args="(const WPainterPath &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::addPath           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a path. 
<p>
Adds an entire <code>path</code> to the current path. If the path's begin position is different from the current position, the last sub path is first closed, otherwise the last sub path is extended with the path's first sub path.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#7a5d7f8d62eda600ab05926c8f8014be" title="Adds a path, connecting.">connectPath(const WPainterPath&amp;)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="7a5d7f8d62eda600ab05926c8f8014be"></a><!-- doxytag: member="Wt::WPainterPath::connectPath" ref="7a5d7f8d62eda600ab05926c8f8014be" args="(const WPainterPath &amp;path)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WPainterPath::connectPath           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WPainterPath.html">WPainterPath</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>path</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds a path, connecting. 
<p>
Adds an entire <code>path</code> to the current path. If the path's begin position is different from the current position, the last sub path is first closed, otherwise the last sub path is extended with the path's first sub path.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WPainterPath.html#7a5d7f8d62eda600ab05926c8f8014be" title="Adds a path, connecting.">connectPath(const WPainterPath&amp;)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="2662ae29dce3cafd3a44cded9ef3112f"></a><!-- doxytag: member="Wt::WPainterPath::controlPointRect" ref="2662ae29dce3cafd3a44cded9ef3112f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WRectF.html">WRectF</a> Wt::WPainterPath::controlPointRect           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the bounding box of the control points. 
<p>
Returns the bounding box of all control points. This is guaranteed to be a superset of the actual bounding box. 
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&nbsp;<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>