Horizon
src
core
tools
tool_edit_custom_value.hpp
1
#pragma once
2
#include "tool_helper_get_symbol.hpp"
3
4
namespace
horizon {
5
class
ToolEditCustomValue
:
public
ToolHelperGetSymbol
{
6
public
:
7
using
ToolHelperGetSymbol::ToolHelperGetSymbol;
8
ToolResponse
begin
(
const
ToolArgs
&args)
override
;
9
ToolResponse
update
(
const
ToolArgs
&args)
override
;
10
bool
can_begin
()
override
;
11
bool
is_specific
()
override
12
{
13
return
true
;
14
}
15
};
16
}
// namespace horizon
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition:
tool_pub.hpp:23
horizon::ToolEditCustomValue
Definition:
tool_edit_custom_value.hpp:5
horizon::ToolEditCustomValue::is_specific
bool is_specific() override
Definition:
tool_edit_custom_value.hpp:11
horizon::ToolEditCustomValue::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition:
tool_edit_custom_value.cpp:23
horizon::ToolEditCustomValue::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_edit_custom_value.cpp:11
horizon::ToolEditCustomValue::can_begin
bool can_begin() override
Definition:
tool_edit_custom_value.cpp:6
horizon::ToolHelperGetSymbol
Definition:
tool_helper_get_symbol.hpp:5
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition:
tool_pub.hpp:40
Generated by
1.9.1