cubos::engine::Toolbox class final

Manages the visibility of each tool.

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 beginning of the map with known tools.
auto end() const -> auto
Returns the end of the map with known tools.

Function documentation

bool cubos::engine::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 cubos::engine::Toolbox::open(const std::string& toolName)

Opens a tool.

Parameters
toolName Tool name.

void cubos::engine::Toolbox::close(const std::string& toolName)

Closes a tool.

Parameters
toolName Tool name.

void cubos::engine::Toolbox::toggle(const std::string& toolName)

If the given tool is open, closes it. Otherwise, opens it.

Parameters
toolName Tool name.

auto cubos::engine::Toolbox::begin() const

Returns the beginning of the map with known tools.

Returns Beginning of the map.

auto cubos::engine::Toolbox::end() const

Returns the end of the map with known tools.

Returns End of the map.