AppKit/CoreGraphics/CGContext.j File Reference

#include "CGGeometry.h"
#include "CGAffineTransform.h"
#include "CGContextCanvas.j"
#include "CGContextVML.j"

Go to the source code of this file.

Functions

function CGContextRelease ()
function CGContextRetain (aContext)
 if (!CPFeatureIsCompatible(CPHTMLCanvasFeature))
function CGContextEOFillPath (aContext)
function CGContextFillPath (aContext)
function CGContextAddEllipseInRect (aContext, aRect)
function CGContextFillEllipseInRect (aContext, aRect)
function CGContextStrokeEllipseInRect (aContext, aRect)
function CGContextStrokePath (aContext)
function CGContextStrokeLineSegments (aContext, points, count)
function CGContextSetFillColor (aContext, aColor)
function CGContextSetStrokeColor (aContext, aColor)
function CGContextFillRoundedRectangleInRect (aContext, aRect, aRadius, ne, se, sw, nw)
 if (CPFeatureIsCompatible(CPHTMLCanvasFeature))
else if (CPFeatureIsCompatible(CPVMLFeature))

Variables

import CGGeometry j import
CGAffineTransform j import
CGPath j 
kCGLineCapButt = 0
 kCGLineCapRound = 1
 kCGLineCapSquare = 2
 kCGLineJoinMiter = 0
 kCGLineJoinRound = 1
 kCGLineJoinBevel = 2
 kCGPathFill = 0
 kCGPathEOFill = 1
 kCGPathStroke = 2
 kCGPathFillStroke = 3
 kCGPathEOFillStroke = 4
 kCGBlendModeNormal = 0
 kCGBlendModeMultiply = 1
 kCGBlendModeScreen = 2
 kCGBlendModeOverlay = 3
 kCGBlendModeDarken = 4
 kCGBlendModeLighten = 5
 kCGBlendModeColorDodge = 6
 kCGBlendModeColorBurn = 7
 kCGBlendModeSoftLight = 8
 kCGBlendModeHardLight = 9
 kCGBlendModeDifference = 10
 kCGBlendModeExclusion = 11
 kCGBlendModeHue = 12
 kCGBlendModeSaturation = 13
 kCGBlendModeColor = 14
 kCGBlendModeLuminosity = 15
 kCGBlendModeClear = 16
 kCGBlendModeCopy = 17
 kCGBlendModeSourceIn = 18
 kCGBlendModeSourceOut = 19
 kCGBlendModeSourceAtop = 20
 kCGBlendModeDestinationOver = 21
 kCGBlendModeDestinationIn = 22
 kCGBlendModeDestinationOut = 23
 kCGBlendModeDestinationAtop = 24
 kCGBlendModeXOR = 25
 kCGBlendModePlusDarker = 26
 kCGBlendModePlusLighter = 27
var KAPPA = 4.0 * ((SQRT2 - 1.0) / 3.0)


Function Documentation

function CGContextAddEllipseInRect ( aContext  ,
aRect   
)

Draws the outline of an ellipse bounded by a rectangle.

Parameters:
aContext CGContext to draw on
aRect the rectangle bounding the ellipse
Returns:
void CGContext

Definition at line 460 of file CGContext.j.

function CGContextEOFillPath ( aContext   ) 

Fills in the area of the current path, using the even-odd fill rule.

Parameters:
aContext the CGContext of the path
Returns:
void CGContext

Definition at line 435 of file CGContext.j.

function CGContextFillEllipseInRect ( aContext  ,
aRect   
)

Fills an ellipse bounded by a rectangle.

Parameters:
aContext CGContext to draw on
aRect the rectangle bounding the ellipse
Returns:
void CGContext

Definition at line 489 of file CGContext.j.

function CGContextFillPath ( aContext   ) 

Fills in the area of the current path, using the non-zero winding number rule.

Parameters:
aContext the CGContext of the path
Returns:
void CGContext

Definition at line 446 of file CGContext.j.

function CGContextFillRoundedRectangleInRect ( aContext  ,
aRect  ,
aRadius  ,
ne  ,
se  ,
sw  ,
nw   
)

Fills a rounded rectangle.

Parameters:
aContext the CGContext to draw into
aRect the base rectangle
aRadius the distance from the rectange corner to the rounded corner
ne set it to YES for a rounded northeast corner
se set it to YES for a rounded southeast corner
sw set it to YES for a rounded southwest corner
nw set it to YES for a rounded northwest corner
Returns:
void CGContext

