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