Graphics
v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
Node.h
1
// Copyright 2022 ShenMian
2
// License(Apache-2.0)
3
4
#include "Widget.h"
5
#include <vector>
6
7
namespace
ui
8
{
9
10
class
Pin;
11
15
class
Node
:
public
Widget
16
{
17
public
:
18
Node
(
const
std::string& label);
19
20
void
add_pin(
const
Pin
& pin);
21
const
Pin
* get_pin_by_id(uint64_t
id
);
22
23
void
update()
override
;
24
25
private
:
26
std::vector<Pin> inputs_;
27
std::vector<Pin> outputs_;
28
};
29
30
}
// namespace ui
ui::Node
节点.
Definition:
Node.h:16
ui::Pin
节点上的大头针.
Definition:
Pin.h:15
ui::Widget
Definition:
Widget.h:14
src
UI
Node.h
制作者
1.9.5