Simple point selection tool. More...
#include <mgui/toolselectpoint.h>

Public Types | |
| typedef fastdelegate::FastDelegate < MGUI::CURSORID(const DPOINT2D &pt, bool ButtonDown)> | DELEGATE_ONGETCURSOR |
Public Member Functions | |
| TOOL_SELECTPOINT (TOOLCANVAS *canvas) | |
| virtual | ~TOOL_SELECTPOINT () |
| const DPOINT2D & | GetPointCurrent () const |
| const DPOINT2D & | GetPointPressed () const |
| void | SetCursors (CURSORID CursorIdNormal, CURSORID CursorIdDown) |
| void | SetDelegateOnGetCursor (DELEGATE_ONGETCURSOR delegate, double delay=0) |
Simple point selection tool.
| typedef fastdelegate::FastDelegate<MGUI::CURSORID(const DPOINT2D& pt, bool ButtonDown)> MGUI::TOOL_SELECTPOINT::DELEGATE_ONGETCURSOR |
| MGUI::TOOL_SELECTPOINT::TOOL_SELECTPOINT | ( | TOOLCANVAS * | canvas | ) | [explicit] |
Constructor.
| virtual MGUI::TOOL_SELECTPOINT::~TOOL_SELECTPOINT | ( | ) | [virtual] |
Destructor.
| const DPOINT2D& MGUI::TOOL_SELECTPOINT::GetPointCurrent | ( | ) | const [inline] |
Get current tool point.
Only meaningful while handing change notification.
| const DPOINT2D& MGUI::TOOL_SELECTPOINT::GetPointPressed | ( | ) | const [inline] |
Get tool point where button was pressed.
Only meaningful while handing change notification.
Set cursors to use for tool while in "valid area".
If not specified, the "thin crosshair" cursor will be used.
| CursorIdNormal | Normal (button-up) cursor | |
| CursorIdDown | Id of cursor while button is down |
| void MGUI::TOOL_SELECTPOINT::SetDelegateOnGetCursor | ( | DELEGATE_ONGETCURSOR | delegate, | |
| double | delay = 0 | |||
| ) | [inline] |
Set delegate to call to determine cursor.
| delegate | Delegate to call | |
| delay | Time (in seconds) pointer must be stationary before delegate is called |
1.6.1