Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_StCGStateSaver Class Reference

Inheritance diagram for CP_StCGStateSaver:

CP_NoCopy List of all members.

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 & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_StCGStateSaver::CP_StCGStateSaver CGContextRef  inContextRef  ) 
 

Constructor.

Parameters:
inContextRef CGContextRef to save and restore the state for.
Exceptions:
none 

CP_StCGStateSaver::CP_StCGStateSaver CP_Canvas inDestCanvas  ) 
 

Constructor.

Parameters:
inDestCanvas CP_Canvas containing the CGContextRef to save and restore the state for.
Exceptions:
none 

CP_StCGStateSaver::~CP_StCGStateSaver  )  [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

void CP_StCGStateSaver::Save  ) 
 

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

Exceptions:
none 
Returns:
void

void CP_StCGStateSaver::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().

Exceptions:
none 
Returns:
void


Member Data Documentation

CGContextRef CP_StCGStateSaver::fContextRef [private]
 

CFBundleRef CP_StCGStateSaver::fAppServicesFrameworkBundle [private]
 

CGContextSaveGStateFuncPtr CP_StCGStateSaver::fSaveGStateFP [private]
 

CGContextRestoreGStateFuncPtr CP_StCGStateSaver::fRestoreGStateFP [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:22:11 2005 for CPLAT_MacOS by  doxygen 1.4.0