#include <mgui/toolbase.h>
Inheritance diagram for MGUI::TOOL_BASE:

Derived tool clients should only override the v_OnNotifyChange virtual method to receive tool change notifications. Tool implementations should NOT override the v_OnNotifyChange virtual methods (but may define new v_OnNotify... methods) as this avoids the need for derived tool client classes to call base methods.
Definition at line 62 of file toolbase.h.
|
|
Adjustment flags for Move() and Resize() methods.
Definition at line 66 of file toolbase.h. |
|
|
sequence
Definition at line 83 of file toolbase.h. |
|
|
Definition at line 91 of file toolbase.h. |
|
|
Definition at line 345 of file toolbase.h. |
|
|
Options for standard and manual control forms.
Definition at line 74 of file toolbase.h. |
|
|
Marker types, not all types are supported by all tools.
Definition at line 103 of file toolbase.h. |
|
|
Definition at line 114 of file toolbase.h. |
|
|
Destructor.
|
|
||||||||||||||||
|
Constructor.
|
|
|
Activate the tool. If another tool is currently active on the canvas it will be automatically deactivated. |
|
||||||||||||
|
Utility methods for use by tool implementation.
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
Snap point to current snap grid, if no snapping enabled point unchanged.
|
|
|
Definition at line 376 of file toolbase.h. |
|
||||||||||||
|
Check rectangle against tool limits.
|
|
|
Clear current tool position, erasing all graphics.
|
|
||||||||||||
|
Create "form" with tool-specific controls.
Definition at line 200 of file toolbase.h. |
|
||||||||||||
|
Create "form" with tool-specific manual-entry controls.
Definition at line 207 of file toolbase.h. |
|
|
Deactivate this tool.
|
|
||||||||||||||||||||||||
|
Draw a marker (MARKER...) in the position and size specified.
|
|
|
Generate region from tool.
Definition at line 217 of file toolbase.h. |
|
||||||||||||||||
|
|
|
|
Get movement values associated with arrow keys.
Definition at line 223 of file toolbase.h. |
|
|
Get "canvas" associated with tool.
Definition at line 235 of file toolbase.h. |
|
|
Get extents of canvas.
|
|
|
Definition at line 392 of file toolbase.h. |
|
|
Get current control options settings.
Definition at line 227 of file toolbase.h. |
|
|
Get drawing context. Will set PixelFunction to Invert if modifying, Copy if not. |
|
|
Get global tool pen color reference.
|
|
|
Get transformation between "tool" and "window" coordinates.
Definition at line 231 of file toolbase.h. |
|
|
Determine if tool controls available.
Definition at line 244 of file toolbase.h. |
|
|
Determine if has manual data entry controls.
Definition at line 248 of file toolbase.h. |
|
|
Check if tool has a valid position set.
Definition at line 268 of file toolbase.h. |
|
|
Check if tool is currently "active".
Definition at line 252 of file toolbase.h. |
|
|
Determine if tool's canvas has the mouse "captured".
|
|
|
Determine if tool is "resizable".
Definition at line 256 of file toolbase.h. |
|
|
Determine if tool is "rotatable".
Definition at line 260 of file toolbase.h. |
|
|
Check if tool is "suspended".
Definition at line 264 of file toolbase.h. |
|
||||||||||||||||
|
Move the tool by the specified amount.
|
|
||||||||||||
|
Send notification that "change" action has or will occur.
Definition at line 400 of file toolbase.h. |
|
||||||||||||||||
|
Resize the tool.
|
|
||||||||||||
|
Restore background for specified rectangle.
|
|
|
Restore background for entire tool canvas window.
|
|
|
|
|
|
Resume the tool after performing drawing operation on the canvas.
|
|
||||||||||||
|
Set movement amounts associated with arrow keys.
|
|
|
Set whether user can start drawing a "new" tool.
Definition at line 296 of file toolbase.h. |
|
|
Set controls to appear on dialog when shown. If used, this must be called before tool is first activated.
Definition at line 302 of file toolbase.h. |
|
|
Set mouse cursor.
Definition at line 419 of file toolbase.h. |
|
|
Definition at line 423 of file toolbase.h. |
|
||||||||||||
|
Set global tool pen color.
|
|
|
Set whether tool is resizable.
Definition at line 307 of file toolbase.h. |
|
|
Set whether tool is rotatable.
Definition at line 312 of file toolbase.h. |
|
|
Set transformation between "tool" and "window" coordinates.
|
|
|
Get snap grid settings.
Definition at line 326 of file toolbase.h. |
|
|
Determine if snap grid is currently in use.
Definition at line 322 of file toolbase.h. |
|
|
Set snap grid parameters.
|
|
|
Set whether to use snap grid or not.
Definition at line 335 of file toolbase.h. |
|
|
Suspend tool prior to performing a drawing operation on the canvas.
|
|
|
Transform DPOINT2D from "tool" to "window" coordinates.
|
|
|
Transform LPOINT2D point in "window" to "tool" coordinates.
Definition at line 438 of file toolbase.h. |
|
|
Transform MGUI::POINT point in "window" to "tool" coordinates.
Definition at line 433 of file toolbase.h. |
|
||||||||||||
|
Create "form" with tool-specific controls.
|
|
||||||||||||
|
Create "form" with tool-specific manual-entry controls.
|
|
|
Do actual drawing of tool graphic.
|
|
||||||||||||||||
|
Move the tool.
|
|
||||||||||||||||
|
Size the tool.
|
|
|
Generate region from tool.
|
|
|
Called to get title of tool control dialog.
|
|
|
Called when tool is "activated".
Reimplemented in MGUI::TOOL_LIMITED. |
|
|
Called when tool is cleared.
|
|
|
Called when tool is deactivated.
|
|
||||||||||||||||
|
Called when key pressed/released.
|
|
||||||||||||
|
Called when left mouse button pressed.
|
|
||||||||||||
|
Called when left mouse button released.
|
|
||||||||||||
|
Called when mouse cursor is moved.
|
|
||||||||||||
|
Called when change made to tool position, shape, size, etc.
|
|
||||||||||||
|
Called when right mouse button pressed. Often overridden to show a popup menu. |
|
||||||||||||
|
Called when right mouse button released. Often overridden to perform an 'apply' action. |
|
|
Called when tool is "resumed" after being suspended.
|
|
|
Called when tool to window transformation is set.
Reimplemented in MGUI::TOOL_LIMITED. |
|
|
Called when canvas is resized.
|
1.3.8-20040913