Horizon
tool_map_symbol.hpp
1 #pragma once
2 #include "core.hpp"
3 #include "tool_helper_map_symbol.hpp"
4 #include "tool_helper_move.hpp"
5 
6 namespace horizon {
8 public:
9  ToolMapSymbol(Core *c, ToolID tid);
10  ToolResponse begin(const ToolArgs &args) override;
11  ToolResponse update(const ToolArgs &args) override;
12  bool can_begin() override;
13 
14 private:
15  void update_tip();
16  std::map<UUIDPath<2>, std::string> gates_out;
17  class SchematicSymbol *sym_current = nullptr;
18 };
19 } // namespace horizon
This is what a Tool receives when the user did something.
Definition: core.hpp:27
Definition: tool_helper_map_symbol.hpp:5
Definition: tool_map_symbol.hpp:7
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition: tool_map_symbol.cpp:19
Definition: tool_helper_move.hpp:5
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_map_symbol.cpp:92
Where Tools and and documents meet.
Definition: core.hpp:232
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition: core.hpp:46
Definition: block.cpp:9
bool can_begin() override
Definition: tool_map_symbol.cpp:14
Definition: schematic_symbol.hpp:19