Horizon
Loading...
Searching...
No Matches
tool_tie_nets.hpp
1#pragma once
2#include "core/tool.hpp"
3
4namespace horizon {
5
6class ToolTieNets : public ToolBase {
7public:
8 using ToolBase::ToolBase;
9 ToolResponse begin(const ToolArgs &args) override;
10 ToolResponse update(const ToolArgs &args) override;
11 bool can_begin() override;
12 bool is_specific() override
13 {
14 return true;
15 }
16
17private:
18 std::pair<class SchematicJunction *, SchematicJunction *> get_junctions();
19};
20} // namespace horizon
This is what a Tool receives when the user did something.
Definition tool_pub.hpp:23
Common interface for all Tools.
Definition tool_pub.hpp:94
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition tool_pub.hpp:40
Definition tool_tie_nets.hpp:6
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition tool_tie_nets.cpp:43
bool is_specific() override
Definition tool_tie_nets.hpp:12
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition tool_tie_nets.cpp:61
bool can_begin() override
Definition tool_tie_nets.cpp:9