MGUI::TOOL_SELECTPOINT Class Reference

Simple point selection tool. More...

#include <mgui/toolselectpoint.h>

Inheritance diagram for MGUI::TOOL_SELECTPOINT:
Inheritance graph
[legend]

List of all members.

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 DPOINT2DGetPointCurrent () const
const DPOINT2DGetPointPressed () const
void SetCursors (CURSORID CursorIdNormal, CURSORID CursorIdDown)
void SetDelegateOnGetCursor (DELEGATE_ONGETCURSOR delegate, double delay=0)

Detailed Description

Simple point selection tool.


Member Typedef Documentation

typedef fastdelegate::FastDelegate<MGUI::CURSORID(const DPOINT2D& pt, bool ButtonDown)> MGUI::TOOL_SELECTPOINT::DELEGATE_ONGETCURSOR

Constructor & Destructor Documentation

MGUI::TOOL_SELECTPOINT::TOOL_SELECTPOINT ( TOOLCANVAS canvas  )  [explicit]

Constructor.

virtual MGUI::TOOL_SELECTPOINT::~TOOL_SELECTPOINT (  )  [virtual]

Destructor.


Member Function Documentation

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.

void MGUI::TOOL_SELECTPOINT::SetCursors ( CURSORID  CursorIdNormal,
CURSORID  CursorIdDown 
) [inline]

Set cursors to use for tool while in "valid area".

If not specified, the "thin crosshair" cursor will be used.

Parameters:
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.

Parameters:
delegate Delegate to call
delay Time (in seconds) pointer must be stationary before delegate is called

The documentation for this class was generated from the following file:

Generated on Sun Oct 7 21:36:21 2012 for TNTsdk 2012 by  doxygen 1.6.1