API 0.9.5
CPGraphicsContext Class Reference

#import <CPGraphicsContext.h>

Inheritance diagram for CPGraphicsContext:

List of all members.

Instance Methods

(CGContext) - graphicsPort
(id) - initWithGraphicsPort:

Class Methods

(CPGraphicsContext+ currentContext
(CPGraphicsContext+ graphicsContextWithGraphicsPort:flipped:
(void) + setCurrentContext:

Detailed Description

Provides an interface for drawing to the screen.

Definition at line 2 of file CPGraphicsContext.h.


Method Documentation

+ (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.

Parameters:
aContextthe context to initialize with
aFlagwhether the context should be flipped
Returns:
the initialized graphics context

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.

Parameters:
aGraphicsPortthe graphics port to initialize with
Returns:
the initialized context

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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Defines