Source

cappuccino-docs / cappuccino docs / cappuccino.org / learn / documentation / class_c_p_bezier_path.html

Full commit
  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
<!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">

<!-- Mirrored from cappuccino.org/learn/documentation/class_c_p_bezier_path.html by HTTrack Website Copier/3.x [XR&CO'2006], Mon, 20 Sep 2010 02:16:48 GMT -->
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Cappuccino API: CPBezierPath Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>CPBezierPath Class Reference<br/>
<small>
[<a class="el" href="group__appkit.html">AppKit</a>]</small>
</h1><!-- doxytag: class="CPBezierPath" -->
<p><a href="class_c_p_bezier_path-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#ac9da553df4c549e4c5b94ed70633b8fb">appendBezierPath:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a92a1d29aec565ed5d48243b1fa80645c">appendBezierPathWithOvalInRect:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#ac5271c4c85dbd8308942f3675c2a4b38">appendBezierPathWithPoints:count:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a99d2d897eb88c3d6d328557e9e5a134b">appendBezierPathWithRect:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a622b850eb477f680b43e5ca2f1b46d4f">appendBezierPathWithRoundedRect:xRadius:yRadius:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#ae855c82120dd4daef15f7de7ff0f7084">closePath</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(CGPoint)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a4d7dd5ab1b883f88a9c06099eec123dd">currentPoint</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a7375bd6a9886693e88d99c7989ee5cf3">curveToPoint:controlPoint1:controlPoint2:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(unsigned)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a03e33e656120f9caf3e9d4e276de1d8b">elementCount</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a1c9d4a996ff39a705908843b8fad0503">fill</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(id)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#af50eb40c6e13399ebea6cbc90bd93450">init</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(BOOL)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a303c37483d578443bee855b01252e6ba">isEmpty</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a40fdfc6d639be0222d28f63ee14725eb">lineToPoint:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(float)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a605a32adb618d63ee863ea420b4bfe2a">lineWidth</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a0c0320038720477514c4787824983fc9">moveToPoint:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#af028a3cd2bc9fc41385957801eadcfe6">removeAllPoints</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#a5b2301a361d2ba4a792948a3c54f0e6e">setLineWidth:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_bezier_path.html#ae37555e9a38cb32b55056066bd6291ab">stroke</a><code> [implementation]</code></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a>)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_bezier_path.html#aecb74a81fdfb53d36e9aa68703a65d72">bezierPath</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a>)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_bezier_path.html#a2bd613985d2c2188b4f157ba22f6fd31">bezierPathWithOvalInRect:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a>)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_bezier_path.html#a44f47e4212d23f0ff7d5fb2268c302ea">bezierPathWithRect:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(float)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_bezier_path.html#a4ed05942cda089efb32a6f0b774d2b89">defaultLineWidth</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_bezier_path.html#a29e28074cce43a1560365e4aca61356d">fillRect:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_bezier_path.html#a1434c4b62714d36903c580f96fbe86ea">setDefaultLineWidth:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_bezier_path.html#a3d969f44b28acb1ead0768bca8c728e5">strokeLineFromPoint:toPoint:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_bezier_path.html#a5064ec5d689da31a316ba0534827d339">strokeRect:</a><code> [implementation]</code></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>A <a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a> allows you to create paths for drawing to the screen using a simpler API than CoreGraphics. Paths can form any shape, including regular polgyons like squares and triangles; circles, arcs; or complex line segments.</p>
<p>A path can be stroked and filled using the relevant method. The currently active fill and stroke color will be used, which can be set by calling setFill: and setStroke: on any <a class="el" href="class_c_p_color.html">CPColor</a> object (or set: for both). </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00047">47</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac9da553df4c549e4c5b94ed70633b8fb"></a><!-- doxytag: member="CPBezierPath::appendBezierPath:" ref="ac9da553df4c549e4c5b94ed70633b8fb" args="(NSBezierPath *other)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) appendBezierPath: </td>
          <td></td>
          <td class="paramtype">(NSBezierPath *)&nbsp;</td>
          <td class="paramname"> <em>other</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Append the contents of a <a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a> object. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00279">279</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a92a1d29aec565ed5d48243b1fa80645c"></a><!-- doxytag: member="CPBezierPath::appendBezierPathWithOvalInRect:" ref="a92a1d29aec565ed5d48243b1fa80645c" args="(CGRect rect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) appendBezierPathWithOvalInRect: </td>
          <td></td>
          <td class="paramtype">(CGRect)&nbsp;</td>
          <td class="paramname"> <em>rect</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Append an oval path; oval is drawn within the rectangular path. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00263">263</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="ac5271c4c85dbd8308942f3675c2a4b38"></a><!-- doxytag: member="CPBezierPath::appendBezierPathWithPoints:count:" ref="ac5271c4c85dbd8308942f3675c2a4b38" args="(CPArray points,[count] unsigned count)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) appendBezierPathWithPoints: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
          <td class="paramname"> <em>points</em></td>
        </tr>
        <tr>
          <td class="paramkey">count:</td>
          <td></td>
          <td class="paramtype">(unsigned)&nbsp;</td>
          <td class="paramname"> <em>count</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Append a series of line segments. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00247">247</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a99d2d897eb88c3d6d328557e9e5a134b"></a><!-- doxytag: member="CPBezierPath::appendBezierPathWithRect:" ref="a99d2d897eb88c3d6d328557e9e5a134b" args="(CGRect rect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) appendBezierPathWithRect: </td>
          <td></td>
          <td class="paramtype">(CGRect)&nbsp;</td>
          <td class="paramname"> <em>rect</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Append a rectangular path. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00255">255</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a622b850eb477f680b43e5ca2f1b46d4f"></a><!-- doxytag: member="CPBezierPath::appendBezierPathWithRoundedRect:xRadius:yRadius:" ref="a622b850eb477f680b43e5ca2f1b46d4f" args="(CGRect rect,[xRadius] float xRadius,[yRadius] float yRadius)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) appendBezierPathWithRoundedRect: </td>
          <td></td>
          <td class="paramtype">(CGRect)&nbsp;</td>
          <td class="paramname"> <em>rect</em></td>
        </tr>
        <tr>
          <td class="paramkey">xRadius:</td>
          <td></td>
          <td class="paramtype">(float)&nbsp;</td>
          <td class="paramname"> <em>xRadius</em></td>
        </tr>
        <tr>
          <td class="paramkey">yRadius:</td>
          <td></td>
          <td class="paramtype">(float)&nbsp;</td>
          <td class="paramname"> <em>yRadius</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Append a rounded rectangular path. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00271">271</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="aecb74a81fdfb53d36e9aa68703a65d72"></a><!-- doxytag: member="CPBezierPath::bezierPath" ref="aecb74a81fdfb53d36e9aa68703a65d72" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a>) bezierPath </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new <a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a> object. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00056">56</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a2bd613985d2c2188b4f157ba22f6fd31"></a><!-- doxytag: member="CPBezierPath::bezierPathWithOvalInRect:" ref="a2bd613985d2c2188b4f157ba22f6fd31" args="(CGRect rect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a>) bezierPathWithOvalInRect: </td>
          <td></td>
          <td class="paramtype">(CGRect)&nbsp;</td>
          <td class="paramname"> <em>rect</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new <a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a> object initialized with an oval path drawn within a rectangular path. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00064">64</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a44f47e4212d23f0ff7d5fb2268c302ea"></a><!-- doxytag: member="CPBezierPath::bezierPathWithRect:" ref="a44f47e4212d23f0ff7d5fb2268c302ea" args="(CGRect rect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (<a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a>) bezierPathWithRect: </td>
          <td></td>
          <td class="paramtype">(CGRect)&nbsp;</td>
          <td class="paramname"> <em>rect</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new <a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a> object initialized with a rectangular path. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00076">76</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="ae855c82120dd4daef15f7de7ff0f7084"></a><!-- doxytag: member="CPBezierPath::closePath" ref="ae855c82120dd4daef15f7de7ff0f7084" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) closePath </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a line segment between the first and last points in the subpath, closing it. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00171">171</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a4d7dd5ab1b883f88a9c06099eec123dd"></a><!-- doxytag: member="CPBezierPath::currentPoint" ref="a4d7dd5ab1b883f88a9c06099eec123dd" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (CGPoint) currentPoint </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the current point. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00239">239</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a7375bd6a9886693e88d99c7989ee5cf3"></a><!-- doxytag: member="CPBezierPath::curveToPoint:controlPoint1:controlPoint2:" ref="a7375bd6a9886693e88d99c7989ee5cf3" args="(CGPoint endPoint,[controlPoint1] CGPoint controlPoint1,[controlPoint2] CGPoint controlPoint2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) curveToPoint: </td>
          <td></td>
          <td class="paramtype">(CGPoint)&nbsp;</td>
          <td class="paramname"> <em>endPoint</em></td>
        </tr>
        <tr>
          <td class="paramkey">controlPoint1:</td>
          <td></td>
          <td class="paramtype">(CGPoint)&nbsp;</td>
          <td class="paramname"> <em>controlPoint1</em></td>
        </tr>
        <tr>
          <td class="paramkey">controlPoint2:</td>
          <td></td>
          <td class="paramtype">(CGPoint)&nbsp;</td>
          <td class="paramname"> <em>controlPoint2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Add a cubic Bezier curve to the path. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00163">163</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a4ed05942cda089efb32a6f0b774d2b89"></a><!-- doxytag: member="CPBezierPath::defaultLineWidth" ref="a4ed05942cda089efb32a6f0b774d2b89" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (float) defaultLineWidth </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get default line width. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00088">88</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a03e33e656120f9caf3e9d4e276de1d8b"></a><!-- doxytag: member="CPBezierPath::elementCount" ref="a03e33e656120f9caf3e9d4e276de1d8b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (unsigned) elementCount </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the total number of elements. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00223">223</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a1c9d4a996ff39a705908843b8fad0503"></a><!-- doxytag: member="CPBezierPath::fill" ref="a1c9d4a996ff39a705908843b8fad0503" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) fill </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fill the path with the current fill color. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00193">193</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a29e28074cce43a1560365e4aca61356d"></a><!-- doxytag: member="CPBezierPath::fillRect:" ref="a29e28074cce43a1560365e4aca61356d" args="(CGRect aRect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) fillRect: </td>
          <td></td>
          <td class="paramtype">(CGRect)&nbsp;</td>
          <td class="paramname"> <em>aRect</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fill rectangular path with current fill color. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00104">104</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="af50eb40c6e13399ebea6cbc90bd93450"></a><!-- doxytag: member="CPBezierPath::init" ref="af50eb40c6e13399ebea6cbc90bd93450" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (id) init </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create a new <a class="el" href="class_c_p_bezier_path.html">CPBezierPath</a> object using the default line width. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00133">133</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a303c37483d578443bee855b01252e6ba"></a><!-- doxytag: member="CPBezierPath::isEmpty" ref="a303c37483d578443bee855b01252e6ba" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) isEmpty </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Check if receiver is empty, returns appropriate Boolean value. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00231">231</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a40fdfc6d639be0222d28f63ee14725eb"></a><!-- doxytag: member="CPBezierPath::lineToPoint:" ref="a40fdfc6d639be0222d28f63ee14725eb" args="(CGPoint point)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) lineToPoint: </td>
          <td></td>
          <td class="paramtype">(CGPoint)&nbsp;</td>
          <td class="paramname"> <em>point</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Append a straight line to the path. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00155">155</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a605a32adb618d63ee863ea420b4bfe2a"></a><!-- doxytag: member="CPBezierPath::lineWidth" ref="a605a32adb618d63ee863ea420b4bfe2a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (float) lineWidth </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the line width. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00207">207</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a0c0320038720477514c4787824983fc9"></a><!-- doxytag: member="CPBezierPath::moveToPoint:" ref="a0c0320038720477514c4787824983fc9" args="(CGPoint point)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) moveToPoint: </td>
          <td></td>
          <td class="paramtype">(CGPoint)&nbsp;</td>
          <td class="paramname"> <em>point</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Moves the current point to another location. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00147">147</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="af028a3cd2bc9fc41385957801eadcfe6"></a><!-- doxytag: member="CPBezierPath::removeAllPoints" ref="af028a3cd2bc9fc41385957801eadcfe6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) removeAllPoints </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Remove all path elements; clears path. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00286">286</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a1434c4b62714d36903c580f96fbe86ea"></a><!-- doxytag: member="CPBezierPath::setDefaultLineWidth:" ref="a1434c4b62714d36903c580f96fbe86ea" args="(float width)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) setDefaultLineWidth: </td>
          <td></td>
          <td class="paramtype">(float)&nbsp;</td>
          <td class="paramname"> <em>width</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set default line width. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00096">96</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a5b2301a361d2ba4a792948a3c54f0e6e"></a><!-- doxytag: member="CPBezierPath::setLineWidth:" ref="a5b2301a361d2ba4a792948a3c54f0e6e" args="(float lineWidth)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) setLineWidth: </td>
          <td></td>
          <td class="paramtype">(float)&nbsp;</td>
          <td class="paramname"> <em>lineWidth</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the line width. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00215">215</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="ae37555e9a38cb32b55056066bd6291ab"></a><!-- doxytag: member="CPBezierPath::stroke" ref="ae37555e9a38cb32b55056066bd6291ab" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) stroke </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Draw a line along the path with the current stroke color and default drawing attributes. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00179">179</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a3d969f44b28acb1ead0768bca8c728e5"></a><!-- doxytag: member="CPBezierPath::strokeLineFromPoint:toPoint:" ref="a3d969f44b28acb1ead0768bca8c728e5" args="(CGPoint point1,[toPoint] CGPoint point2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) strokeLineFromPoint: </td>
          <td></td>
          <td class="paramtype">(CGPoint)&nbsp;</td>
          <td class="paramname"> <em>point1</em></td>
        </tr>
        <tr>
          <td class="paramkey">toPoint:</td>
          <td></td>
          <td class="paramtype">(CGPoint)&nbsp;</td>
          <td class="paramname"> <em>point2</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Using the current stroke color and default drawing attributes, strokes a line between two points. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00120">120</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<a class="anchor" id="a5064ec5d689da31a316ba0534827d339"></a><!-- doxytag: member="CPBezierPath::strokeRect:" ref="a5064ec5d689da31a316ba0534827d339" args="(CGRect aRect)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) strokeRect: </td>
          <td></td>
          <td class="paramtype">(CGRect)&nbsp;</td>
          <td class="paramname"> <em>aRect</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Using the current stroke color and default drawing attributes, strokes a counterclockwise path beginning at the rectangle's origin. </p>

<p>Definition at line <a class="el" href="_c_p_bezier_path_8j_source.html#l00112">112</a> of file <a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>AppKit/<a class="el" href="_c_p_bezier_path_8j_source.html">CPBezierPath.j</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Apr 6 10:33:05 2010 for Cappuccino API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>

<!-- Mirrored from cappuccino.org/learn/documentation/class_c_p_bezier_path.html by HTTrack Website Copier/3.x [XR&CO'2006], Mon, 20 Sep 2010 02:16:49 GMT -->
</html>