Inheritance diagram for CP_StCGStateSaver:
Public Member Functions | |
Constructor / Destructor | |
CP_StCGStateSaver (CGContextRef inContextRef) | |
Constructor. | |
CP_StCGStateSaver (CP_Canvas &inDestCanvas) | |
virtual | ~CP_StCGStateSaver () |
Destructor. | |
Save / Restore | |
void | Save () |
void | Restore () |
Private Attributes | |
CGContextRef | fContextRef |
CFBundleRef | fAppServicesFrameworkBundle |
CGContextSaveGStateFuncPtr | fSaveGStateFP |
CGContextRestoreGStateFuncPtr | fRestoreGStateFP |
|
Constructor.
|
|
Constructor.
|
|
Destructor.
|
|
Saves the current state of the CGContextRef we are managing the state for. This is called by the constructor and restored by the destructor. If you call at other times, you need to ensure that you match calls to Save() with a matching call to Restore().
|
|
Restores a previously saved state. This will be called by the destructor for you to save the context ref state to the state when this object was constructed. You should only call this if you have made another call to Save().
|
|
|
|
|
|
|
|
|