#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... | |
Protected Attributes | |
RectangleType | displayBounds |
Definition at line 34 of file Canvas.h.
|
Construct a new canvas.
|
|
Destroy the canvas.
|
|
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 114 of file Canvas.h. Referenced by SpriteGroup::draw(), and DoubleBufferCanvas::endDraw(). |
|
|