CPObjectCPGraphicsContext
@implementation CPGraphicsContext : CPObject
Provides an interface for drawing to the screen.
Method Summary | |
---|---|
+(CPGraphicsContext) | currentContext Returns the current graphics context. |
+(CPGraphicsContext) | graphicsContextWithGraphicsPort:(CGContext)aContext flipped:(BOOL)aFlag Creates a graphics context with a provided port. |
+(void) | setCurrentContext:(CPGraphicsContext)aGraphicsContext Sets the current graphics context. |
-(id) | initWithGraphicsPort:(CPContext)aGraphicsPort Initializes the context with a graphics port. |
-(CGContext) | graphicsPort Returns the graphics context's port. |
Method Detail |
---|
+(CPGraphicsContext)currentContext
+(CPGraphicsContext)graphicsContextWithGraphicsPort:(CGContext)aContext flipped:(BOOL)aFlag
aContext
- the context to initialize withaFlag
- whether the context should be flipped+(void)setCurrentContext:(CPGraphicsContext)aGraphicsContext
aGraphicsContext
-(id)initWithGraphicsPort:(CPContext)aGraphicsPort
aGraphicsPort
- the graphics port to initialize with-(CGContext)graphicsPort
Created on Sat Sep 13 14:15:43 PDT 2008