CPBezierPath Class Reference
[AppKit]

List of all members.

Public Member Functions

(id) - init [implementation]
(void) - moveToPoint: [implementation]
(void) - lineToPoint: [implementation]
(void) - curveToPoint:controlPoint1:controlPoint2: [implementation]
(void) - closePath [implementation]
(void) - stroke [implementation]
(void) - fill [implementation]
(float) - lineWidth [implementation]
(void) - setLineWidth: [implementation]
(unsigned) - elementCount [implementation]
(BOOL) - isEmpty [implementation]
(CGPoint) - currentPoint [implementation]
(void) - appendBezierPathWithPoints:count: [implementation]
(void) - appendBezierPathWithRect: [implementation]
(void) - appendBezierPathWithOvalInRect: [implementation]
(void) - appendBezierPathWithRoundedRect:xRadius:yRadius: [implementation]
(void) - appendBezierPath: [implementation]
(void) - removeAllPoints [implementation]

Static Public Member Functions

(CPBezierPath+ bezierPath [implementation]
(CPBezierPath+ bezierPathWithOvalInRect: [implementation]
(CPBezierPath+ bezierPathWithRect: [implementation]
(float) + defaultLineWidth [implementation]
(void) + setDefaultLineWidth: [implementation]
(void) + fillRect: [implementation]
(void) + strokeRect: [implementation]
(void) + strokeLineFromPoint:toPoint: [implementation]


Detailed Description

A CPBezierPath 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.

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 CPColor object (or set: for both).

Definition at line 47 of file CPBezierPath.j.


Member Function Documentation

- (void) appendBezierPath: (NSBezierPath *)  other   [implementation]

Definition at line 204 of file CPBezierPath.j.

- (void) appendBezierPathWithOvalInRect: (CGRect)  rect   [implementation]

Definition at line 194 of file CPBezierPath.j.

- (void) appendBezierPathWithPoints: (CPArray points
count: (unsigned)  count 
[implementation]

Definition at line 184 of file CPBezierPath.j.

- (void) appendBezierPathWithRect: (CGRect)  rect   [implementation]

Definition at line 189 of file CPBezierPath.j.

- (void) appendBezierPathWithRoundedRect: (CGRect)  rect
xRadius: (float)  xRadius
yRadius: (float)  yRadius 
[implementation]

Definition at line 199 of file CPBezierPath.j.

+ (CPBezierPath) bezierPath   [implementation]

Definition at line 53 of file CPBezierPath.j.

+ (CPBezierPath) bezierPathWithOvalInRect: (CGRect)  rect   [implementation]

Definition at line 58 of file CPBezierPath.j.

+ (CPBezierPath) bezierPathWithRect: (CGRect)  rect   [implementation]

Definition at line 67 of file CPBezierPath.j.

- (void) closePath   [implementation]

Definition at line 132 of file CPBezierPath.j.

- (CGPoint) currentPoint   [implementation]

Definition at line 179 of file CPBezierPath.j.

- (void) curveToPoint: (CGPoint)  endPoint
controlPoint1: (CGPoint)  controlPoint1
controlPoint2: (CGPoint)  controlPoint2 
[implementation]

Definition at line 127 of file CPBezierPath.j.

+ (float) defaultLineWidth   [implementation]

Definition at line 76 of file CPBezierPath.j.

- (unsigned) elementCount   [implementation]

Definition at line 169 of file CPBezierPath.j.

- (void) fill   [implementation]

Definition at line 148 of file CPBezierPath.j.

+ (void) fillRect: (CGRect)  rect   [implementation]

Definition at line 86 of file CPBezierPath.j.

- (id) init   [implementation]

Definition at line 106 of file CPBezierPath.j.

- (BOOL) isEmpty   [implementation]

Definition at line 174 of file CPBezierPath.j.

- (void) lineToPoint: (CGPoint)  point   [implementation]

Definition at line 122 of file CPBezierPath.j.

- (float) lineWidth   [implementation]

Definition at line 159 of file CPBezierPath.j.

- (void) moveToPoint: (CGPoint)  point   [implementation]

Definition at line 117 of file CPBezierPath.j.

- (void) removeAllPoints   [implementation]

Definition at line 209 of file CPBezierPath.j.

+ (void) setDefaultLineWidth: (float)  width   [implementation]

Definition at line 81 of file CPBezierPath.j.

- (void) setLineWidth: (float)  lineWidth   [implementation]

Definition at line 164 of file CPBezierPath.j.

- (void) stroke   [implementation]

Definition at line 137 of file CPBezierPath.j.

+ (void) strokeLineFromPoint: (CGPoint)  point1
toPoint: (CGPoint)  point2 
[implementation]

Definition at line 96 of file CPBezierPath.j.

+ (void) strokeRect: (CGRect)  rect   [implementation]

Definition at line 91 of file CPBezierPath.j.


The documentation for this class was generated from the following file:

Generated on Wed May 20 12:44:00 2009 for Cappuccino by  doxygen 1.5.8