YSTest: YConsole.h 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

YConsole.h
浏览该文件的文档.
1 /*
2 © 2012, 2015, 2018 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef YSL_INC_Core_YConsole_h_
29 #define YSL_INC_Core_YConsole_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_Core_YGDIBase // for Drawing::ColorSpace;
33
34 namespace YSLib
35 {
36
41 namespace Consoles
42 {
43
45 namespace ColorSpace = Drawing::ColorSpace;
46
51 enum Color
52 {
53 Black = 0,
54 DarkBlue,
55 DarkGreen,
56 DarkCyan,
57 DarkRed,
58 DarkMagenta,
59 DarkYellow,
60 Gray,
61 DarkGray,
62 Blue,
63 Green,
64 Cyan,
65 Red,
66 Magenta,
67 Yellow,
68 White
69 };
70
76 yconstexpr const ColorSpace::ColorSet ConsoleColors[]{ColorSpace::Black,
77 ColorSpace::Navy, ColorSpace::Green, ColorSpace::Teal, ColorSpace::Maroon,
78 ColorSpace::Purple, ColorSpace::Olive, ColorSpace::Silver, ColorSpace::Gray,
79 ColorSpace::Blue, ColorSpace::Lime, ColorSpace::Aqua, ColorSpace::Red,
80 ColorSpace::Yellow, ColorSpace::Fuchsia, ColorSpace::White};
81
82 } // namespace Consoles;
83
84 } // namespace YSLib;
85
86 #endif
87
YSLib::Consoles::ConsoleColors
yconstexpr const ColorSpace::ColorSet ConsoleColors[]
控制台颜色。
Definition: YConsole.h:76
yconstexpr
#define yconstexpr
指定编译时常量表达式。
Definition: ydef.h:1072
YSLib::Consoles::Color
Color
控制台颜色枚举。
Definition: YConsole.h:52
YSLib::Consoles::Gray
@ Gray
Definition: YConsole.h:60
YSLib::Consoles::White
@ White
Definition: YConsole.h:68
YSLib::Consoles::Blue
@ Blue
Definition: YConsole.h:62
YSLib::Consoles::Red
@ Red
Definition: YConsole.h:65
YSLib::Consoles::Cyan
@ Cyan
Definition: YConsole.h:64
YSLib::Drawing::ColorSpace::Purple
@ Purple
Definition: YGDIBase.h:271
YSLib::Drawing::ColorSpace::ColorSet
ColorSet
默认颜色集。
Definition: YGDIBase.h:260
YSLib::Consoles::Yellow
@ Yellow
Definition: YConsole.h:67
YSLib::Consoles::Black
@ Black
Definition: YConsole.h:53
YSLib::Consoles::DarkGreen
@ DarkGreen
Definition: YConsole.h:55
YSLib::Drawing::ColorSpace::Fuchsia
@ Fuchsia
Definition: YGDIBase.h:264
YSLib::Drawing::ColorSpace::Teal
@ Teal
Definition: YGDIBase.h:274
YSLib::Drawing::ColorSpace::Lime
@ Lime
Definition: YGDIBase.h:267
YSLib::Drawing::ColorSpace::Olive
@ Olive
Definition: YGDIBase.h:270
YSLib::Consoles::DarkBlue
@ DarkBlue
Definition: YConsole.h:54
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:46
YModules.h
YSLib 用户界面模块配置文件。
YSLib::Consoles::Magenta
@ Magenta
Definition: YConsole.h:66
YSLib::Consoles::DarkYellow
@ DarkYellow
Definition: YConsole.h:59
YSLib::Drawing::ColorSpace::Navy
@ Navy
Definition: YGDIBase.h:269
YSLib::Drawing::ColorSpace::Aqua
@ Aqua
Definition: YGDIBase.h:261
YSLib::Consoles::DarkGray
@ DarkGray
Definition: YConsole.h:61
YSLib::Consoles::DarkCyan
@ DarkCyan
Definition: YConsole.h:56
YSLib::Consoles::Green
@ Green
Definition: YConsole.h:63
YSLib::Drawing::ColorSpace::Silver
@ Silver
Definition: YGDIBase.h:273
YSLib::Consoles::DarkRed
@ DarkRed
Definition: YConsole.h:57
YSLib::Consoles::DarkMagenta
@ DarkMagenta
Definition: YConsole.h:58
YSLib::Drawing::ColorSpace::Maroon
@ Maroon
Definition: YGDIBase.h:268