YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ShlExplorer类 参考

#include <ShlExplorer.h>

类 ShlExplorer 继承关系图:
ShlExplorer 的协作图:

Public 成员函数

 ShlExplorer (const IO::Path &=IO::GetNowDirectory(), const shared_ptr< Desktop > &={}, const shared_ptr< Desktop > &={})
 构造:使用指定路径和上下桌面。
 
void OnPaint () override
 处理绘制消息:更新到屏幕并刷新 FPS 。
 
- Public 成员函数 继承自 ShlDS
 ShlDS (const shared_ptr< Desktop > &={}, const shared_ptr< Desktop > &={})
 构造:使用指定上下桌面。
 
 DefGetter (const ynothrow, const shared_ptr< Desktop > &, DesktopUpHandle, desktop_up_ptr) DefGetter(const ynothrow
 
const shared_ptr< Desktop >
desktop_down_ptr 
DefGetter (const ynothrow, Desktop &, DesktopUp,*desktop_up_ptr) DefGetter(const ynothrow
 
const shared_ptr< Desktop >
desktop_down_ptr Desktop
*desktop_down_ptr void 
OnGotMessage (const Message &) override
 消息处理函数。
 
void OnInput () override
 处理输入消息:发送绘制消息。
 

Protected 属性

Label lblTitle
 
Label lblPath
 
Label lblInfo
 信息标签:说明用户操作内容等。
 
FileBox fbMain
 
Button btnTest
 
Button btnOK
 
Button btnMenu
 
DialogPanel pnlSetting
 
CheckButton cbHex
 
CheckButton cbFPS
 
CheckButton cbPreview
 复选按钮:指定开启切换背景时的预览。
 
Label lblDragTest
 
Button btnEnterTest
 
Button btnTestEx
 
Button btnPrevBackground
 
Button btnNextBackground
 
unique_ptr< FrmAboutpFrmAbout
 
MenuHost mhMain
 
FPSCounter fpsCounter
 
- Protected 属性 继承自 ShlDS
bool bUpdateUp
 指定当前桌面是否需要更新。
 
bool bUpdateDown
 

Private 成员函数

IWidget * GetBoundControlPtr (const KeyInput &)
 

额外继承的成员函数

- Public 属性 继承自 ShlDS
const shared_ptr< Desktop > DesktopDownHandle
 
const shared_ptr< Desktop >
desktop_down_ptr Desktop 
DesktopDown
 

详细描述

在文件 ShlExplorer.h35 行定义.

构造及析构函数说明

ShlExplorer::ShlExplorer ( const IO::Path path = IO::GetNowDirectory(),
const shared_ptr< Desktop > &  h_dsk_up = {},
const shared_ptr< Desktop > &  h_dsk_dn = {} 
)

构造:使用指定路径和上下桌面。

前置条件
第一参数为合法路径。
参见
ShlDS::ShlDS
自从
build 395

在文件 ShlExplorer.cpp123 行定义.

成员函数说明

IWidget * ShlExplorer::GetBoundControlPtr ( const KeyInput &  k)
private

在文件 ShlExplorer.cpp389 行定义.

参考 platform::KeyCodes::A,btnOK,btnTest,platform::KeyCodes::X , 以及 YCL_KEY.

参考自 GetDesktopDownHandle().

这是这个函数的调用关系图:

void ShlExplorer::OnPaint ( )
override

处理绘制消息:更新到屏幕并刷新 FPS 。

自从
build 289

在文件 ShlExplorer.cpp363 行定义.

参考 platform::ColorSpace::Blue,ShlDS::bUpdateUp,cbFPS,YSLib::Drawing::DefaultMargin(),YSLib::Drawing::DrawText(),FillRect(),fpsCounter,FPSCounter::Refresh(),platform::ColorSpace::White , 以及 yconstexpr.

函数调用图:

类成员变量说明

Button ShlExplorer::btnEnterTest
protected

在文件 ShlExplorer.h55 行定义.

Button ShlExplorer::btnMenu
protected

在文件 ShlExplorer.h47 行定义.

Button ShlExplorer::btnNextBackground
protected

在文件 ShlExplorer.h55 行定义.

Button ShlExplorer::btnOK
protected

在文件 ShlExplorer.h46 行定义.

参考自 GetBoundControlPtr().

Button ShlExplorer::btnPrevBackground
protected

在文件 ShlExplorer.h55 行定义.

Button ShlExplorer::btnTest
protected

在文件 ShlExplorer.h46 行定义.

参考自 GetBoundControlPtr().

Button ShlExplorer::btnTestEx
protected

在文件 ShlExplorer.h55 行定义.

CheckButton ShlExplorer::cbFPS
protected

在文件 ShlExplorer.h49 行定义.

参考自 OnPaint().

CheckButton ShlExplorer::cbHex
protected

在文件 ShlExplorer.h49 行定义.

CheckButton ShlExplorer::cbPreview
protected

复选按钮:指定开启切换背景时的预览。

在文件 ShlExplorer.h53 行定义.

FileBox ShlExplorer::fbMain
protected

在文件 ShlExplorer.h45 行定义.

FPSCounter ShlExplorer::fpsCounter
protected

在文件 ShlExplorer.h58 行定义.

参考自 OnPaint().

Label ShlExplorer::lblDragTest
protected

在文件 ShlExplorer.h54 行定义.

Label ShlExplorer::lblInfo
protected

信息标签:说明用户操作内容等。

在文件 ShlExplorer.h44 行定义.

Label ShlExplorer::lblPath
protected

在文件 ShlExplorer.h40 行定义.

Label ShlExplorer::lblTitle
protected
自从
build 363

在文件 ShlExplorer.h40 行定义.

MenuHost ShlExplorer::mhMain
protected

在文件 ShlExplorer.h57 行定义.

unique_ptr<FrmAbout> ShlExplorer::pFrmAbout
protected

在文件 ShlExplorer.h56 行定义.

DialogPanel ShlExplorer::pnlSetting
protected

在文件 ShlExplorer.h48 行定义.


该类的文档由以下文件生成: