Inheritance diagram for CP_OffscreenCanvas:

Public Member Functions | |
Colors | |
| void | SetForeColor (const CP_RGBColor &inForeColor) |
| void | SetBackColor (const CP_RGBColor &inBackColor) |
| CP_RGBColor | GetForeColor () |
| CP_RGBColor | GetBackColor () |
Font | |
| CP_Font * | GetFont () |
| void | SetFontSpec (CP_FontSpec &inFontSpec) |
Getters | |
| SInt16 | GetBitDepth () |
| bool | IsColor () |
OSGraphicsPort | |
| OSGraphicsPort | GetOSPort () |
| void | SetOSPort (OSGraphicsPort inGraphicsPort) |
Setters | |
| void | SetPenSize (SInt16 inSize) |
| void | SetTextMode (SInt16 inMode) |
Testers | |
| bool | IsValid () const |
ContextRef | |
| virtual bool | HasValidContextRef () |
| bool | UsingQDCoords () |
| void | SetUsingQDCoords (bool inUsingQDCoords) |
| virtual CGContextRef | GetContextRef (bool inSyncOriginWithPort=true) |
| void | SetContextRef (CGContextRef inContextRef) |
Getters | |
| GdkDrawable * | GetDrawable () |
| GtkWidget * | GetGtkWidget () |
Constructor / Destructor | |
| CP_OffscreenCanvas (const CP_Rect &inBounds, CP_Canvas &inDestCanvas) | |
| Constructor. | |
| virtual | ~CP_OffscreenCanvas () throw () |
| Destructor. | |
Drawing | |
| bool | BeginDraw () |
| void | EndDraw () |
| void | CopyImage (CP_Canvas &inDestCanvas, const CP_Rect &inDestBounds) |
| void | CopyImage (OSGraphicsPort inDestPort, const CP_Rect &inDestBounds, SInt32 inTransferMode=CP_E_TransferMode_SrcCopy) |
| void | CopyImage (OSGraphicsPort inDestPort, const CP_Rect &inDestBounds, const CP_Region &inMaskRegion, SInt32 inTransferMode=CP_E_TransferMode_SrcCopy) |
| void | CopyImage (OSGraphicsPort inDestPort, const CP_Rect &inSrcBounds, const CP_Rect &inDestBounds, const CP_Region &inMaskRegion, SInt32 inTransferMode=CP_E_TransferMode_SrcCopy) |
| void | CopyImageWithBlend (OSGraphicsPort inDestPort, const CP_Rect &inSrcArea, const CP_Rect &inDestArea, const CP_Region &inMaskRegion, double inAlphaValue) |
| void | CopyImageWithBlend (CP_Canvas &inDestCanvas, const CP_Rect &inSrcArea, const CP_Rect &inDestArea, const CP_Region &inMaskRegion, double inAlphaValue) |
Getters | |
| CP_Bitmap * | GetBitmap () |
| CP_Rect | GetBounds () const |
Getters | |
| void | SetTransferMode (SInt32 inTransferMode) |
Constructor / Destructor | |
| CP_OffscreenCanvas (const CP_Rect &inBounds, SInt16 inPixelDepth, CP_Palette *inPalette=NULL, GDHandle inGDevice=NULL, GWorldFlags inFlags=0) | |
| Constructor. | |
GWorld | |
| GWorldPtr | GetGWorld () |
Setters | |
| void | SetCopyBitsColors (const CP_RGBColor &inForeColor, const CP_RGBColor &inBackColor) |
Colors | |
| void | SetForeColor (const CP_RGBColor &inForeColor) |
| void | SetBackColor (const CP_RGBColor &inBackColor) |
| CP_RGBColor | GetForeColor () |
| CP_RGBColor | GetBackColor () |
Font | |
| CP_Font * | GetFont () |
| void | SetFontSpec (CP_FontSpec &inFontSpec) |
Getters | |
| SInt16 | GetBitDepth () |
| bool | IsColor () |
OSGraphicsPort | |
| OSGraphicsPort | GetOSPort () |
| void | SetOSPort (OSGraphicsPort inGraphicsPort) |
Setters | |
| void | SetPenSize (SInt16 inSize) |
| void | SetTextMode (SInt16 inMode) |
Testers | |
| bool | IsValid () const |
ContextRef | |
| virtual bool | HasValidContextRef () |
| bool | UsingQDCoords () |
| void | SetUsingQDCoords (bool inUsingQDCoords) |
| virtual CGContextRef | GetContextRef (bool inSyncOriginWithPort=true) |
| void | SetContextRef (CGContextRef inContextRef) |
Getters | |
| GdkDrawable * | GetDrawable () |
| GtkWidget * | GetGtkWidget () |
Protected Member Functions | |
GWorld | |
| void | CreateGWorld (SInt16 inPixelDepth, const CP_Rect &inBounds, CTabHandle inColorTable, GDHandle inGDevice, GWorldFlags inFlags) |
Cleanup | |
| void | Cleanup () |
Cleanup | |
| void | Cleanup () |
Cleanup | |
| void | Cleanup () |
Protected Attributes | |
| CP_Rect | fBounds |
| SInt32 | fTransferMode |
| GWorldPtr | fGWorld |
| CGrafPtr | fSavePort |
| GDHandle | fSaveDevice |
| CP_RGBColor | fCopyBitsForeColor |
| CP_RGBColor | fCopyBitsBackColor |
| CP_Bitmap * | fCanvasBitmap |
| OSGraphicsPort | fOffscreenPort |
| HBITMAP | fOffscreenBitmap |
| HBITMAP | fPreviousBitmap |
| 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 |
Private Member Functions | |
Misc | |
| void | PrepCopyBits () |
|
||||||||||||
|
Constructor. |
|
|
Destructor. |
|
||||||||||||||||||||||||
|
Constructor. |
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
Copy our offscreen image into the passed in inDestPort. This version will blend the source and destination images.
|
|
||||||||||||||||||||||||
|
Copy our offscreen image into the passed in inDestPort. This version will blend the source and destination images.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||||||
|
|
|
|
|
|
|
Sets up the fore / background colors used to draw the image. |
|
|
|
|
|
|
|
|
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.
|
|
|
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