Horizon
src
core
tool_place_refdes_and_value.hpp
1
#pragma once
2
#include "core.hpp"
3
#include <forward_list>
4
#include <map>
5
6
namespace
horizon {
7
8
class
ToolPlaceRefdesAndValue
:
public
ToolBase
{
9
public
:
10
ToolPlaceRefdesAndValue
(
Core
*c, ToolID tid);
11
ToolResponse
begin
(
const
ToolArgs
&args)
override
;
12
ToolResponse
update
(
const
ToolArgs
&args)
override
;
13
bool
can_begin
()
override
;
14
15
private
:
16
Text
*text_refdes =
nullptr
;
17
Text
*text_value =
nullptr
;
18
19
void
update_texts(
const
Coordi
&c);
20
};
21
}
// namespace horizon
horizon::Coord< int64_t >
horizon::ToolPlaceRefdesAndValue::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition:
tool_place_refdes_and_value.cpp:39
horizon::Core
Where Tools and and documents meet.
Definition:
core.hpp:240
horizon::ToolPlaceRefdesAndValue::can_begin
bool can_begin() override
Definition:
tool_place_refdes_and_value.cpp:12
horizon::Text
Used wherever a user-editable text is needed.
Definition:
text.hpp:19
horizon::ToolPlaceRefdesAndValue
Definition:
tool_place_refdes_and_value.hpp:8
horizon::ToolBase
Common interface for all Tools.
Definition:
core.hpp:141
horizon::ToolPlaceRefdesAndValue::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_place_refdes_and_value.cpp:23
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition:
core.hpp:52
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition:
core.hpp:26
Generated by
1.8.16