#include <ToolController.h>
The ToolController manages pointer tools configuration.
- See also
- Editor.
- Since
- 2.0
◆ ~ToolController()
| virtual myscript::iink::ToolController::~ToolController |
( |
| ) |
|
|
inlinevirtual |
◆ getToolForType()
Returns the tool associated with a pointer type.
- Parameters
-
- Exceptions
-
| std::invalid_argument | when type is unknown. |
- Returns
- the pointer tool associated with this type.
◆ setToolForType()
Sets the tool associated with a pointer type.
- Parameters
-
| type | the pointer type. |
| tool | the pointer tool. |
- Exceptions
-
| std::invalid_argument | when type is unknown. |
| std::invalid_argument | when tool is unknown. |
| std::runtime_error | when a pointer event sequence is in progress with this pointer type. |
◆ getToolStyle()
| virtual String myscript::iink::ToolController::getToolStyle |
( |
PointerTool |
tool | ) |
const |
|
pure virtual |
Returns the CSS style properties associated with a pointer tool.
- Parameters
-
- Exceptions
-
| std::invalid_argument | when tool is unknown. |
- Returns
- the CSS style properties associated with this pointer tool.
◆ setToolStyle()
| virtual void myscript::iink::ToolController::setToolStyle |
( |
PointerTool |
tool, |
|
|
const String & |
style |
|
) |
| |
|
pure virtual |
Sets the CSS style properties associated with a pointer tool.
- Parameters
-
| tool | the pointer tool. |
| style | the tool CSS style properties. |
- Exceptions
-
| std::invalid_argument | when tool is unknown. |
| std::runtime_error | when a pointer event sequence is in progress with a different tool (e.g. Eraser). |
◆ getToolStyleClasses()
| virtual String myscript::iink::ToolController::getToolStyleClasses |
( |
PointerTool |
tool | ) |
const |
|
pure virtual |
Returns the style classes associated with a pointer tool.
- Parameters
-
- Exceptions
-
| std::invalid_argument | when tool is unknown. |
- Returns
- the style classes associated with this pointer tool.
◆ setToolStyleClasses()
| virtual void myscript::iink::ToolController::setToolStyleClasses |
( |
PointerTool |
tool, |
|
|
const String & |
styleClasses |
|
) |
| |
|
pure virtual |
Sets the style classes associated with a pointer tool.
- Note
- style properties provided via
setToolStyle() may override the styling associated with the style classes provided here.
- Parameters
-
| tool | the pointer tool. |
| styleClasses | the style class names, separated by spaces. |
- Exceptions
-
| std::invalid_argument | when tool is unknown. |
The documentation for this class was generated from the following file: