Horizon
src
core
tool_draw_connection_line.hpp
1
#pragma once
2
#include "core.hpp"
3
4
namespace
horizon {
5
6
class
ToolDrawConnectionLine
:
public
ToolBase
{
7
public
:
8
ToolDrawConnectionLine
(
Core
*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::ToolDrawConnectionLine
Definition:
tool_draw_connection_line.hpp:6
horizon::ToolDrawConnectionLine::can_begin
bool can_begin() override
Definition:
tool_draw_connection_line.cpp:14
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:41
horizon::ToolDrawConnectionLine::begin
ToolResponse begin(const ToolArgs &args) override
Gets called right after the constructor has finished.
Definition:
tool_draw_connection_line.cpp:19
horizon::Net
Definition:
net.hpp:16
horizon::Core
Where Tools and and documents meet.
Definition:
core.hpp:240
horizon::Junction
A Junction is a point in 2D-Space.
Definition:
junction.hpp:25
horizon::ToolBase
Common interface for all Tools.
Definition:
core.hpp:141
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::ConnectionLine
Definition:
connection_line.hpp:16
Generated by
1.8.16