#import <CPGraphicsContext.h>
Provides an interface for drawing to the screen.
Definition at line 2 of file CPGraphicsContext.h.
+ (CPGraphicsContext) graphicsContextWithGraphicsPort: |
|
(CGContext) |
aContext |
flipped: |
|
(BOOL) |
aFlag |
|
|
| |
|
implementation |
Creates a graphics context with a provided port.
- Parameters
-
aContext | the context to initialize with |
aFlag | whether the context should be flipped |
- Returns
- the initialized graphics context
Definition at line 83 of file CPGraphicsContext.j.
- (CGContext) graphicsPort |
|
|
|
|
implementation |
- (id) initWithGraphicsPort: |
|
(CPContext) |
aGraphicsPort |
|
|
implementation |
Initializes the context with a graphics port.
- Parameters
-
aGraphicsPort | the graphics port to initialize with |
- Returns
- the initialized context
Definition at line 93 of file CPGraphicsContext.j.
(Not implemented. Always returns Cappuccino's default, YES
.)
Return isFlipped
of the receiver's focused view, unless no view is focused in which case the receiver's flipped
flag, as set by graphicsContextWithGraphicsPort:flipped:
, is returned.
Note: Cappuccino is flipped by default.
Definition at line 119 of file CPGraphicsContext.j.
+ (void) restoreGraphicsState |
|
|
|
|
implementation |
+ (void) saveGraphicsState |
|
|
|
|
implementation |
The documentation for this class was generated from the following files: