Graphics
v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
Label.h
1
// Copyright 2022 ShenMian
2
// License(Apache-2.0)
3
4
#pragma once
5
6
#include "Widget.h"
7
#include <math/math.hpp>
8
9
namespace
ui
10
{
11
15
class
Label
:
public
Widget
16
{
17
public
:
18
Label
(
const
std::string& label =
""
);
19
20
void
set_text(
const
std::string& text);
21
22
void
update()
override
;
23
24
private
:
25
std::string text_;
26
Vector3f color_ = {1, 1, 1};
27
};
28
29
}
// namespace ui
ui::Label
文本标签.
Definition:
Label.h:16
ui::Widget
Definition:
Widget.h:14
src
UI
Label.h
制作者
1.9.5