YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
标准矩形位图缓冲区。 更多...
#include <ygdi.h>
Public 成员函数 | |
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) |
设置内容。 | |
virtual void | SetSize (SDst, SDst) |
重新设置缓冲区大小。 | |
void | SetSizeSwap () |
交换宽和高;同时清除缓冲区。 | |
virtual void | ClearImage () const |
清除缓冲区。 | |
virtual BitmapBuffer * | Clone () const |
void | Swap (BitmapBuffer &buf) ynothrow |
const Graphics & | GetContext () const ynothrow |
额外继承的成员函数 | |
![]() | |
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
。
|
default |
无参数构造:默认实现。
YSLib::Drawing::BitmapBuffer::BitmapBuffer | ( | ConstBitmapPtr | , |
SDst | , | ||
SDst | |||
) |
构造:使用指定位图指针和大小。
YSLib::Drawing::BitmapBuffer::BitmapBuffer | ( | const BitmapBuffer & | ) |
YSLib::Drawing::BitmapBuffer::BitmapBuffer | ( | BitmapBuffer && | ) |
转移构造:转移资源。
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
void BitmapBuffer::SetContent | ( | ConstBitmapPtr | s, |
SDst | w, | ||
SDst | h | ||
) |
|
virtual |
重新设置缓冲区大小。
被 YSLib::Drawing::BitmapBufferEx 重载.
参考 ClearImage(),YSLib::Drawing::GetAreaOf(),std::swap(),YAssert,YB_UNLIKELY,ydelete_array,ynew , 以及 yunseq().
void BitmapBuffer::SetSizeSwap | ( | ) |
|
inline |