Horizon
src
core
tool_change_symbol.hpp
1
#pragma once
2
#include "core.hpp"
3
#include "tool_helper_get_symbol.hpp"
4
#include "tool_helper_map_symbol.hpp"
5
6
namespace
horizon {
7
8
class
ToolChangeSymbol
:
public
ToolHelperGetSymbol
,
public
ToolHelperMapSymbol
{
9
public
:
10
ToolChangeSymbol
(
Core
*c, ToolID tid);
11
ToolResponse
begin
(
const
ToolArgs
&args)
override
;
12
ToolResponse
update
(
const
ToolArgs
&args)
override
;
13
bool
can_begin
()
override
;
14
bool
is_specific
()
override
15
{
16
return
true
;
17
}
18
};
19
}
// namespace horizon
horizon::ToolChangeSymbol::is_specific
bool is_specific() override
Definition:
tool_change_symbol.hpp:14
horizon::ToolChangeSymbol::can_begin
bool can_begin() override
Definition:
tool_change_symbol.cpp:15
horizon::ToolHelperMapSymbol
Definition:
tool_helper_map_symbol.hpp:5
horizon::ToolChangeSymbol::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_change_symbol.cpp:20
horizon::Core
Where Tools and and documents meet.
Definition:
core.hpp:240
horizon::ToolChangeSymbol::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition:
tool_change_symbol.cpp:48
horizon::ToolChangeSymbol
Definition:
tool_change_symbol.hpp:8
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
horizon::ToolHelperGetSymbol
Definition:
tool_helper_get_symbol.hpp:5
Generated by
1.8.16