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

Shell 助手模块。 更多...

#include "../ysbuild.h"
#include <ystdex/cast.hpp>
#include "YCLib/Debug.h"
#include "YSLib/Service/ytimer.h"
#include "YSLib/UI/textlist.h"
ShellHelper.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

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 助手模块。

版本
r1620
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 278
创建时间:
2010-03-14 14:07:22 +0800
修改时间:
2013-04-13 13:54 +0800
文本编码:
UTF-8
模块名称:
Helper::ShellHelper

在文件 ShellHelper.h 中定义.

宏定义说明

#define YSL_DEBUG_DECL_TIMER (   _name,
  ... 
)    DebugTimer _name(__VA_ARGS__);

在文件 ShellHelper.h55 行定义.

类型定义说明

typedef std::pair<Encoding, const ucs2_t*> EncodingInfoItem

编码信息项目。

自从
build 307

在文件 ShellHelper.h116 行定义.

函数说明

YF_API shared_ptr<UI::TextList::ListType> FetchFontFamilyNames ( )

取字型家族名称。

自从
build 307

在文件 ShellHelper.cpp122 行定义.

参考 FetchDefaultFontCache(),ystdex::get_key , 以及 ystdex::share_raw().

函数调用图:

template<class _tWidget >
void SetBufferRendererAndText ( _tWidget &  wgt,
const String &  s 
)
inline

设置部件渲染器为 BufferedRenderer 及部件的 Text 成员。

自从
build 301

在文件 ShellHelper.h520 行定义.

YF_API void SwitchVisible ( IWidget &  )

切换部件显示状态并无效化。

自从
build 229

在文件 ShellHelper.cpp162 行定义.

参考 YSLib::UI::Invalidate(),YSLib::UI::IsVisible() , 以及 YSLib::UI::SetVisibleOf().

参考自 GetDesktopDownHandle().

函数调用图:

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

template<typename _type >
string to_string ( const GBinaryGroup< _type > &  val)

转换为字符串。

自从
build 308

在文件 ShellHelper.h96 行定义.

参考 ystdex::to_string().

函数调用图:

YF_API string to_string ( const Size &  )

在文件 ShellHelper.cpp54 行定义.

参考 ystdex::to_string().

函数调用图:

YF_API string to_string ( const Rect &  )

在文件 ShellHelper.cpp61 行定义.

参考 ystdex::to_string().

函数调用图:

变量说明

初始值:
= {{CharSet::UTF_8, u"UTF-8"},
{CharSet::GBK, u"GBK"}, {CharSet::UTF_16BE, u"UTF-16 Big Endian"},
{CharSet::UTF_16LE, u"UTF-16 Little Endian"},
{CharSet::UTF_32BE, u"UTF-32 Big Endian"},
{CharSet::UTF_32LE, u"UTF-16 Little Endian"}}

编码信息。

自从
build 307

在文件 ShellHelper.h122 行定义.

参考自 FetchEncodingString() , 以及 ShlTextReader::SettingSession::SettingSession().