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

Windows 平台扩展接口。 更多...

class  GSurface
 显式区域表面:储存显式区域上的二维图形绘制状态。 更多...
 
class  HostWindow
 宿主窗口。 更多...
 
class  RegisterKey
 注册表键。 更多...
 
class  ScreenBuffer
 虚拟屏幕缓存。 更多...
 
class  Win32Exception
 Win32 错误引起的宿主异常。 更多...
 
class  WindowClass
 窗口类。 更多...
 
class  WindowDeviceContext
 窗口设备上下文。 更多...
 
class  WindowDeviceContextBase
 
class  WindowMemorySurface
 窗口内存表面:储存窗口上的二维图形绘制状态。 更多...
 
class  WindowReference
 本机窗口引用。 更多...
 
class  WindowRegionDeviceContext
 窗口区域设备上下文。 更多...
 

函数

YF_API bool CheckWine ()
 判断是否在 Wine 环境下运行。 更多...
 
YF_API std::string MBCSToMBCS (const char *, std::size_t, int=CP_UTF8, int=CP_ACP)
 转换第一个 int 参数指定编码的字符串为第二个 int 参数指定的编码。 更多...
 
 RegisterKey (::HKEY h_parent, const wchar_t *key)
 注册表键。 更多...
 
 ~RegisterKey ()
 
 DefGetter (const ynothrow,::HKEY, Key, h_key)}
 
YF_API NativeWindowHandle CreateNativeWindow (const wchar_t *, const YSLib::Drawing::Size &, const wchar_t *=L"",::DWORD=WS_POPUP,::DWORD=WS_EX_LTRREADING)
 按指定窗口类名、客户区大小、标题文本、样式和附加样式创建本机顶层窗口。 更多...
 
 err (ec)
 
std::string WCSToMBCS (const wchar_t *str, std::size_t len, int cp)
 
std::wstring MBCSToWCS (const char *str, std::size_t len, int cp)
 
 hBitmap (sbuf.hBitmap)
 
YF_API std::string UTF8ToMBCS (const char *, std::size_t, int=CP_ACP)
 
std::string UTF8ToMBCS (const char *str, int cp=CP_ACP)
 
std::string UTF8ToMBCS (const std::string &str, int cp=CP_ACP)
 
std::string WCSToMBCS (const wchar_t *str, int cp=CP_ACP)
 
std::string WCSToMBCS (const std::wstring &str, int cp=CP_ACP)
 
std::wstring MBCSToWCS (const char *str, int cp=CP_ACP)
 
std::wstring MBCSToWCS (const std::string &str, int cp=CP_ACP)
 
void UpdateFrom (YSLib::Drawing::BitmapPtr) ynothrow
 
void UpdatePremultipliedTo (NativeWindowHandle, YSLib::Drawing::AlphaType=0xFF, const YSLib::Drawing::Point &={}) ynothrow
 
void UpdateTo (NativeWindowHandle, const YSLib::Drawing::Point &={}) ynothrow
 

变量

yconstexpr wchar_t WindowClassName [] {L"YFramework Window"}
 
Win32Exception::Win32Exception(ErrorCode
ec, const std::string &s,
LevelType l) ynothrow 
catch (...)
 
return s
 
 l
 

详细描述

Windows 平台扩展接口。

自从
build 427

函数说明

YF_API bool platform_ex::Windows::CheckWine ( )

判断是否在 Wine 环境下运行。

注解
检查 HKEY_CURRENT_USER 和 HKEY_LOCAL_MACHINE 下的 Software 键实现。
自从
build 435

在文件 MinGW32.cpp80 行定义.

参考 yunused.

YF_API NativeWindowHandle platform_ex::Windows::CreateNativeWindow ( const wchar_t *  ,
const YSLib::Drawing::Size ,
const wchar_t *  = L"",
::DWORD  = WS_POPUP,
::DWORD  = WS_EX_LTRREADING 
)

按指定窗口类名、客户区大小、标题文本、样式和附加样式创建本机顶层窗口。

自从
build 430

在文件 Win32GUI.cpp222 行定义.

参考 YSLib::Drawing::Size::Height , 以及 YSLib::Drawing::Size::Width.

platform_ex::Windows::err ( ec  )

在文件 MinGW32.cpp51 行定义.

参考 YAssert.

参考自 YSLib::Drawing::NativeFontSize::NativeFontSize().

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

platform_ex::Windows::hBitmap ( sbuf.  hBitmap)

在文件 Win32GUI.cpp248 行定义.

参考自 platform_ex::Windows::ScreenBuffer::swap().

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

platform_ex::Windows::ScreenRegionBuffer ( const YSLib::Drawing::Size s)
related

虚拟屏幕区域缓存。

自从
build 445
注解
像素格式和 platform::PixelType 兼容。
自从
build 435

在文件 E/include/YCLib/Win32GUI.h235 行定义.

void platform_ex::Windows::UpdateFrom ( YSLib::Drawing::BitmapPtr  )
前置条件
间接断言:参数非空。
void platform_ex::Windows::UpdatePremultipliedTo ( NativeWindowHandle  ,
YSLib::Drawing::AlphaType  = 0xFF,
const YSLib::Drawing::Point = {} 
)
自从
build 435

在文件 Win32GUI.cpp313 行定义.

参考 platform_ex::Windows::WindowMemorySurface::UpdatePremultiplied().

函数调用图:

void platform_ex::Windows::UpdateTo ( NativeWindowHandle  ,
const YSLib::Drawing::Point = {} 
)

变量说明

Win32Exception::Win32Exception (ErrorCode ec, const std::string& s, LevelType l) ynothrow platform_ex::Windows::catch(...)

在文件 MinGW32.cpp47 行定义.

yconstexpr wchar_t platform_ex::Windows::WindowClassName {L"YFramework Window"}