YSTest: ShlExplorer.h 源文件

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
37 class SwitchScreensButton : public Button
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:
51 CheckButton* p_ChkFPS{};
53 unique_ptr<BorderResizer> p_border{};
55 float rad = 0;
57 GAnimationSession<InvalidationUpdater> ani;
58
59 protected:
61 DynamicWidget dynWgts_Main, dynWgts_Sub;
63
64 unique_ptr<FrmAbout> pFrmAbout;
65 MenuHost mhMain;
66 FPSCounter fpsCounter;
68 SwitchScreensButton btnSwitchMain, btnSwitchSub;
75 KeyInput SwapMask = KeyInput().set(YCL_KEY(L)).set(YCL_KEY(R));
76
77 public:
84 ShlExplorer(const IO::Path& = IO::FetchCurrentWorkingDirectory(),
85 const shared_ptr<Desktop>& = {}, const shared_ptr<Desktop>& = {});
86
91 void
92 OnPaint() override;
93 };
94
95 } // namespace YReader;
96
97 #endif
98
YReader::ShlExplorer::dynWgts_Main
DynamicWidget dynWgts_Main
Definition: ShlExplorer.h:61
YReader::ShlExplorer::ani
GAnimationSession< InvalidationUpdater > ani
Definition: ShlExplorer.h:57
YSLib::UI::GAnimationSession
动画会话。
Definition: Animation.h:85
YReader::ShlExplorer::p_border
unique_ptr< BorderResizer > p_border
Definition: ShlExplorer.h:53
YSLib::UI::DynamicWidget
动态部件。
Definition: Loader.h:247
YReader::ShlExplorer
Definition: ShlExplorer.h:47
YSLib::UI::Button
按钮。
Definition: button.h:116
YSLib::IO::FetchCurrentWorkingDirectory
String FetchCurrentWorkingDirectory(size_t len)
Definition: YSLib/Service/FileSystem.cpp:113
About.h
关于界面。
YSLib::UI::MenuHost
菜单宿主。
Definition: menu.h:184
YReader::ShlExplorer::pFrmAbout
unique_ptr< FrmAbout > pFrmAbout
Definition: ShlExplorer.h:64
YReader::ShlExplorer::fpsCounter
FPSCounter fpsCounter
Definition: ShlExplorer.h:66
YSLib::Drawing::Point
GBinaryGroup< SPos > Point
屏幕二维点（直角坐标表示）。
Definition: ygdibase.h:235
YReader::ShlExplorer::p_ChkFPS
CheckButton * p_ChkFPS
Definition: ShlExplorer.h:51
YReader::ShlExplorer::OnPaint
void OnPaint() override
处理绘制消息：更新到屏幕并刷新 FPS 。
Definition: ShlExplorer.cpp:574
YSLib::FPSCounter
帧速率计数器。
Definition: ShellHelper.h:385
YSLib::IO::Path
路径。
Definition: YSLib/Service/FileSystem.h:75
YReader::SwitchScreensButton::shell
std::reference_wrapper< ShlDS > shell
Definition: ShlExplorer.h:40
YReader::ShlExplorer::dynWgts_Sub
DynamicWidget dynWgts_Sub
Definition: ShlExplorer.h:61
YReader::ShlExplorer::ShlExplorer
ShlExplorer(const IO::Path &=IO::FetchCurrentWorkingDirectory(), const shared_ptr< Desktop > &={}, const shared_ptr< Desktop > &={})
构造：使用指定路径和上下桌面。
Definition: ShlExplorer.cpp:233
YCL_KEY
#define YCL_KEY(X)
Definition: Input.h:45
YReader::ShlExplorer::mhMain
MenuHost mhMain
Definition: ShlExplorer.h:65
YReader::ShlExplorer::btnSwitchMain
SwitchScreensButton btnSwitchMain
Definition: ShlExplorer.h:69
YSLib::UI::CheckButton
复选按钮。
Definition: Selector.h:202
platform::KeyInput
std::bitset< KeyBitsetWidth > KeyInput
按键并行位宽。
Definition: Keys.h:68
YReader::ShlExplorer::btnSwitchSub
SwitchScreensButton btnSwitchSub
Definition: ShlExplorer.h:69
YReader::ShlExplorer::SwapMask
KeyInput SwapMask
切换屏幕的按键掩码。
Definition: ShlExplorer.h:75
YReader::SwitchScreensButton::SwitchScreensButton
SwitchScreensButton(ShlDS &, const Point &)
Definition: ShlExplorer.cpp:220
YReader::ShlExplorer::rad
float rad
Definition: ShlExplorer.h:55
YReader::SwitchScreensButton
Definition: ShlExplorer.h:37