载入中...
搜索中...
未找到
Icons.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Export.h"
4
5#include <string>
6#include <string_view>
7
8namespace eve::ui {
9
11enum class Icon {
12 None,
13 Search,
14 Close,
15 Check,
17 Home,
18 File,
19 Folder,
21 Save,
22 Undo,
23 Redo,
24 Refresh,
25 Plus,
26 Minus,
31 Menu,
32 Grid,
33 List,
34 Eye,
36 Lock,
37 Unlock,
38 Play,
39 Pause,
40 Stop,
41 Move,
42 Pointer,
43 Pencil,
45 Image,
46 Camera,
47 Cube,
48 Cubes,
50 Wrench,
51 Sliders,
52 Info,
54 Warning,
55 Code,
56 Bug,
58 Layers,
59 User,
60 Users,
61};
62
68EVENGINE_API_WORLD bool iconFromName(std::string_view name, Icon *out);
70EVENGINE_API_WORLD std::string iconText(Icon icon, std::string_view label = {});
71
72} // namespace eve::ui
std::string label
#define EVENGINE_API_WORLD
Definition Export.h:109
Icon icon
Definition Icons.cpp:11
std::string name
const char * iconGlyph(Icon icon)
Returns the UTF-8 glyph for an icon, or an empty string for None.
Definition Icons.cpp:86
Icon
Semantic editor icons backed by the bundled Font Awesome 4.7 font.
Definition Icons.h:11
std::string iconText(Icon icon, std::string_view label)
Composes an icon with an optional visible label.
Definition Icons.cpp:101
const char * iconName(Icon icon)
Returns the stable kebab-case semantic name for an icon.
Definition Icons.cpp:88
bool iconFromName(std::string_view name, Icon *out)
Resolves a semantic icon name; accepts kebab-case names case-insensitively.
Definition Icons.cpp:90