Public Member Functions | |
Constructor / Destructor | |
| CP_HPEN () | |
| Constructor. | |
| CP_HPEN (HPEN inHPEN) | |
| CP_HPEN (const CP_HPEN &inHPEN) | |
| virtual | ~CP_HPEN () throw () |
| Destructor. | |
Canvas | |
| void | UseInCanvas (CP_Canvas &inCanvas) |
| void | ResetCanvas () |
| void | SetCanvas (CP_Canvas &inCanvas) |
Getters | |
| HPEN | GetHPEN () |
| UInt16 | Size () |
| CP_RGBColor | GetColor () const |
operators | |
| CP_HPEN & | operator= (const CP_HPEN &inHPEN) |
Save / Restore | |
| void | Save () |
| void | Restore () |
Setters | |
| void | SetSize (const USHORT inSize) |
| void | SetColor (const CP_RGBColor &inColor) |
Protected Member Functions | |
Misc | |
| void | UpdatePen () |
Protected Attributes | |
| CP_Canvas | fCanvas |
| HPEN | fHPEN |
| CP_RGBColor | fColor |
| UInt16 | fSize |
| SInt16 | fPenStyle |
| HPEN | fSavedPen |
| SInt16 | fSavedDCInstance |
|
|
Constructor.
|
|
|
Constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Sets the canvas object to use this pen with. This will also update the Windows HPEN for use in the passed in canvas.
|
|
|
Releases the pen from the CP_Canvas object.
|
|
|
Sets the canvas that this pen is used with.
|
|
|
Returns the Windows HPEN associated with this class.
|
|
|
Returns the stroke size that the pen draws in.
|
|
|
Returns the color that the pen draws in.
|
|
|
Assignment operator. This will set the fields of this object to those of the passed in CP_HPEN object.
|
|
|
Saves the current state of this pen object
|
|
|
Restores the previously saved state of this object. Each call to Restore(), must be preceded by a call to Save().
|
|
|
|
|
|
Sets the stroke color of the pen.
|
|
|
Recreates the Windows HPEN object for use in the CP_Canvas object.
|
|
|
|
|
|
CP_Canvas object the pen is used in. |
|
|
The HPEN we manage. |
|
|
Color of our pen stroke (foreground) |
|
|
Size of the pen stroke. |
|
|
Style of the pens stroke. |
|
|
Saved HPEN, used when restoring. |
1.4.0