YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
扩展的标准矩形位图缓冲区。 更多...
#include <ygdi.h>
Public 成员函数 | |
BitmapBufferEx () | |
无参数构造。 | |
BitmapBufferEx (ConstBitmapPtr, SDst, SDst) | |
构造:使用指定位图指针和大小。 | |
BitmapBufferEx (const BitmapBufferEx &) | |
BitmapBufferEx (BitmapBufferEx &&) ynothrow | |
转移构造:转移资源。 | |
~BitmapBufferEx () override | |
析构:释放资源。 | |
BitmapBufferEx & | operator= (const BitmapBufferEx &buf) |
BitmapBufferEx & | operator= (BitmapBufferEx &&buf) ynothrow |
u8 * | GetBufferAlphaPtr () const ynothrow |
取 Alpha 缓冲区的指针。 | |
size_t | GetSizeOfBufferAlpha () const ynothrow |
取 Alpha 缓冲区占用空间。 | |
void | SetSize (SDst, SDst) override |
重新设置缓冲区大小。 | |
void | ClearImage () const override |
清除缓冲区。 | |
BitmapBufferEx * | Clone () const override |
void | Swap (BitmapBufferEx &buf) ynothrow |
![]() | |
BitmapBuffer ()=default | |
无参数构造:默认实现。 | |
BitmapBuffer (ConstBitmapPtr, SDst, SDst) | |
构造:使用指定位图指针和大小。 | |
BitmapBuffer (const BitmapBuffer &) | |
BitmapBuffer (BitmapBuffer &&) ynothrow | |
转移构造:转移资源。 | |
virtual | ~BitmapBuffer () |
析构:释放资源。 | |
BitmapBuffer & | operator= (const BitmapBuffer &buf) |
BitmapBuffer & | operator= (BitmapBuffer &&buf) ynothrow |
void | SetContent (ConstBitmapPtr, SDst, SDst) |
设置内容。 | |
void | SetSizeSwap () |
交换宽和高;同时清除缓冲区。 | |
void | Swap (BitmapBuffer &buf) ynothrow |
const Graphics & | GetContext () const ynothrow |
Protected 属性 | |
u8 * | pBufferAlpha |
Alpha 缓冲区指针。 | |
额外继承的成员函数 | |
![]() | |
yconstfn | Graphics (BitmapPtr b={}, const Size &s={}) ynothrow |
构造:使用指定位图指针和大小。 | |
yconstfn | Graphics (const Graphics &g) ynothrow |
复制构造:浅复制。 | |
~Graphics () | |
析构:空实现。 | |
bool | operator! () const ynothrow |
判断无效性。 | |
BitmapPtr | operator[] (size_t) const ynothrow |
取指定行首元素指针。 | |
operator bool () const ynothrow | |
判断有效性。 | |
BitmapPtr | GetBufferPtr () const ynothrow |
const Size & | GetSize () const ynothrow |
SDst | GetWidth () const ynothrow |
SDst | GetHeight () const ynothrow |
size_t | GetSizeOfBuffer () const ynothrow |
取缓冲区占用空间。 | |
BitmapPtr | at (size_t) const ythrow(GeneralEvent |
取指定行首元素指针。 | |
![]() | |
static const Graphics | Invalid |
无效图形接口上下文。 | |
扩展的标准矩形位图缓冲区。
std::is_nothrow_move_constructible<T>::value && std::is_nothrow_move_assignable<T>::value
。 YSLib::Drawing::BitmapBufferEx::BitmapBufferEx | ( | ConstBitmapPtr | , |
SDst | , | ||
SDst | |||
) |
构造:使用指定位图指针和大小。
YSLib::Drawing::BitmapBufferEx::BitmapBufferEx | ( | const BitmapBufferEx & | ) |
YSLib::Drawing::BitmapBufferEx::BitmapBufferEx | ( | BitmapBufferEx && | ) |
转移构造:转移资源。
|
inlineoverride |
|
overridevirtual |
清除缓冲区。
重载 YSLib::Drawing::BitmapBuffer .
参考 YSLib::Drawing::ClearPixel(),YSLib::Drawing::GetAreaOf(),YSLib::Drawing::Graphics::pBuffer,pBufferAlpha , 以及 YSLib::Drawing::Graphics::size.
参考自 DualScreenReader::Reset() , 以及 SetSize().
|
inlineoverridevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
overridevirtual |
重新设置缓冲区大小。
重载 YSLib::Drawing::BitmapBuffer .
参考 ClearImage(),YSLib::Drawing::GetAreaOf(),YSLib::Drawing::Graphics::GetSize(),h,YSLib::Drawing::Size::Height,YSLib::Drawing::Graphics::pBuffer,pBufferAlpha,YSLib::Drawing::Graphics::size,std::swap(),w,YSLib::Drawing::Size::Width,YAssert,YB_UNLIKELY,ydelete_array , 以及 ynew.
参考自 DualScreenReader::Stretch().
|
inline |
|
protected |
Alpha 缓冲区指针。
参考自 ClearImage(),YSLib::Drawing::TextRegion::ClearLine(),YSLib::Drawing::TextRegion::Scroll() , 以及 SetSize().