Horizon
tool_place_net_label.hpp
1 #pragma once
2 #include "core.hpp"
3 #include "schematic/net_label.hpp"
4 #include "tool_place_junction.hpp"
5 #include <forward_list>
6 
7 namespace horizon {
8 
10 public:
11  ToolPlaceNetLabel(Core *c, ToolID tid);
12  bool can_begin() override;
13 
14 protected:
15  std::forward_list<NetLabel *> labels_placed;
16  void create_attached() override;
17  void delete_attached() override;
18  bool begin_attached() override;
19  bool update_attached(const ToolArgs &args) override;
20  bool check_line(LineNet *li) override;
21  NetLabel *la = nullptr;
22  Orientation last_orientation = Orientation::RIGHT;
23 };
24 } // namespace horizon
This is what a Tool receives when the user did something.
Definition: core.hpp:108
Definition: tool_place_junction.hpp:7
LineNet is similar to Line, except it denotes electrical connection.
Definition: line_net.hpp:24
Displays the junction&#39;s Net name it is attached to.
Definition: net_label.hpp:21
Where Tools and and documents meet.
Definition: core.hpp:249
bool can_begin() override
Definition: tool_place_net_label.cpp:13
Definition: block.cpp:7
Definition: tool_place_net_label.hpp:9