YSTest: YConsole.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

YConsole.h
浏览该文件的文档.
1 /*
2 © 2012, 2015 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_YShellDefinition
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::DarkGray
Definition: YConsole.h:61
YSLib::Consoles::Cyan
Definition: YConsole.h:64
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
YSLib::Consoles::DarkMagenta
Definition: YConsole.h:58
platform::ColorSpace::ColorSet
ColorSet
默认颜色集。
Definition: Video.h:389
yconstexpr
#define yconstexpr
指定编译时常量表达式。
Definition: ydef.h:679
YSLib::Consoles::Blue
Definition: YConsole.h:62
YSLib::Consoles::DarkBlue
Definition: YConsole.h:54
YSLib::Consoles::Red
Definition: YConsole.h:65
YSLib::Consoles::ConsoleColors
yconstexpr const ColorSpace::ColorSet ConsoleColors[]
控制台颜色。
Definition: YConsole.h:76
YSLib::Consoles::Magenta
Definition: YConsole.h:66
YSLib::Consoles::DarkYellow
Definition: YConsole.h:59
YSLib::Consoles::DarkCyan
Definition: YConsole.h:56
YSLib::Consoles::Green
Definition: YConsole.h:63
ColorSpace
YSLib::Consoles::Yellow
Definition: YConsole.h:67
YSLib::Consoles::Black
Definition: YConsole.h:53
YSLib::Consoles::DarkGreen
Definition: YConsole.h:55
YSLib::Consoles::Color
Color
控制台颜色枚举。
Definition: YConsole.h:51
YModules.h
YSLib::Consoles::DarkRed
Definition: YConsole.h:57
YSLib::Consoles::Gray
Definition: YConsole.h:60
YSLib::Consoles::White
Definition: YConsole.h:68