Horizon
tool_place_board_hole.hpp
1 #pragma once
2 #include "core.hpp"
3 
4 namespace horizon {
5 class ToolPlaceBoardHole : public ToolBase {
6 public:
7  ToolPlaceBoardHole(Core *c, ToolID tid);
8  ToolResponse begin(const ToolArgs &args) override;
9  ToolResponse update(const ToolArgs &args) override;
10  bool can_begin() override;
11 
12 private:
13  const class Padstack *padstack = nullptr;
14  class BoardHole *temp = nullptr;
15  void create_hole(const Coordi &c);
16 };
17 } // namespace horizon
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition: tool_place_board_hole.cpp:17
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_place_board_hole.cpp:43
This is what a Tool receives when the user did something.
Definition: core.hpp:26
bool can_begin() override
Definition: tool_place_board_hole.cpp:12
Definition: tool_place_board_hole.hpp:5
Definition: board_hole.hpp:16
Definition: padstack.hpp:21
Where Tools and and documents meet.
Definition: core.hpp:240
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition: core.hpp:52
Definition: block.cpp:9
Common interface for all Tools.
Definition: core.hpp:141