Inheritance diagram for CP_Canvas:

Public Member Functions | |
Constructor / Destructor | |
| CP_Canvas () | |
| Constructor. | |
| CP_Canvas (OSGraphicsPort inGraphicsPort) | |
| CP_Canvas (const CP_Canvas &inCanvas) | |
| virtual | ~CP_Canvas () |
| Destructor. | |
Operators | |
| CP_Canvas & | operator= (const CP_Canvas &inCanvas) |
Constructor / Destructor | |
| CP_Canvas (CGContextRef inContextRef) | |
| Constructor. | |
Constructor / Destructor | |
| CP_Canvas (GtkWidget *inGtkWidget, GdkDrawable *inDrawable, GdkGC *inGraphicsContext) | |
| Constructor. | |
Protected Attributes | |
| OSGraphicsPort | fOSGraphicsPort |
| bool | fIsValid |
| CGContextRef | fContextRef |
| bool | fHasValidContextRef |
| bool | fOwnsContext |
| bool | fUsingQDCoords |
| CP_RGBColor | fForeColor |
| CP_RGBColor | fBackColor |
| HPEN | fPen |
| HPEN | fSavedPen |
| GtkWidget * | fDestWidget |
| GdkDrawable * | fGdkDrawable |
| CP_Font * | fFont |
Note: A CP_Canvas object does not maintain a permanent graphics port, and is only valid during the time that the underlying OS wants to draw some type of information.
|
|
Constructor.
|
|
|
Constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
Font object used with this canvas. This object is only created if the user wants to mofidy the canvas font. |
|
||||||||||||||||
|
Constructor. This version sets the port to wrap around a GtkWidget and its drawable / graphics context to allow drawing into the passed in GtkWidget.
|
|
|
Sets the foreground/stroke color for this port.
|
|
|
Sets the background/fill color for this port.
|
|
|
Returns the foreground color currently set in this canvas.
|
|
|
Returns the background color currently set in this canvas.
|
|
|
Returns a CP_Font object that provides access to the font that is used in this canvas object.
|
|
|
Sets the current font settings from the passed in CP_FontSpec.
|
|
|
Returns the bit depth of this canvas.
|
|
|
Returns true if the canvas is capable of drawing in color.
|
|
|
Returns the platforms native graphics port
|
|
|
Sets the graphics port for this object to that of the passed in platforms graphics port.
|
|
|
Assignment operator.
|
|
|
Sets the size of the graphics pen for this canvas.
|
|
|
Sets the text transfer mode used to draw text.
|
|
|
Returns true if this canvas object currently holds a valid platforms graphics port to draw into.
|
|
|
Flag to indicate if have set the context ref for this object, and it is valid to draw into.
|
|
|
Flag to indicate if our content ref is currently using QuickDraw coordinates.
|
|
|
Sets the lag to indicate if our content ref is currently using QuickDraw coordinates.
|
|
|
Return a CoreGraphics port for our canvas object. NOTE: This only works under OSX.
|
|
|
Sets the context ref to the passed in one. If the passed in context ref is not NULL, the canvas object is marked as having a valid context ref.
|
|
|
Returns the GdkDrawable used to represent this canvas object.
|
|
|
The GtkWidget that this canvas object is drawing into.
|
|
|
|
|
|
A typedefed data member that corresponds to the native graphics port for the OS that CPLAT is running on. It is typedefed in CP_Types.h |
|
|
Flag to indicate if the canvas is currently valid for drawing into. |
|
|
MacOSX Quartz context ref for this port. |
|
|
Flag to indicate if the context ref is valid. |
|
|
This class created the context ref, and is responsible for its deletion. |
|
|
The context ref is using QuickDraw coordinates. |
|
|
Foreground color of objects. |
|
|
Background or fill color of objects. |
|
|
Windows HPEN used for drawing lines. |
|
|
Saved Windows HPEN to restore if we changed pens. |
|
|
The GtkView that is being drawn into. |
|
|
Background or fill color of objects. |
1.4.0