![]() |
API 0.9.5
|
#import <CPGraphicsContext.h>
Instance Methods | |
(CGContext) | - graphicsPort |
(id) | - initWithGraphicsPort: |
Class Methods | |
(CPGraphicsContext) | + currentContext |
(CPGraphicsContext) | + graphicsContextWithGraphicsPort:flipped: |
(void) | + setCurrentContext: |
Provides an interface for drawing to the screen.
Definition at line 2 of file CPGraphicsContext.h.
+ (CPGraphicsContext) currentContext |
Returns the current graphics context.
Definition at line 40 of file CPGraphicsContext.j.
+ (CPGraphicsContext) graphicsContextWithGraphicsPort: | (CGContext) | aContext | |
flipped: | (BOOL) | aFlag | |
Creates a graphics context with a provided port.
aContext | the context to initialize with |
aFlag | whether the context should be flipped |
Definition at line 59 of file CPGraphicsContext.j.
- (CGContext) graphicsPort |
Returns the graphics context's port.
Definition at line 82 of file CPGraphicsContext.j.
- (id) initWithGraphicsPort: | (CPContext) | aGraphicsPort |
Initializes the context with a graphics port.
aGraphicsPort | the graphics port to initialize with |
Definition at line 69 of file CPGraphicsContext.j.
+ (void) setCurrentContext: | (CPGraphicsContext) | aGraphicsContext |
Sets the current graphics context
Definition at line 48 of file CPGraphicsContext.j.