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
7namespace ui
8{
9
10class Pin;
11
15class Node : public Widget
16{
17public:
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
25private:
26 std::vector<Pin> inputs_;
27 std::vector<Pin> outputs_;
28};
29
30} // namespace ui
节点.
Definition: Node.h:16
节点上的大头针.
Definition: Pin.h:15
Definition: Widget.h:14