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
9namespace ui
10{
11
15class Label : public Widget
16{
17public:
18 Label(const std::string& label = "");
19
20 void set_text(const std::string& text);
21
22 void update() override;
23
24private:
25 std::string text_;
26 Vector3f color_ = {1, 1, 1};
27};
28
29} // namespace ui
文本标签.
Definition: Label.h:16
Definition: Widget.h:14