#include <mgui/canvas.h>
Inheritance diagram for MGUI::CANVAS:

Public Types | |
| enum | DCTYPE { DCTYPE_Buffer, DCTYPE_Screen } |
| enum | STYLE { STYLE_Default = 0x00, STYLE_EnableOverlay = 0x01, STYLE_NoBuffer = 0x02 } |
Public Member Functions | |
| CANVAS (STYLE style=STYLE_Default) | |
| void | Create (LAYOUT_PANE_BASE &ParentPane, int width, int height, LAYOUT_SIZEALIGN sizealign, CANVAS::STYLE style=STYLE_Default) |
| MDLGPARENT | GetDlgParent () const |
| MGD::CONTEXT * | GetDrawingContext (DCTYPE dctype=DCTYPE_Buffer) |
| void | GetSize (INT16 &width, INT16 &height) |
| void | Invalidate (const LRECT2D &rect, bool UpdateNow=false) |
| void | Invalidate (bool UpdateNow=false) |
| bool | IsMouseCaptured () const |
| void | RedrawDelayed (int delay=1000) |
| void | SetCursor (CURSORID cursorid) |
| virtual | ~CANVAS () |
Private Member Functions | |
| virtual void | v_OnCaptureChanged () |
| virtual bool | v_OnKey (MGUI::POINT point, MGUI::KEYCODE keycode, MGUI::KEYSTATE keystate) |
| virtual void | v_OnLeftDown (MGUI::POINT point, KEYSTATE keystate) |
| virtual void | v_OnLeftUp (MGUI::POINT point, KEYSTATE keystate) |
| virtual void | v_OnMouseMove (MGUI::POINT point, KEYSTATE keystate) |
| virtual void | v_OnPaint (MGD::CONTEXT *gc) |
| virtual void | v_OnRightDown (MGUI::POINT point, KEYSTATE keystate) |
| virtual void | v_OnRightUp (MGUI::POINT point, KEYSTATE keystate) |
| virtual void | v_OnSize (int width, int height) |
To avoid unnecessary overhead there is at present no 'template' (_CT) version of this class due to the large number of virtual methods.
Definition at line 79 of file canvas.h.
|
|
|
|
|
|
|
|
Constructor.
|
|
|
Destructor.
|
|
||||||||||||||||||||||||
|
Create canvas control.
|
|
|
Get suitable parent for dialog launched from canvas.
|
|
|
Get drawing context for buffer or direct display. Do not delete the returned CONTEXT as it is internal to the CANVAS.
|
|
||||||||||||
|
Get dimensions of canvas.
|
|
||||||||||||
|
Invalidate specified portion of canvas. This will restore from off-screen buffer (if available) and/or generate OnPaint notification depending on canvas style.
|
|
|
Invalidate entire canvas. This will restore from off-screen buffer (if available) and/or generate OnPaint notification depending on canvas style.
Reimplemented from MGUI::CTRL. |
|
|
Determine if mouse is "captured" by this canvas.
|
|
|
Schedule redraw of canvas after specified delay.
|
|
|
Set mouse cursor to show while in canvas.
|
|
|
Called when cursor "capture" is changed (lost).
|
|
||||||||||||||||
|
Called when key "pressed".
|
|
||||||||||||
|
Called when left mouse button pressed.
|
|
||||||||||||
|
Called when left mouse button released.
|
|
||||||||||||
|
Called when mouse cursor is moved.
|
|
|
Called when canvas needs to be redrawn, do not call directly. This is called after the buffer is updated to the screen. If no overlay and not unbuffered then this method does not need to be overridden.
|
|
||||||||||||
|
Called when right mouse button pressed.
|
|
||||||||||||
|
Called when right mouse button released.
|
|
||||||||||||
|
Called when canvas size changes. Note, this is NOT called repeatedly while the user resizes the window, but instead will be called after the user releases the mouse or pauses for a nominal period of time (.5 second).
|
1.3.8-20040913