Horizon
tool_enter_datum.hpp
1 #pragma once
2 #include "core.hpp"
3 #include <forward_list>
4 
5 namespace horizon {
6 
7 class ToolEnterDatum : public ToolBase {
8 public:
9  ToolEnterDatum(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  return true;
15  }
16  bool is_specific() override
17  {
18  return true;
19  }
20 
21 private:
22 };
23 } // namespace horizon
This is what a Tool receives when the user did something.
Definition: core.hpp:108
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition: tool_enter_datum.cpp:17
bool can_begin() override
Definition: tool_enter_datum.hpp:12
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition: tool_enter_datum.cpp:326
Where Tools and and documents meet.
Definition: core.hpp:249
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition: core.hpp:126
Definition: block.cpp:7
Common interface for all Tools.
Definition: core.hpp:170
bool is_specific() override
Definition: tool_enter_datum.hpp:16
Definition: tool_enter_datum.hpp:7