Single "point" tool. More...
#include <mgui/toolpoint.h>

Public Types | |
| typedef fastdelegate::FastDelegate < bool(CHANGESEQ, DPOINT3D &)> | DELEGATE_ONSETPOINT |
Public Member Functions | |
| TOOL_POINT (TOOLCANVAS *canvas) | |
| virtual | ~TOOL_POINT () |
| const DPOINT3D & | GetPoint () const |
| TOOL_POINT & | operator= (const DPOINT3D &rhs) |
| TOOL_POINT & | operator= (const DPOINT2D &rhs) |
| void | SetDelegateOnSetPoint (DELEGATE_ONSETPOINT delegate) |
| void | SetMarker (MARKER marker, UINT16 size=0) |
| void | SetPointStyle (const POINTSTYLE &style, const RVC::STYLEPATTERN_SYMBOL *pSymbol=0) |
Single "point" tool.
| typedef fastdelegate::FastDelegate<bool(CHANGESEQ, DPOINT3D&)> MGUI::TOOL_POINT::DELEGATE_ONSETPOINT |
| MGUI::TOOL_POINT::TOOL_POINT | ( | TOOLCANVAS * | canvas | ) | [explicit] |
Constructor.
| virtual MGUI::TOOL_POINT::~TOOL_POINT | ( | ) | [virtual] |
Destructor.
| const DPOINT3D& MGUI::TOOL_POINT::GetPoint | ( | ) | const [inline] |
Get current tool point coordinates.
| TOOL_POINT& MGUI::TOOL_POINT::operator= | ( | const DPOINT3D & | rhs | ) |
Assigment from DPOINT3D.
| TOOL_POINT& MGUI::TOOL_POINT::operator= | ( | const DPOINT2D & | rhs | ) |
Assignment from DPOINT2D.
| void MGUI::TOOL_POINT::SetDelegateOnSetPoint | ( | DELEGATE_ONSETPOINT | delegate | ) | [inline] |
Set delegate to call when a point's position is set or moved This allows the user of the tool to determine if the point is to be moved and where.
Return 'true' for the delegate to modify the point.
Set marker type and size.
The default marker is MARKER_Plus with a size of 9 pixels. Will reset any previously set style.
| marker | New marker type | |
| size | New marker size, 0 to retain current size |
| void MGUI::TOOL_POINT::SetPointStyle | ( | const POINTSTYLE & | style, | |
| const RVC::STYLEPATTERN_SYMBOL * | pSymbol = 0 | |||
| ) |
Set style for using symbol.
Will use marker unless either STYLEFLAG_UseSymbol or STYLEFLAG_PointSymbolBuiltIn is specified.
| style | Style | |
| pSymbol | Optional symbol when STYLEFLAG_UseSymbol specified |
1.6.1