YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ShlExplorer.h
浏览该文件的文档.
1 /*
2  © 2013-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 
28 #ifndef INC_YReader_ShlExplorer_h_
29 #define INC_YReader_ShlExplorer_h_ 1
30 
31 #include "About.h"
32 
33 namespace YReader
34 {
35 
38 {
39 private:
40  std::reference_wrapper<ShlDS> shell;
41 
42 public:
43  SwitchScreensButton(ShlDS&, const Point&);
44 };
45 
46 
47 class ShlExplorer : public ShlDS
48 {
49 private:
53  unique_ptr<BorderResizer> p_border{};
55  float rad = 0;
58 
59 protected:
63 
64  unique_ptr<FrmAbout> pFrmAbout;
75  KeyInput SwapMask = KeyInput().set(YCL_KEY(L)).set(YCL_KEY(R));
76 
77 public:
85  const shared_ptr<Desktop>& = {}, const shared_ptr<Desktop>& = {});
86 
91  void
92  OnPaint() override;
93 };
94 
95 } // namespace YReader;
96 
97 #endif
98 
DynamicWidget dynWgts_Main
Definition: ShlExplorer.h:61
GAnimationSession< InvalidationUpdater > ani
Definition: ShlExplorer.h:57
动画会话。
Definition: Animation.h:85
unique_ptr< BorderResizer > p_border
Definition: ShlExplorer.h:53
动态部件。
Definition: Loader.h:247
按钮。
Definition: button.h:116
String FetchCurrentWorkingDirectory(size_t len)
关于界面。
菜单宿主。
Definition: menu.h:184
unique_ptr< FrmAbout > pFrmAbout
Definition: ShlExplorer.h:64
FPSCounter fpsCounter
Definition: ShlExplorer.h:66
GBinaryGroup< SPos > Point
屏幕二维点(直角坐标表示)。
Definition: ygdibase.h:235
CheckButton * p_ChkFPS
Definition: ShlExplorer.h:51
void OnPaint() override
处理绘制消息:更新到屏幕并刷新 FPS 。
帧速率计数器。
Definition: ShellHelper.h:385
std::reference_wrapper< ShlDS > shell
Definition: ShlExplorer.h:40
DynamicWidget dynWgts_Sub
Definition: ShlExplorer.h:61
ShlExplorer(const IO::Path &=IO::FetchCurrentWorkingDirectory(), const shared_ptr< Desktop > &={}, const shared_ptr< Desktop > &={})
构造:使用指定路径和上下桌面。
#define YCL_KEY(X)
Definition: Input.h:45
SwitchScreensButton btnSwitchMain
Definition: ShlExplorer.h:69
复选按钮。
Definition: Selector.h:202
std::bitset< KeyBitsetWidth > KeyInput
按键并行位宽。
Definition: Keys.h:68
SwitchScreensButton btnSwitchSub
Definition: ShlExplorer.h:69
KeyInput SwapMask
切换屏幕的按键掩码。
Definition: ShlExplorer.h:75
SwitchScreensButton(ShlDS &, const Point &)