Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
Pin.h
1// Copyright 2022 ShenMian
2// License(Apache-2.0)
3
4#include "Widget.h"
5
6namespace ui
7{
8
9class Node;
10
14class Pin : public Widget
15{
16public:
17 enum class Type
18 {
19 Flow,
20 Bool,
21 Int,
22 Float,
23 String,
24 Object,
25 Function,
26 Delegate,
27 };
28
29 enum class Kind
30 {
31 Output,
32 Input
33 };
34
35 Pin(const std::string& label, Kind kind, Type type);
36
37 Type get_type() const noexcept;
38 Kind get_kind() const noexcept;
39
40 void update() override;
41
42private:
43 Kind kind_;
44 Type type_;
45};
46
47} // namespace ui
键盘/鼠标输入.
Definition: Input.h:20
节点上的大头针.
Definition: Pin.h:15
Definition: Widget.h:14