|
Public Types |
enum | CoordSystem { COORDS_STANDARD = 1,
COORDS_NATIVE = 2
} |
Public Member Functions |
|
| Canvas (Coord width, Coord height, CoordSystem coordSystem) SEC_RAZOR_INIT |
| Construct a new Canvas.
|
virtual | ~Canvas () SEC_RAZOR_INIT |
| Destroy the Canvas.
|
|
virtual void | setCoordSystem (CoordSystem coordSystem) SEC_RAZOR_INIT |
|
const BitmapArray * | prepareTransparentBitmaps (UInt16 numBitmaps, DmResID bitmapID, DmResID maskID) const SEC_RAZOR_INIT |
const BitmapArray * | prepareTransparentBitmap (DmResID bitmapID, DmResID maskID) const SEC_RAZOR_INIT |
const BitmapArray * | prepareSolidBitmaps (UInt16 numBitmaps, DmResID bitmapID) const SEC_RAZOR_INIT |
const BitmapArray * | prepareSolidBitmap (DmResID bitmapID) const SEC_RAZOR_INIT |
void | drawBitmap (UInt16 index, const BitmapArray *bitmapArray, Coord x, Coord y) const SEC_RAZOR |
| Draw the indexth bitmap from an array of bitmaps.
|
void | drawBitmap (const BitmapArray *bitmapArray, Coord x, Coord y) const SEC_RAZOR |
| Draw the first bitmap (index=0) from an array of bitmaps.
|
void | drawText (Color textColor, Color bgColor, FontID font, const Char *chars, Int16 len, Coord x, Coord y) const SEC_RAZOR |
| Draw a text string.
|
void | fillRectangle (Color color, Coord topX, Coord topY, Coord bottomX, Coord bottomY) const SEC_RAZOR |
void | drawPolygon (const xy *e, int edgeCount, const Color color) const SEC_RAZOR |
|
SaveBufferArray * | prepareSaveBuffers (UInt16 numBuffers, Coord width, Coord height) const SEC_RAZOR_INIT |
void | saveBitmap (UInt16 index, SaveBufferArray *bufferArray, Coord x, Coord y) const SEC_RAZOR |
void | restoreBitmap (UInt16 index, SaveBufferArray *bufferArray) const SEC_RAZOR |
|
virtual void | setOSCanvas () const=0 |
| Use this Canvas as the default canvas for OS drawing operations.
|
virtual Boolean | setForegroundColor (const Color color) const=0 |
| Make the underlying OS use the color as foreground color.
|
virtual Boolean | setBackgroundColor (const Color color) const=0 |
| Make the underlying OS use the color as background color.
|
Public Attributes |
Coord | width |
Coord | height |
Coord | rows |
Coord | cols |
Int8 | shiftFactor |
CoordSystem | coordSystem |
WinHandle | drawWindow |
| The handle to the Canvas' window.
|
BitmapType * | _drawBitmap |
| The pointer to the Canvas' bitmap.
|
void * | drawBits |
| The pointer to the Canvas' bitmap bits.
|
UInt16 | rowBytes |
| The number of bytes in a row of the Canvas.
|
Protected Attributes |
Blitter * | blitter |
| Blitter that can be used to draw to the Canvas.
|