|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
Shell 助手模块。 更多...
#include "../ysbuild.h"#include <ystdex/cast.hpp>#include "YCLib/Debug.h"#include "YSLib/Service/ytimer.h"#include "YSLib/UI/textlist.h"

类 | |
| class | DebugTimer |
| 调试计时器。 更多... | |
| class | GShellSession< _tShell, _tConnection > |
| Shell 连接会话。 更多... | |
| class | FPSCounter |
| 帧速率计数器。 更多... | |
| struct | ContainerSetter |
| 序列设置仿函数。 更多... | |
| struct | ChildPainter |
| 子部件绘制仿函数。 更多... | |
宏定义 | |
| #define | YSL_DEBUG_DECL_TIMER(_name,...) DebugTimer _name(__VA_ARGS__); |
类型定义 | |
| typedef std::pair< Encoding, const ucs2_t * > | EncodingInfoItem |
| 编码信息项目。 | |
函数 | |
| YF_API shared_ptr < UI::TextList::ListType > | FetchFontFamilyNames () |
| 取字型家族名称。 | |
| YF_API void | SwitchVisible (IWidget &) |
| 切换部件显示状态并无效化。 | |
| template<class _tWidget > | |
| void | SetBufferRendererAndText (_tWidget &wgt, const String &s) |
| 设置部件渲染器为 BufferedRenderer 及部件的 Text 成员。 | |
| template<typename _type > | |
| string | to_string (const GBinaryGroup< _type > &val) |
| 转换为字符串。 | |
| YF_API string | to_string (const Size &) |
| YF_API string | to_string (const Rect &) |
| template<class _type , class _tHandle > | |
| _type & | HandleToReference (_tHandle h) ythrow(std |
| 句柄转换:对象引用。 | |
| template<class _tShell > | |
| _tShell & | FetchShell () |
| 取指定 Shell 句柄对应的 Shell 引用 。 | |
| template<class _tShl > | |
| shared_ptr< Shell > | FetchStored () |
| 取全局 Shell 句柄。 | |
| template<class _tShl > | |
| void | ReleaseStored () |
| 释放全局 Shell 。 | |
| bool | IsNowShell (const shared_ptr< Shell > &hShl) |
| 判断句柄指定的 Shell 是否为当前线程空间中运行的 Shell 。 | |
| errno_t | NowShellTo (const shared_ptr< Shell > &hShl) |
| 向句柄指定的 Shell 对象转移线程控制权。 | |
| template<class _tShl > | |
| errno_t | NowShellToNew () |
| 向新建 Shell 对象转移控制权。 | |
| template<class _tShl > | |
| errno_t | NowShellToStored () |
| 向全局 Shell 管理器的对象转移控制权。 | |
| void | SetShellTo (const shared_ptr< Shell > &hShl, Messaging::Priority prior=0x80) |
| 通过主消息队列向指定 Shell 对象转移控制权。 | |
| template<class _tShl > | |
| void | SetShellToNew () |
| 通过主消息队列向新建 Shell 对象转移控制权。 | |
| template<class _tShl > | |
| void | SetShellToStored () |
| 通过主消息队列向全局 Shell 管理器内的对象转移控制权。 | |
| template<class _tShl > | |
| void | CallStoredAtOnce () |
| 封装向全局 Shell 管理器内的对象转移控制权。 | |
| template<class _tShl > | |
| void | CallStored () |
| 封装通过消息队列向全局 Shell 管理器内的对象转移控制权。 | |
| void | ResetDesktop (Desktop &dsk, Devices::Screen &scr) |
| 复位桌面。 | |
| Color | GenerateRandomColor () |
| template<typename _tOut , typename _tGen > | |
| void | ScrDraw (_tOut buf, _tGen &&f) |
| 全屏幕描点。 | |
| shared_ptr< Image > | CreateSharedScreenImage (ConstBitmapPtr p) |
| 新建屏幕图像。 | |
| template<typename _tPixel > | |
| _tPixel * | CreateRawBitmap (const _tPixel *s, size_t n) |
| 使用 new 分配空间并复制无压缩位图。 | |
| YF_API void | RemoveGlobalTasks () |
| 从全局消息队列中移除所有后台消息。 | |
| yconstexpr const char * | DefaultTimeFormat ("%04u-%02u-%02u %02u:%02u:%02u") |
| 默认时间格式字符串。 | |
| YF_API const char * | TranslateTime (const std::tm &, const char *=DefaultTimeFormat) |
| 格式化时间字符串。 | |
| YF_API const char * | TranslateTime (const std::time_t &, const char *=DefaultTimeFormat) ythrow(GeneralEvent) |
变量 | |
| yconstexpr EncodingInfoItem | Encodings [] |
| 编码信息。 | |
Shell 助手模块。
在文件 ShellHelper.h 中定义.
| #define YSL_DEBUG_DECL_TIMER | ( | _name, | |
| ... | |||
| ) | DebugTimer _name(__VA_ARGS__); |
在文件 ShellHelper.h 第 55 行定义.
| typedef std::pair<Encoding, const ucs2_t*> EncodingInfoItem |
| YF_API shared_ptr<UI::TextList::ListType> FetchFontFamilyNames | ( | ) |
取字型家族名称。
在文件 ShellHelper.cpp 第 122 行定义.
参考 FetchDefaultFontCache(),ystdex::get_key , 以及 ystdex::share_raw().

|
inline |
| YF_API void SwitchVisible | ( | IWidget & | ) |
切换部件显示状态并无效化。
在文件 ShellHelper.cpp 第 162 行定义.
参考 YSLib::UI::Invalidate(),YSLib::UI::IsVisible() , 以及 YSLib::UI::SetVisibleOf().


| string to_string | ( | const GBinaryGroup< _type > & | val | ) |
| YF_API string to_string | ( | const Size & | ) |
| YF_API string to_string | ( | const Rect & | ) |
| yconstexpr EncodingInfoItem Encodings[] |
编码信息。
在文件 ShellHelper.h 第 122 行定义.
参考自 FetchEncodingString() , 以及 ShlTextReader::SettingSession::SettingSession().