API  1.0.0
CPGraphicsContext Class Reference

#import <CPGraphicsContext.h>

+ Inheritance diagram for CPGraphicsContext:

Instance Methods

(CGContext) - graphicsPort
 
(id) - initWithGraphicsPort:
 
(BOOL) - isFlipped
 
- Instance Methods inherited from CPObject
(void) - addObserver:forKeyPath:options:context:
 
(void) - applyChange:toKeyPath:
 
(id) - autorelease
 
(id) - awakeAfterUsingCoder:
 
(void) - awakeFromCib
 
(void) - bind:toObject:withKeyPath:options:
 
(Class) - classForCoder
 
(Class) - classForKeyedArchiver
 
(CPString- className
 
(id) - copy
 
(void) - dealloc
 
(CPString- description
 
(CPDictionary- dictionaryWithValuesForKeys:
 
(void) - didChange:valuesAtIndexes:forKey:
 
(void) - didChangeValueForKey:
 
(void) - didChangeValueForKey:withSetMutation:usingObjects:
 
(void) - doesNotRecognizeSelector:
 
(CPArray) - exposedBindings
 
(id) - forwardingTargetForSelector:
 
(void) - forwardInvocation:
 
(unsigned) - hash
 
(BOOL) - implementsSelector:
 
(CPDictionary- infoForBinding:
 
(id) - init
 
(BOOL) - isEqual:
 
(BOOL) - isKindOfClass:
 
(BOOL) - isMemberOfClass:
 
(BOOL) - isProxy
 
(IMP) - methodForSelector:
 
(CPMethodSignature) - methodSignatureForSelector:
 
(id) - mutableArrayValueForKey:
 
(id) - mutableArrayValueForKeyPath:
 
(id) - mutableCopy
 
(id) - mutableSetValueForKey:
 
(id) - mutableSetValueForKeyPath:
 
(id) - performSelector:
 
(id) - performSelector:withObject:
 
(void) - performSelector:withObject:afterDelay:
 
(void) - performSelector:withObject:afterDelay:inModes:
 
(id) - performSelector:withObject:withObject:
 
(id) - performSelector:withObjects:
 
(void) - release
 
(void) - removeObserver:forKeyPath:
 
(id) - replacementObjectForArchiver:
 
(id) - replacementObjectForCoder:
 
(id) - replacementObjectForKeyedArchiver:
 
(BOOL) - respondsToSelector:
 
(id) - retain
 
(id) - self
 
(void) - setValue:forKey:
 
(void) - setValue:forKeyPath:
 
(void) - setValue:forUndefinedKey:
 
(void) - setValuesForKeysWithDictionary:
 
(CPString- UID
 
(void) - unbind:
 
(Class) - valueClassForBinding:
 
(id) - valueForKey:
 
(id) - valueForKeyPath:
 
(id) - valueForUndefinedKey:
 
(void) - willChange:valuesAtIndexes:forKey:
 
(void) - willChangeValueForKey:
 
(void) - willChangeValueForKey:withSetMutation:usingObjects:
 

Class Methods

(CPGraphicsContext+ currentContext
 
(CPGraphicsContext+ graphicsContextWithGraphicsPort:flipped:
 
(void) + restoreGraphicsState
 
(void) + saveGraphicsState
 
(void) + setCurrentContext:
 
- Class Methods inherited from CPObject
(BOOL) + accessInstanceVariablesDirectly
 
(id) + alloc
 
(id) + allocWithCoder:
 
(BOOL) + automaticallyNotifiesObserversForKey:
 
(void) + cancelPreviousPerformRequestsWithTarget:
 
(void) + cancelPreviousPerformRequestsWithTarget:selector:object:
 
(Class) + class
 
(BOOL) + conformsToProtocol:
 
(void) + exposeBinding:
 
(void) + initialize
 
(IMP) + instanceMethodForSelector:
 
(BOOL) + instancesImplementSelector:
 
(BOOL) + instancesRespondToSelector:
 
(BOOL) + isBindingExclusive:
 
(BOOL) + isSubclassOfClass:
 
(CPSet) + keyPathsForValuesAffectingValueForKey:
 
(void) + load
 
(id) + new
 
(void) + object:performSelector:withObject:afterDelay:inModes:
 
(void) + setVersion:
 
(Class) + superclass
 
(int) + version
 

Detailed Description

Provides an interface for drawing to the screen.

Definition at line 2 of file CPGraphicsContext.h.

Method Documentation

◆ currentContext()

+ (CPGraphicsContext) currentContext
implementation

Returns the current graphics context.

Definition at line 41 of file CPGraphicsContext.j.

◆ graphicsContextWithGraphicsPort:flipped:()

+ (CPGraphicsContext) graphicsContextWithGraphicsPort: (CGContext)  aContext
flipped: (BOOL)  aFlag 
implementation

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 83 of file CPGraphicsContext.j.

◆ graphicsPort()

- (CGContext) graphicsPort
implementation

Returns the graphics context's port.

Definition at line 106 of file CPGraphicsContext.j.

◆ initWithGraphicsPort:()

- (id) initWithGraphicsPort: (CPContext)  aGraphicsPort
implementation

Initializes the context with a graphics port.

Parameters
aGraphicsPortthe graphics port to initialize with
Returns
the initialized context

Definition at line 93 of file CPGraphicsContext.j.

◆ isFlipped()

- (BOOL) isFlipped
implementation

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

◆ restoreGraphicsState()

+ (void) restoreGraphicsState
implementation

Definition at line 66 of file CPGraphicsContext.j.

◆ saveGraphicsState()

+ (void) saveGraphicsState
implementation

Definition at line 54 of file CPGraphicsContext.j.

◆ setCurrentContext:()

+ (void) setCurrentContext: (CPGraphicsContext aGraphicsContext
implementation

Sets the current graphics context

Definition at line 49 of file CPGraphicsContext.j.


The documentation for this class was generated from the following files: