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
6
namespace
ui
7
{
8
9
class
Node;
10
14
class
Pin
:
public
Widget
15
{
16
public
:
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
42
private
:
43
Kind kind_;
44
Type type_;
45
};
46
47
}
// namespace ui
Input
键盘/鼠标输入.
Definition:
Input.h:20
ui::Pin
节点上的大头针.
Definition:
Pin.h:15
ui::Widget
Definition:
Widget.h:14
src
UI
Pin.h
制作者
1.9.5