Horizon
horizon-eda-1.3.0
src
core
tools
tool_set_group.hpp
1
#pragma once
2
#include "core/tool.hpp"
3
4
namespace
horizon {
5
class
ToolSetGroup
:
public
ToolBase
{
6
public
:
7
ToolSetGroup
(
IDocument
*c, ToolID tid);
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
private
:
17
std::set<class Component *> get_components();
18
};
19
}
// namespace horizon
horizon::IDocument
Definition:
idocument.hpp:5
horizon::ToolSetGroup
Definition:
tool_set_group.hpp:5
horizon::ToolSetGroup::can_begin
bool can_begin() override
Definition:
tool_set_group.cpp:25
horizon::ToolSetGroup::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_set_group.cpp:53
horizon::ToolBase
Common interface for all Tools.
Definition:
tool.hpp:121
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition:
tool.hpp:42
horizon::ToolSetGroup::is_specific
bool is_specific() override
Definition:
tool_set_group.hpp:11
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition:
tool.hpp:23
horizon::ToolSetGroup::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition:
tool_set_group.cpp:138
Generated by
1.8.20