class final
#include <tesseratos/toolbox/plugin.hpp>
Toolbox Resource which manages other tools windows.
Public functions
- auto isOpen(const std::string& toolName) -> bool
- Checks if the tool with the given name is open.
- void open(const std::string& toolName)
- Opens a tool.
- void close(const std::string& toolName)
- Closes a tool.
- void toggle(const std::string& toolName)
- If the given tool is open, closes it. Otherwise, opens it.
- auto begin() const -> auto
- Returns the beggining of the map with known tools.
- auto end() const -> auto
- Returns the end of the map with known tools.
Function documentation
bool tesseratos:: Toolbox:: isOpen(const std::string& toolName)
Checks if the tool with the given name is open.
Parameters | |
---|---|
toolName | Tool name. |
Returns | Whether the tool is open. |
void tesseratos:: Toolbox:: open(const std::string& toolName)
Opens a tool.
Parameters | |
---|---|
toolName | Tool name. |
void tesseratos:: Toolbox:: close(const std::string& toolName)
Closes a tool.
Parameters | |
---|---|
toolName | Tool name. |
void tesseratos:: Toolbox:: toggle(const std::string& toolName)
If the given tool is open, closes it. Otherwise, opens it.
Parameters | |
---|---|
toolName | Tool name. |
auto tesseratos:: Toolbox:: begin() const
Returns the beggining of the map with known tools.
Returns | Begginng of the map. |
---|
auto tesseratos:: Toolbox:: end() const
Returns the end of the map with known tools.
Returns | End of the map. |
---|