YSTest: Shells.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

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

- 文件列表
- 文件成员

Shells.h
浏览该文件的文档.
1 /*
2 © 2010-2016 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
32 #ifndef INC_YReader_Shells_h_
33 #define INC_YReader_Shells_h_ 1
34
35 #include <YSBuild.h>
36 #include YFM_DS_Helper_Shell_DS
37 #include YFM_Helper_ShellHelper
38 #include YFM_YCLib_Input
39 #include YFM_YSLib_UI_Loader
40
41 namespace YSLib
42 {
43
44 using ResourceIndex = decltype(__LINE__);
45 using ResourceMap = map<ResourceIndex, ValueObject>;
46
47 #define DeclResource(_name) const ResourceIndex _name(__LINE__);
48
49 } // namespace YSLib;
50
51
52 namespace YReader
53 {
54
55 #define G_COMP_NAME u"Franksoft"
56 #define G_APP_NAME u"YReader"
57 #define G_APP_VER u"Build PreAlpha"
58
59 using namespace YSLib;
60
61 using namespace UI;
62 using namespace Drawing;
63
64 using namespace DS;
65 using namespace DS::UI;
66
67 using platform::WaitForInput;
68
69
71 yconstexpr const size_t Image_N(3);
72
73
78 void
79 Cleanup();
80
81 shared_ptr<Image>&
82 FetchImage(size_t);
83
85 double
86 FetchImageLoadTime();
87
88
90 WidgetLoader&
91 FetchWidgetLoader();
92
97 void
98 AddButtonToTabBar(TabControl&, ValueNode&, const string&, const String&,
99 SDst = 64);
100
101 } // namespace YReader;
102
103 #endif
104
YSLib::ResourceIndex
decltype(__LINE__) ResourceIndex
Definition: Shells.h:44
YReader::FetchImageLoadTime
double FetchImageLoadTime()
Definition: Shells.cpp:120
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
UI
YSBuild.h
YSLib 库配置文件。
DS
yconstexpr
#define yconstexpr
指定编译时常量表达式。
Definition: ydef.h:679
platform::WaitForInput
YF_API void WaitForInput()
等待任意按键。
Definition: Input.cpp:46
YReader::Cleanup
void Cleanup()
全局资源清理。
Definition: Shells.cpp:81
YReader::FetchImage
shared_ptr< Image > & FetchImage(size_t)
Definition: Shells.cpp:89
platform::SDst
std::uint16_t SDst
屏幕坐标距离。
Definition: Video.h:44
YReader::FetchWidgetLoader
WidgetLoader & FetchWidgetLoader()
Definition: Shells.cpp:127
YReader::AddButtonToTabBar
void AddButtonToTabBar(TabControl &, ValueNode &, const string &, const String &, SDst=64)
向标签栏和节点添加按钮。
Definition: Shells.cpp:156
YSLib::ResourceMap
map< ResourceIndex, ValueObject > ResourceMap
Definition: Shells.h:45
Drawing
UI
YReader
Definition: About.h:33
YSLib::ValueNode
值类型节点。
Definition: ValueNode.h:58
YReader::Image_N
yconstexpr const size_t Image_N(3)