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

虚拟屏幕缓存。 更多...

#include <Win32GUI.h>

platform_ex::Windows::ScreenBuffer 的协作图:

Public 成员函数

 ScreenBuffer (const YSLib::Drawing::Size &)
 
 ScreenBuffer (ScreenBuffer &&) ynothrow
 
 ~ScreenBuffer ()
 
ScreenBufferoperator= (ScreenBuffer &&)
 
void swap (ScreenBuffer &) ynothrow
 
 ScreenBuffer (const YSLib::Drawing::Size &)
 
 ScreenBuffer (ScreenBuffer &&) ynothrow
 
 ~ScreenBuffer ()
 
ScreenBufferoperator= (ScreenBuffer &&)
 
void swap (ScreenBuffer &) ynothrow
 
 DefGetter (const ynothrow, YSLib::Drawing::BitmapPtr, BufferPtr, pBuffer) DefGetter(const ynothrow
 
void UpdateFrom (YSLib::Drawing::BitmapPtr) ynothrow
 从缓冲区更新。 更多...
 

Protected 属性

YSLib::Drawing::BitmapPtr pBuffer
 
::HBITMAP hBitmap
 

Private 属性

YSLib::Drawing::Size size
 

相关函数

(请注意: 这些不是成员函数.)

 ScreenRegionBuffer (const YSLib::Drawing::Size &s)
 虚拟屏幕区域缓存。 更多...
 
 NativeHandle
 
hBitmap DefGetter(const
ynothrow, const
YSLib::Drawing::Size &, Size,
size) void Premultiply(YSLib
void 
Resize (const YSLib::Drawing::Size &)
 从缓冲区更新并按 Alpha 预乘。 更多...
 
 DefGetter (const ynothrow, YSLib::Drawing::BitmapPtr, BufferPtr, pBuffer) DefGetter(const ynothrow
 
void UpdateFrom (YSLib::Drawing::BitmapPtr) ynothrow
 从缓冲区更新。 更多...
 

详细描述

虚拟屏幕缓存。

警告
非虚析构。
注解
像素格式和 platform::PixelType 兼容。
自从
build 445

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

构造及析构函数说明

platform_ex::Windows::ScreenBuffer::ScreenBuffer ( const YSLib::Drawing::Size s)
platform_ex::Windows::ScreenBuffer::ScreenBuffer ( ScreenBuffer &&  )
自从
build 386
platform_ex::Windows::ScreenBuffer::~ScreenBuffer ( )

在文件 Win32GUI.cpp252 行定义.

参考 hBitmap.

platform_ex::Windows::ScreenBuffer::ScreenBuffer ( const YSLib::Drawing::Size )
platform_ex::Windows::ScreenBuffer::ScreenBuffer ( ScreenBuffer &&  )
自从
build 386
platform_ex::Windows::ScreenBuffer::~ScreenBuffer ( )

成员函数说明

platform_ex::Windows::ScreenBuffer::DefGetter ( const ynothrow  ,
YSLib::Drawing::BitmapPtr  ,
BufferPtr  ,
pBuffer   
) const
自从
build 386
platform_ex::Windows::ScreenBuffer::DefGetter ( const ynothrow  ,
YSLib::Drawing::BitmapPtr  ,
BufferPtr  ,
pBuffer   
) const
自从
build 386
ScreenBuffer& platform_ex::Windows::ScreenBuffer::operator= ( ScreenBuffer &&  )
自从
build 445
ScreenBuffer & platform_ex::Windows::ScreenBuffer::operator= ( ScreenBuffer &&  sbuf)
自从
build 445

在文件 Win32GUI.cpp258 行定义.

参考 swap().

函数调用图:

void platform_ex::Windows::ScreenBuffer::swap ( ScreenBuffer )
void platform_ex::Windows::ScreenBuffer::swap ( ScreenBuffer sbuf)

在文件 Win32GUI.cpp296 行定义.

参考 platform_ex::Windows::hBitmap() , 以及 ystdex::swap().

参考自 operator=().

函数调用图:

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

void platform_ex::Windows::ScreenBuffer::UpdateFrom ( YSLib::Drawing::BitmapPtr  )

从缓冲区更新。

后置条件
::HBITMAP 的 rgbReserved 为 0 。
警告
直接复制,没有边界和大小检查。实际存储必须和 32 位 ::HBITMAP 兼容。
void platform_ex::Windows::ScreenBuffer::UpdateFrom ( YSLib::Drawing::BitmapPtr  p_buf)

从缓冲区更新。

前置条件
断言:参数非空。
后置条件
::HBITMAP 的 rgbReserved 为 0 。
警告
直接复制,没有边界和大小检查。实际存储必须和 32 位 ::HBITMAP 兼容。

在文件 Win32GUI.cpp287 行定义.

参考 YAssertNonnull.

友元及相关函数文档

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

虚拟屏幕区域缓存。

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

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

类成员变量说明

HBITMAP platform_ex::Windows::ScreenBuffer::hBitmap
protected

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

参考自 ~ScreenBuffer().

platform_ex::Windows::ScreenBuffer::NativeHandle

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

YSLib::Drawing::BitmapPtr platform_ex::Windows::ScreenBuffer::pBuffer
protected

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

参考自 ScreenBuffer().

void platform_ex::Windows::ScreenBuffer::Resize

从缓冲区更新并按 Alpha 预乘。

后置条件
::HBITMAP 的 rgbReserved 为 0 。
警告
直接复制,没有边界和大小检查。实际存储必须和 32 位 ::HBITMAP 兼容。
自从
build 435

重新设置大小。

注解
当大小一致时无操作,否则重新分配,可导致 pBuffer 和 hBitmap 值改变。
自从
build 445

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

YSLib::Drawing::Size platform_ex::Windows::ScreenBuffer::size
private
自从
build 386

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

参考自 ScreenBuffer().


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