Horizon
Loading...
Searching...
No Matches
tool_change_symbol.hpp
1#pragma once
2#include "core/tool.hpp"
3#include "tool_helper_get_symbol.hpp"
4#include "tool_helper_map_symbol.hpp"
5
6namespace horizon {
7
9public:
10 ToolChangeSymbol(IDocument *c, ToolID tid);
11 ToolResponse begin(const ToolArgs &args) override;
12 ToolResponse update(const ToolArgs &args) override;
13 bool can_begin() override;
14 bool is_specific() override
15 {
16 return true;
17 }
18};
19} // namespace horizon
Definition idocument.hpp:5
This is what a Tool receives when the user did something.
Definition tool_pub.hpp:23
Definition tool_change_symbol.hpp:8
bool can_begin() override
Definition tool_change_symbol.cpp:16
bool is_specific() override
Definition tool_change_symbol.hpp:14
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition tool_change_symbol.cpp:21
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition tool_change_symbol.cpp:47
Definition tool_helper_get_symbol.hpp:5
Definition tool_helper_map_symbol.hpp:5
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition tool_pub.hpp:40