
Main Page |
Namespaces |
Classes |
Compounds |
Files |
Compound Members |
Related
GUIToolkit::MCanvas Class ReferenceDouble-buffered canvas.
More...
#include <Canvas.h>
Inheritance diagram for GUIToolkit::MCanvas:
List of all members.
|
Public Methods |
|
| MCanvas () |
| | Constructor.
|
|
| ~MCanvas () |
| | Destructor.
|
|
void | PutInWinForm (WinForm *WF, int x0, int y0, int x1, int y1) |
| | Place canvas on windform.
|
| void | HandleEvents (event e) |
|
HWND | getHWND () |
| | Returns Window-handle.
|
|
void | draw () |
| | Copies the off-screen buffer to the on screen buffer.
|
|
void | doDraw () |
| | Asks windows to refresh the window.
|
|
void | clear () |
| | Clears off-screen buffer.
|
|
int | getWidth () |
|
int | getHeight () |
|
void | putPixel (int x, int y, int r, int g, int b) |
| | Putpixel.
|
|
void | setColor (int r, int g, int b) |
| | setColor (it will clean up GDI objects for you)
|
|
void | setColor (COLORREF c) |
| | setColor (it will clean up GDI objects for you)
|
|
void | deleteColor () |
| | Normally, no need to call this. Used by Setcolor.
|
|
void | setBrush (int r, int g, int b) |
| | setBrush
|
|
void | setBrush (COLORREF c) |
| | setBrush
|
|
void | deleteBrush () |
| | Normally, no need to call this. Used by setBrush.
|
|
void | print (int x, int y, std::string s) |
| | Displays string.
|
|
void | line (int x, int y, int x2, int y2) |
| | Line.
|
|
void | circle (int x, int y, int radius) |
| | Circle. (x,y) is center, not upper left corner.
|
|
void | rectangle (int x, int y, int x2, int y2) |
| | Rectangle.
|
|
void | setBGColor (int r, int g, int b) |
| | Sets background color (for text).
|
|
void | setBGColor (COLORREF c) |
| | Set background color (for text).
|
|
void | setTextColor (int r, int g, int b) |
| | Set text color.
|
|
void | setTextColor (COLORREF c) |
| | Set text color.
|
Detailed Description
Double-buffered canvas.
Definition at line 24 of file Canvas.h.
Member Function Documentation
| void GUIToolkit::MCanvas::HandleEvents |
( |
event |
e |
) |
[virtual] |
|
The documentation for this class was generated from the following files:
Syntopia Project. Visit the web page,
or the SourceForge page.
Docs made by Doxygen.
Email: Mikael Christensen
|