#include <Canvas.h>
Inheritance diagram for Canvas
Public Methods | |
Construction / Destruction | |
Canvas () | |
Construct a new canvas. More... | |
virtual | ~Canvas () |
Destroy the canvas. More... | |
Output management | |
virtual void | beginDraw (WinLockInitType initMode) = 0 |
Switch drawing window to the window into which the application shall paint. More... | |
virtual void | endDraw (RectangleType *bounds) = 0 |
Notify the canvas of the end of user paint operations. More... | |
virtual void | show () = 0 |
Display user painted graphics. More... | |
Physical Display management | |
Coord | getWidth () const |
Get the width of the display. More... | |
Coord | getHeight () const |
Get the height of the display. More... | |
Static Public Methods | |
Utility operations | |
void | uniteBounds (RectangleType *rect1Bound, RectangleType *rect2Bound, RectangleType *resultBound) |
Determine a rectangle that encompasses two other rectangles. More... | |
Static Public Attributes | |
const UInt32 | GRAY_1BPP = 0x00000001 |
1bpp b/w. More... | |
const UInt32 | GRAY_2BPP = 0x00000002 |
2bpp grayscale. More... | |
const UInt32 | GRAY_4BPP = 0x00000008 |
4bpp grayscale. More... | |
const UInt32 | COLOR_4BPP = 0x80000008 |
4bpp color. Use the special 4bpp color commands from PilRC 2.6 or higher to generate the required bitmap resources. More... | |
const UInt32 | COLOR_8BPP = 0x80000080 |
8bpp color. More... | |
const UInt32 | COLOR_16BPP = 0x80008000 |
16bpp color. Use the special HandSpring resource compiler to generate the required bitmap resources. More... | |
Protected Attributes | |
RectangleType | displayBounds |
Coord | width |
Coord | height |
UInt32 | selectedDepth |
Boolean | colorMode |
Definition at line 33 of file Canvas.h.
|
Construct a new canvas.
Definition at line 30 of file Canvas.cpp. |
|
Destroy the canvas.
Definition at line 127 of file Canvas.cpp. |
|
Switch drawing window to the window into which the application shall paint.
Reimplemented in DoubleBufferCanvas. |
|
Notify the canvas of the end of user paint operations.
Reimplemented in DoubleBufferCanvas. |
|
Get the height of the display.
|
|
Get the width of the display.
|
|
Display user painted graphics.
Reimplemented in DoubleBufferCanvas. |
|
Determine a rectangle that encompasses two other rectangles.
Definition at line 134 of file Canvas.cpp. Referenced by SpriteGroup::draw(), and DoubleBufferCanvas::endDraw(). |
|
16bpp color. Use the special HandSpring resource compiler to generate the required bitmap resources.
|
|
4bpp color. Use the special 4bpp color commands from PilRC 2.6 or higher to generate the required bitmap resources.
|
|
8bpp color.
|
|
1bpp b/w.
|
|
2bpp grayscale.
|
|
4bpp grayscale.
|
|
|
|
|
|
|
|
|
|
|