Definition at line 590 of file CGContext.j.

function CGContextRelease (  ) 

This function is just here for source compatability. It does nothing. CGContext

Definition at line 190 of file CGContext.j.

function CGContextRetain ( aContext   ) 

This function is just here for source compatability. It does nothing.

Parameters:
aContext a CGContext
Returns:
CGContext the context

Definition at line 200 of file CGContext.j.

function CGContextSetFillColor ( aContext  ,
aColor   
)

Sets the current fill color.

Parameters:
aContext the CGContext
aColor the new color for the fill
Returns:
void CGContext

Definition at line 559 of file CGContext.j.

function CGContextSetStrokeColor ( aContext  ,
aColor   
)

Sets the current stroke color.

Parameters:
aContext the CGContext
aColor the new color for the stroke
Returns:
void CGContext

Definition at line 572 of file CGContext.j.

function CGContextStrokeEllipseInRect ( aContext  ,
aRect   
)

Strokes an ellipse bounded by the specified rectangle.

Parameters:
aContext CGContext to draw on
aRect the rectangle bounding the ellipse
Returns:
void CGContext

Definition at line 502 of file CGContext.j.

function CGContextStrokeLineSegments ( aContext  ,
points  ,
count   
)

Strokes multiple line segments.

Parameters:
aContext CGContext to draw on
points an array with an even number of points. The first point is the beginning of the first line segment, the second is the end of the first line segment. The third point is the beginning of second line segment, etc.
count the number of points in the array
Returns:
void CGContext

Definition at line 530 of file CGContext.j.

function CGContextStrokePath ( aContext   ) 

Paints a line in the current path of the current context.

Parameters:
aContext CGContext to draw on
Returns:
void CGContext

Definition at line 514 of file CGContext.j.

else if ( CPFeatureIsCompatible(CPVMLFeature  ) 

Definition at line 640 of file CGContext.j.

if ( CPFeatureIsCompatible(CPHTMLCanvasFeature  ) 

Definition at line 636 of file CGContext.j.

if ( CPFeatureIsCompatibleCPHTMLCanvasFeature  ) 

Definition at line 206 of file CGContext.j.


Variable Documentation

var KAPPA = 4.0 * ((SQRT2 - 1.0) / 3.0)

Definition at line 451 of file CGContext.j.

Definition at line 128 of file CGContext.j.

Definition at line 118 of file CGContext.j.

Definition at line 83 of file CGContext.j.

Definition at line 78 of file CGContext.j.

Definition at line 133 of file CGContext.j.

Definition at line 68 of file CGContext.j.

Definition at line 168 of file CGContext.j.

Definition at line 158 of file CGContext.j.

Definition at line 163 of file CGContext.j.

Definition at line 153 of file CGContext.j.

Definition at line 98 of file CGContext.j.

Definition at line 103 of file CGContext.j.

Definition at line 93 of file CGContext.j.

Definition at line 108 of file CGContext.j.

Definition at line 73 of file CGContext.j.

Definition at line 123 of file CGContext.j.

Definition at line 53 of file CGContext.j.

Definition at line 48 of file CGContext.j.

Definition at line 63 of file CGContext.j.

Definition at line 178 of file CGContext.j.

Definition at line 183 of file CGContext.j.

Definition at line 113 of file CGContext.j.

Definition at line 58 of file CGContext.j.

Definition at line 88 of file CGContext.j.

Definition at line 148 of file CGContext.j.

Definition at line 138 of file CGContext.j.

Definition at line 143 of file CGContext.j.

Definition at line 173 of file CGContext.j.

import CGGeometry j import CGAffineTransform j import CGPath j kCGLineCapButt = 0

Definition at line 30 of file CGContext.j.

Definition at line 31 of file CGContext.j.

Definition at line 32 of file CGContext.j.

Definition at line 36 of file CGContext.j.

Definition at line 34 of file CGContext.j.

Definition at line 35 of file CGContext.j.

Definition at line 39 of file CGContext.j.

Definition at line 42 of file CGContext.j.

Definition at line 38 of file CGContext.j.

Definition at line 41 of file CGContext.j.

Definition at line 40 of file CGContext.j.


Generated on Thu Dec 11 01:55:47 2008 for Cappuccino by  doxygen 1.5.7.1