Horizon
src
core
tools
tool_draw_connection_line.hpp
1
#pragma once
2
#include "core/tool.hpp"
3
4
namespace
horizon {
5
6
class
ToolDrawConnectionLine
:
public
ToolBase
{
7
public
:
8
ToolDrawConnectionLine
(
IDocument
*c, ToolID tid);
9
ToolResponse
begin
(
const
ToolArgs
&args)
override
;
10
ToolResponse
update
(
const
ToolArgs
&args)
override
;
11
bool
can_begin
()
override
;
12
13
private
:
14
class
Junction
*temp_junc = 0;
15
class
ConnectionLine
*temp_line = 0;
16
class
ConnectionLine
*temp_line_last = 0;
17
class
ConnectionLine
*temp_line_last2 = 0;
18
class
Net
*temp_net =
nullptr
;
19
20
void
update_tip();
21
};
22
}
// namespace horizon
horizon::IDocument
Definition:
idocument.hpp:5
horizon::ToolDrawConnectionLine
Definition:
tool_draw_connection_line.hpp:6
horizon::ToolDrawConnectionLine::can_begin
bool can_begin() override
Definition:
tool_draw_connection_line.cpp:15
horizon::ToolDrawConnectionLine::update
ToolResponse update(const ToolArgs &args) override
Gets called whenever the user generated some sort of input.
Definition:
tool_draw_connection_line.cpp:42
horizon::ToolDrawConnectionLine::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_draw_connection_line.cpp:20
horizon::Net
Definition:
net.hpp:16
horizon::Junction
A Junction is a point in 2D-Space.
Definition:
junction.hpp:25
horizon::ToolBase
Common interface for all Tools.
Definition:
tool.hpp:136
horizon::ToolResponse
To signal back to the core what the Tool did, a Tool returns a ToolResponse.
Definition:
tool.hpp:48
horizon::ToolArgs
This is what a Tool receives when the user did something.
Definition:
tool.hpp:22
horizon::ConnectionLine
Definition:
connection_line.hpp:16
Generated by
1.8.17