Tool with extents limit support. More...
#include <mgui/toolbase.h>

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 DRECT2D & | GetLimits () const |
| bool | IsLimitsEnforced () const |
| virtual void | v_OnActivate () |
| virtual void | v_OnSetTransToWindow () |
Tool with extents limit support.
| 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.
| ControlNeed | Need for control dialog or form | |
| capability | Additional capabilities |
| 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.
| 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.
| 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.
1.6.1