![]() |
API
0.9.6
|
#import <CPBezierPath.h>
Inheritance diagram for CPBezierPath:Class Methods | |
| (CPBezierPath) | + bezierPath |
| (CPBezierPath) | + bezierPathWithOvalInRect: |
| (CPBezierPath) | + bezierPathWithRect: |
| (float) | + defaultLineWidth |
| (void) | + fillRect: |
| (void) | + setDefaultLineWidth: |
| (void) | + strokeLineFromPoint:toPoint: |
| (void) | + strokeRect: |
Class Methods inherited from CPObject | |
| (BOOL) | + accessInstanceVariablesDirectly |
| (id) | + alloc |
| (id) | + allocWithCoder: |
| (BOOL) | + automaticallyNotifiesObserversForKey: |
| (Class) | + class |
| (void) | + exposeBinding: |
| (void) | + initialize |
| (IMP) | + instanceMethodForSelector: |
| (BOOL) | + instancesRespondToSelector: |
| (BOOL) | + isSubclassOfClass: |
| (CPSet) | + keyPathsForValuesAffectingValueForKey: |
| (void) | + load |
| (id) | + new |
| (void) | + setVersion: |
| (Class) | + superclass |
| (int) | + version |
Additional Inherited Members | |
Instance Variables inherited from CPObject | |
| Class | isa |
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 polygons 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 2 of file CPBezierPath.h.
|
implementation |
Definition at line 307 of file CPBezierPath.j.
|
implementation |
Append the contents of a CPBezierPath object.
Definition at line 294 of file CPBezierPath.j.
|
implementation |
Definition at line 286 of file CPBezierPath.j.
|
implementation |
Append an oval path; oval is drawn within the rectangular path.
Definition at line 273 of file CPBezierPath.j.
|
implementation |
Append a series of line segments.
Definition at line 257 of file CPBezierPath.j.
|
implementation |
Append a rectangular path.
Definition at line 265 of file CPBezierPath.j.
|
implementation |
Append a rounded rectangular path.
Definition at line 281 of file CPBezierPath.j.
|
implementation |
Create a new CPBezierPath object.
Definition at line 54 of file CPBezierPath.j.
|
implementation |
Create a new CPBezierPath object initialized with an oval path drawn within a rectangular path.
Definition at line 62 of file CPBezierPath.j.
|
implementation |
Create a new CPBezierPath object initialized with a rectangular path.
Definition at line 74 of file CPBezierPath.j.
|
implementation |
Definition at line 166 of file CPBezierPath.j.
|
implementation |
Create a line segment between the first and last points in the subpath, closing it.
Definition at line 182 of file CPBezierPath.j.
|
implementation |
Definition at line 174 of file CPBezierPath.j.
|
implementation |
Get the current point.
Definition at line 249 of file CPBezierPath.j.
|
implementation |
Add a cubic Bezier curve to the path.
Definition at line 161 of file CPBezierPath.j.
|
implementation |
Get default line width.
Definition at line 86 of file CPBezierPath.j.
|
implementation |
Get the total number of elements.
Definition at line 233 of file CPBezierPath.j.
|
implementation |
Fill the path with the current fill color.
Definition at line 203 of file CPBezierPath.j.
|
implementation |
Fill rectangular path with current fill color.
Definition at line 102 of file CPBezierPath.j.
|
implementation |
Create a new CPBezierPath object using the default line width.
Reimplemented from CPObject.
Definition at line 131 of file CPBezierPath.j.
|
implementation |
Check if receiver is empty, returns appropriate Boolean value.
Definition at line 241 of file CPBezierPath.j.
|
implementation |
Append a straight line to the path.
Definition at line 153 of file CPBezierPath.j.
|
implementation |
Get the line width.
Definition at line 217 of file CPBezierPath.j.
|
implementation |
Moves the current point to another location.
Definition at line 145 of file CPBezierPath.j.
|
implementation |
Remove all path elements; clears path.
Definition at line 302 of file CPBezierPath.j.
|
implementation |
Definition at line 315 of file CPBezierPath.j.
|
implementation |
Set default line width.
Definition at line 94 of file CPBezierPath.j.
|
implementation |
Set the line width.
Definition at line 225 of file CPBezierPath.j.
|
implementation |
Draw a line along the path with the current stroke color and default drawing attributes.
Definition at line 190 of file CPBezierPath.j.
|
implementation |
Using the current stroke color and default drawing attributes, strokes a line between two points.
Definition at line 118 of file CPBezierPath.j.
|
implementation |
Using the current stroke color and default drawing attributes, strokes a counterclockwise path beginning at the rectangle's origin.
Definition at line 110 of file CPBezierPath.j.