35 CGContext _graphicsPort;
54 + (void)saveGraphicsState
62 [CPGraphicsContextThreadStack addObject:CPGraphicsContextCurrent];
63 [CPGraphicsContextCurrent saveGraphicsState];
66 + (void)restoreGraphicsState
68 var lastContext = [CPGraphicsContextThreadStack lastObject];
72 [lastContext restoreGraphicsState];
73 [CPGraphicsContextThreadStack removeLastObject];
83 + (
CPGraphicsContext)graphicsContextWithGraphicsPort:(CGContext)aContext flipped:(BOOL)aFlag
93 - (id)initWithGraphicsPort:(CPContext)aGraphicsPort
98 _graphicsPort = aGraphicsPort;
106 - (CGContext)graphicsPort
108 return _graphicsPort;
124 - (void)saveGraphicsState
129 - (void)restoreGraphicsState
function CGContextRestoreGState(aContext)
var CPGraphicsContextCurrent
id initWithGraphicsPort:(CPContext aGraphicsPort)
var CPGraphicsContextThreadStack
function CGContextSaveGState(aContext)