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

宿主窗口。 更多...

#include <Win32GUI.h>

类 platform_ex::Windows::HostWindow 继承关系图:
platform_ex::Windows::HostWindow 的协作图:

Public 成员函数

 HostWindow (NativeWindowHandle)
 
 DefDelMoveCtor (HostWindow) virtual ~HostWindow()
 
 HostWindow (NativeWindowHandle)
 
 DefDelMoveCtor (HostWindow) virtual ~HostWindow()
 
virtual void OnDestroy ()
 
virtual void OnLostFocus ()
 
virtual void OnPaint ()
 

Public 属性

std::atomic< bool > BoundsLimited {false}
 限制指针设备响应在窗口边界内。 更多...
 
std::map<::UINT, YSLib::GEvent
< void(::WPARAM,::LPARAM)> > 
MessageMap
 窗口消息转发事件映射。 更多...
 

额外继承的成员函数

- Private 成员函数 继承自 platform_ex::Windows::WindowReference
 WindowReference (NativeWindowHandle h={})
 
 DefDeCopyCtor (WindowReference) WindowReference(WindowReference &&r) ynothrow
 
YSLib::Drawing::Point GetLocation () const
 
void SetClientBounds (const YSLib::Drawing::Rect &)
 
void SetOpacity (YSLib::Drawing::AlphaType)
 设置不透明度。 更多...
 
void SetText (const wchar_t *)
 设置标题栏文字。 更多...
 
void Close ()
 
void Invalidate ()
 无效化窗口客户区。 更多...
 
void Move (const YSLib::Drawing::Point &)
 移动窗口。 更多...
 
void Resize (const YSLib::Drawing::Size &)
 调整窗口大小。 更多...
 
void ResizeClient (const YSLib::Drawing::Size &)
 按客户区调整窗口大小。 更多...
 
bool Show () ynothrow
 显示窗口。 更多...
 
 WindowReference (NativeWindowHandle h={})
 
DefDeMoveCtor(WindowReference)
YSLib YSLib::Drawing::Point 
GetClientLocation () const
 
YSLib::Drawing::Size GetClientSize () const
 
YSLib::Drawing::Point GetLocation () const
 
void SetClientBounds (const YSLib::Drawing::Rect &)
 
void SetOpacity (YSLib::Drawing::AlphaType)
 设置不透明度。 更多...
 
void SetText (const wchar_t *)
 设置标题栏文字。 更多...
 
void Close ()
 
void Invalidate ()
 无效化窗口客户区。 更多...
 
void Move (const YSLib::Drawing::Point &)
 移动窗口。 更多...
 
void Resize (const YSLib::Drawing::Size &)
 调整窗口大小。 更多...
 
void ResizeClient (const YSLib::Drawing::Size &)
 按客户区调整窗口大小。 更多...
 
bool Show () ynothrow
 显示窗口。 更多...
 
YSLib::Drawing::Rect GetClientBounds () const
 
YSLib::Drawing::Point GetClientLocation () const
 
YSLib::Drawing::Size GetClientSize () const
 
- Private 成员函数 继承自 ystdex::noncopyable
 noncopyable (const noncopyable &)=delete
 禁止复制构造。 更多...
 
noncopyableoperator= (const noncopyable &)=delete
 禁止赋值复制。 更多...
 
 noncopyable ()=default
 protected 构造:默认实现。 更多...
 
 ~noncopyable ()=default
 protected 析构:默认实现。 更多...
 
- Private 属性 继承自 platform_ex::Windows::WindowReference
NativeWindowHandle hWindow
 

详细描述

宿主窗口。

自从
build 429

在文件 include/YCLib/Win32GUI.h419 行定义.

构造及析构函数说明

platform_ex::Windows::HostWindow::HostWindow ( NativeWindowHandle  h)
异常
LoggedEvent窗口类名不是 WindowClassName 。

在文件 Win32GUI.cpp390 行定义.

参考 ystdex::arrlen(), platform_ex::Windows::WindowReference::hWindow, MessageMap, YSLib::PostQuitMessage(), platform_ex::Windows::WindowClassName, YAssert, YB_UNLIKELY , 以及 YF_Raise_Win32Exception.

函数调用图:

platform_ex::Windows::HostWindow::HostWindow ( NativeWindowHandle  )
异常
LoggedEvent窗口类名不是 WindowClassName 。

成员函数说明

platform_ex::Windows::HostWindow::DefDelMoveCtor ( HostWindow  )
platform_ex::Windows::HostWindow::DefDelMoveCtor ( HostWindow  )
virtual void platform_ex::Windows::HostWindow::OnDestroy ( )
virtual
virtual void platform_ex::Windows::HostWindow::OnLostFocus ( )
virtual
virtual void platform_ex::Windows::HostWindow::OnPaint ( )
virtual

类成员变量说明

std::atomic< bool > platform_ex::Windows::HostWindow::BoundsLimited {false}

限制指针设备响应在窗口边界内。

自从
build 427
Bug:
必须支持 std::atomic
自从
build 427

在文件 include/YCLib/Win32GUI.h426 行定义.

std::map<::UINT, YSLib::GEvent<void(::WPARAM, ::LPARAM)> > platform_ex::Windows::HostWindow::MessageMap

窗口消息转发事件映射。

自从
build 488

在文件 include/YCLib/Win32GUI.h432 行定义.

参考自 HostWindow().


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