MGUI::TOOL_LIMITED Class Reference

Tool with extents limit support. More...

#include <mgui/toolbase.h>

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

List of all members.

Public Member Functions

virtual ~TOOL_LIMITED ()
void SetLimits (const DRECT2D &rect)
void SetLimitsEnforced (bool enforced=true)

Protected Member Functions

 TOOL_LIMITED (TOOLCANVAS *canvas, CONTROLNEED ControlNeed=CONTROLNEED_None, CAPABILITY capability=CAPABILITY_Default)
const DRECT2DGetLimits () const
bool IsLimitsEnforced () const
virtual void v_OnActivate ()
virtual void v_OnSetTransToWindow ()

Detailed Description

Tool with extents limit support.


Constructor & Destructor Documentation

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

Destructor.

MGUI::TOOL_LIMITED::TOOL_LIMITED ( TOOLCANVAS canvas,
CONTROLNEED  ControlNeed = CONTROLNEED_None,
CAPABILITY  capability = CAPABILITY_Default 
) [explicit, protected]

Constructor.

Parameters:
ControlNeed Need for control dialog or form
capability Additional capabilities

Member Function Documentation

const DRECT2D& MGUI::TOOL_LIMITED::GetLimits (  )  const [inline, protected]

Get limits.

bool MGUI::TOOL_LIMITED::IsLimitsEnforced (  )  const [inline, protected]

Determine if limits are enforced.

void MGUI::TOOL_LIMITED::SetLimits ( const DRECT2D rect  ) 

Set coordinate limits.

Parameters:
rect Limits to set
void MGUI::TOOL_LIMITED::SetLimitsEnforced ( bool  enforced = true  ) 

Set whether limits are enforced.

If SetLimits() has not been called then the tool will be limited to the visible canvas extent.

Parameters:
enforced Set if limits are enforced
virtual void MGUI::TOOL_LIMITED::v_OnActivate (  )  [protected, virtual]

Called when tool is "activated".

Derived class must call base class method BEFORE performing own processing.

Reimplemented from MGUI::TOOL_BASE.

virtual void MGUI::TOOL_LIMITED::v_OnSetTransToWindow (  )  [protected, virtual]

Called when tool to window transformation is set.

Derived class must call base class method BEFORE performing own processing.

Reimplemented from MGUI::TOOL_BASE.


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

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