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

CP_StColorStateSaver Class Reference

CP_TextState. More...

Inheritance diagram for CP_StColorStateSaver:

CP_NoCopy List of all members.

Public Member Functions

 CP_StColorStateSaver ()
 CP_StColorStateSaver (CP_Canvas &inCanvas)
 ~CP_StColorStateSaver ()
void Save ()
void Restore ()
void Default ()

Private Attributes

CP_Canvas fCanvas
RGBColor fSavedForeColor
RGBColor fSavedBackColor
COLORREF fSavedBackColor
GdkGCValues fSavedGCValues

Detailed Description

class to save and restore the color state of the port in a CP_Canvas object.
See also:
CP_Canvas.


Constructor & Destructor Documentation

CPLAT_Begin_Namespace_CPLAT CP_StColorStateSaver::CP_StColorStateSaver  ) 
 

Constructor. This will also save the current color state of the passed in canvas object.

Parameters:
inCanvas - the CP_Canvas we are saving color information about.
See also:
CP_Canvas.

CP_StColorStateSaver::CP_StColorStateSaver CP_Canvas inCanvas  ) 
 

Constructor. This will also save the current color state of the passed in canvas object.

Parameters:
inCanvas - the CP_Canvas we are saving color information about.
See also:
CP_Canvas.

CP_StColorStateSaver::~CP_StColorStateSaver  ) 
 

Destructor. This will restore the saved information.


Member Function Documentation

void CP_StColorStateSaver::Save  ) 
 

Save the current colors unsed in the canvas object.

void CP_StColorStateSaver::Restore  ) 
 

Restore the previously saved colors in the canvas object.

void CP_StColorStateSaver::Default  ) 
 

Sets the colors to the default black and white in a canvas port.


Member Data Documentation

CP_Canvas CP_StColorStateSaver::fCanvas [private]
 

RGBColor CP_StColorStateSaver::fSavedForeColor [private]
 

Canvas object we are saving information in.

RGBColor CP_StColorStateSaver::fSavedBackColor [private]
 

Saved MacOS foreground color.

COLORREF CP_StColorStateSaver::fSavedBackColor [private]
 

Saved MacOS background color.

GdkGCValues CP_StColorStateSaver::fSavedGCValues [private]
 

Saved Windows background color.


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:02:16 2005 for CPLAT by  doxygen 1.4.0