YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
Shells.h
浏览该文件的文档.
1 /*
2  © 2010-2014 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 <YCLib/YModules.h>
36 #include <YSLib/UI/YModules.h>
37 #include <Helper/shlds.h>
38 #include YFM_Helper_ShellHelper
39 #include YFM_YCLib_Debug
40 #include YFM_YCLib_Input
41 #include YFM_YSLib_UI_Loader
42 
43 namespace YSLib
44 {
45 
46 using ResourceIndex = decltype(__LINE__);
47 using ResourceMap = map<ResourceIndex, ValueObject>;
48 
49 #define DeclResource(_name) const ResourceIndex _name(__LINE__);
50 
51 } // namespace YSLib;
52 
53 
54 namespace YReader
55 {
56 
57 #define G_COMP_NAME u"Franksoft"
58 #define G_APP_NAME u"YReader"
59 #define G_APP_VER u"Build PreAlpha"
60 
61 using namespace YSLib;
62 
63 using namespace UI;
64 using namespace Drawing;
65 
66 using namespace DS;
67 using namespace DS::UI;
68 
71 
72 
74 yconstexpr size_t Image_N(3);
75 
76 
81 void
82 Cleanup();
83 
84 shared_ptr<Image>&
85 FetchImage(size_t);
86 
88 double
90 
91 
93 WidgetLoader&
95 
100 void
101 AddButtonToTabBar(TabControl&, const ValueNode&, const string&,
102  const String&, SDst = 64);
103 
104 } // namespace YReader;
105 
106 #endif
107 
void Cleanup()
全局资源清理。
Definition: Shells.cpp:84
std::uint16_t SDst
屏幕坐标距离。
Definition: Video.h:39
YF_API void YDebugSetStatus(bool=true)
调试模式:设置状态。
Definition: Debug.cpp:63
YF_API void WaitForInput()
等待任意按键。
Definition: Input.cpp:47
DS 平台 Shell 类。
map< ResourceIndex, ValueObject > ResourceMap
Definition: Shells.h:47
WidgetLoader & FetchWidgetLoader()
Definition: Shells.cpp:130
值类型节点。
Definition: ValueNode.h:45
shared_ptr< Image > & FetchImage(size_t)
Definition: Shells.cpp:94
#define yconstexpr
指定编译时常量表达式。
Definition: ydef.h:462
void AddButtonToTabBar(TabControl &, const ValueNode &, const string &, const String &, SDst=64)
向标签栏和节点添加按钮。
Definition: Shells.cpp:158
decltype(__LINE__) ResourceIndex
Definition: Shells.h:46
double FetchImageLoadTime()
Definition: Shells.cpp:123
yconstexpr size_t Image_N(3)