35 CGContext _graphicsPort;
54 + (void)saveGraphicsState
62 [CPGraphicsContextThreadStack addObject:CPGraphicsContextCurrent];
63 [CPGraphicsContextCurrent saveGraphicsState];
66 + (void)restoreGraphicsState
68 var lastContext = [CPGraphicsContextThreadStack lastObject];
71 [lastContext restoreGraphicsState];
72 [CPGraphicsContextThreadStack removeLastObject];
82 + (
CPGraphicsContext)graphicsContextWithGraphicsPort:(CGContext)aContext flipped:(BOOL)aFlag
92 - (id)initWithGraphicsPort:(CPContext)aGraphicsPort
97 _graphicsPort = aGraphicsPort;
105 - (CGContext)graphicsPort
107 return _graphicsPort;
123 - (void)saveGraphicsState
128 - (void)restoreGraphicsState