YSTest: ShlExplorer.h 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

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

- 文件列表
- 文件成员

ShlExplorer.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
28 #ifndef INC_YReader_ShlExplorer_h_
29 #define INC_YReader_ShlExplorer_h_ 1
30
31 #include "About.h"
32
33 namespace YReader
34 {
35
40 IO::Path
41 FetchDefaultShellDirectory();
42
43
45 class SwitchScreensButton : public Button
46 {
47 private:
49 lref<ShlDS> shell;
50
51 public:
52 SwitchScreensButton(ShlDS&, const Point&);
57 ~SwitchScreensButton() override;
58 };
59
60
62 class ShlExplorer : public ShlDS
63 {
64 private:
66 CheckButton* p_ChkFPS{};
68 unique_ptr<BorderResizer> p_border{};
70 float rad = 0;
72 GAnimationSession<InvalidationUpdater> ani;
74 unique_ptr<Menu> p_m0{}, p_m1{};
75
76 protected:
78 DynamicWidget dynWgts_Main, dynWgts_Sub;
80 AboutPanel pnlAbout{};
82 SystemInformationPanel pnlSysInfo{};
84 MenuHost mhMain{};
86 FPSCounter fpsCounter;
88 TextPlaceholder tpDefault{};
90 SwitchScreensButton btnSwitchMain, btnSwitchSub;
96 KeyInput SwapMask = KeyInput().set(YCL_KEY(L)).set(YCL_KEY(R));
97
98 public:
105 ShlExplorer(const IO::Path& = FetchDefaultShellDirectory(),
106 const shared_ptr<Desktop>& = {}, const shared_ptr<Desktop>& = {});
107
112 void
113 OnPaint() override;
114 };
115
116 } // namespace YReader;
117
118 #endif
119
YReader::ShlExplorer::p_border
unique_ptr< BorderResizer > p_border
Definition: ShlExplorer.h:68
YReader::ShlExplorer::ShlExplorer
ShlExplorer(const IO::Path &=FetchDefaultShellDirectory(), const shared_ptr< Desktop > &={}, const shared_ptr< Desktop > &={})
构造：使用指定路径和上下桌面。
YSLib::UI::GAnimationSession< InvalidationUpdater >
YReader::ShlExplorer::mhMain
MenuHost mhMain
Definition: ShlExplorer.h:84
platform::KeyCodes::DS::L
Definition: Keys.h:227
YReader::ShlExplorer::btnSwitchSub
SwitchScreensButton btnSwitchSub
Definition: ShlExplorer.h:90
YReader::SystemInformationPanel
系统信息面板。
Definition: About.h:69
YSLib::UI::Button
按钮。
Definition: Button.h:127
YReader::ShlExplorer::btnSwitchMain
SwitchScreensButton btnSwitchMain
Definition: ShlExplorer.h:90
YReader
Definition: About.h:33
YReader::ShlExplorer::OnPaint
void OnPaint() override
处理绘制消息：更新到屏幕并刷新 FPS 。
Definition: ShlExplorer.cpp:610
platform::KeyCodes::DS::R
Definition: Keys.h:226
YReader::ShlExplorer::tpDefault
TextPlaceholder tpDefault
Definition: ShlExplorer.h:88
YReader::SwitchScreensButton::~SwitchScreensButton
~SwitchScreensButton() override
虚析构：类定义外默认实现。
YReader::SwitchScreensButton::SwitchScreensButton
SwitchScreensButton(ShlDS &, const Point &)
Definition: ShlExplorer.cpp:232
YCL_KEY
#define YCL_KEY(X)
Definition: Input.h:45
YReader::ShlExplorer::p_ChkFPS
CheckButton * p_ChkFPS
Definition: ShlExplorer.h:66
YReader::ShlExplorer::pnlSysInfo
SystemInformationPanel pnlSysInfo
Definition: ShlExplorer.h:82
YReader::ShlExplorer::dynWgts_Sub
DynamicWidget dynWgts_Sub
Definition: ShlExplorer.h:78
platform::KeyInput
std::bitset< KeyBitsetWidth > KeyInput
按键并行位宽。
Definition: Keys.h:67
YReader::ShlExplorer::p_m1
unique_ptr< Menu > p_m1
Definition: ShlExplorer.h:74
YReader::SwitchScreensButton::shell
lref< ShlDS > shell
Definition: ShlExplorer.h:49
YSLib::UI::MenuHost
菜单宿主。
Definition: Menu.h:197
About.h
关于界面。
YReader::FetchDefaultShellDirectory
IO::Path FetchDefaultShellDirectory()
取默认 Shell 起始路径。
Definition: ShlExplorer.cpp:222
YSLib::Drawing::Point
GBinaryGroup< SPos > Point
屏幕二维点（直角坐标表示）。
Definition: YGDIBase.h:278
YReader::ShlExplorer
Definition: ShlExplorer.h:62
YSLib::IO::Path
路径。
Definition: YSLib/Service/FileSystem.h:109
YReader::ShlExplorer::fpsCounter
FPSCounter fpsCounter
Definition: ShlExplorer.h:86
YReader::SwitchScreensButton
Definition: ShlExplorer.h:45
YReader::ShlExplorer::SwapMask
KeyInput SwapMask
切换屏幕的按键掩码。
Definition: ShlExplorer.h:96
YReader::ShlExplorer::pnlAbout
AboutPanel pnlAbout
Definition: ShlExplorer.h:80
YReader::ShlExplorer::rad
float rad
Definition: ShlExplorer.h:70
YReader::ShlExplorer::ani
GAnimationSession< InvalidationUpdater > ani
Definition: ShlExplorer.h:72
YReader::ShlExplorer::p_m0
unique_ptr< Menu > p_m0
Definition: ShlExplorer.h:74
YReader::ShlExplorer::dynWgts_Main
DynamicWidget dynWgts_Main
Definition: ShlExplorer.h:78
YSLib::FPSCounter
帧速率计数器。
Definition: ShellHelper.h:220
YReader::AboutPanel
关于窗体。
Definition: About.h:40