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

二维图形接口上下文。 更多...

#include <ygdibase.h>

类 YSLib::Drawing::Graphics 继承关系图:
YSLib::Drawing::Graphics 的协作图:

Public 成员函数

 Graphics () ynothrow
 默认构造:使用空指针和大小。 更多...
 
yconstfn Graphics (BitmapPtr b, const Size &s={}) ynothrow
 构造:使用指定位图指针和大小。 更多...
 
yconstfn Graphics (const Graphics &g) ynothrow
 复制构造:浅复制。 更多...
 
 DefDeDtor (Graphics) PDefHOp(bool
 析构:默认实现。 更多...
 
const ynothrow ImplRet (!bool(*this)) BitmapPtr operator[](size_t) const ynothrow
 取指定行首元素指针。 更多...
 
 DefCvt (const ynothrow, bool, pBuffer &&sGraphics.Width!=0 &&sGraphics.Height!=0) DefGetter(const ynothrow
 判断有效性。 更多...
 
pBuffer DefGetter (const ynothrow, const Size &, Size, sGraphics) DefGetter(const ynothrow
 
pBuffer sGraphics Width DefGetter (const ynothrow, SDst, Height, sGraphics.Height) DefGetter(const ynothrow
 
pBuffer sGraphics Width sizeof (PixelType)*GetAreaOf(sGraphics)) BitmapPtr at(size_t) const ythrow(GeneralEvent
 < 取缓冲区占用空间。 更多...
 

Public 属性

 BitmapPtr
 
 BufferPtr
 
pBuffer SDst
 
pBuffer Width
 
pBuffer sGraphics Width size_t
 
pBuffer sGraphics Width SizeOfBuffer
 

静态 Public 属性

static const Graphics Invalid
 无效图形接口上下文。 更多...
 

Protected 属性

BitmapPtr pBuffer
 显示缓冲区指针。 更多...
 
Size sGraphics
 

详细描述

二维图形接口上下文。

警告
非虚析构。
自从
build 164

在文件 ygdibase.h721 行定义.

构造及析构函数说明

YSLib::Drawing::Graphics::Graphics ( )
inline

默认构造:使用空指针和大小。

自从
build 428

在文件 ygdibase.h743 行定义.

yconstfn YSLib::Drawing::Graphics::Graphics ( BitmapPtr  b,
const Size s = {} 
)
inlineexplicit

构造:使用指定位图指针和大小。

自从
build 428

在文件 ygdibase.h751 行定义.

yconstfn YSLib::Drawing::Graphics::Graphics ( const Graphics g)
inline

复制构造:浅复制。

自从
build 319

在文件 ygdibase.h759 行定义.

成员函数说明

YSLib::Drawing::Graphics::DefCvt ( const ynothrow  ,
bool  ,
pBuffer &&sGraphics.Width!  = 0 && sGraphics.Height != 0 
) const
explicit

判断有效性。

自从
build 319
YSLib::Drawing::Graphics::DefDeDtor ( Graphics  )

析构:默认实现。

判断无效性。

自从
build 319
pBuffer YSLib::Drawing::Graphics::DefGetter ( const ynothrow  ,
const Size ,
Size  ,
sGraphics   
) const
pBuffer sGraphics Width YSLib::Drawing::Graphics::DefGetter ( const ynothrow  ,
SDst  ,
Height  ,
sGraphics.  Height 
) const
const ynothrow YSLib::Drawing::Graphics::ImplRet ( !bool *  this) const

取指定行首元素指针。

前置条件
断言:缓冲区指针非空;参数不越界。
pBuffer sGraphics Width YSLib::Drawing::Graphics::sizeof ( PixelType  ) const

< 取缓冲区占用空间。

取指定行首元素指针。

异常
GeneralEvent缓冲区指针为空。
std::out_of_range参数越界。
注解
仅抛出以上异常。

类成员变量说明

YSLib::Drawing::Graphics::BitmapPtr

在文件 ygdibase.h788 行定义.

YSLib::Drawing::Graphics::BufferPtr

在文件 ygdibase.h788 行定义.

const Graphics YSLib::Drawing::Graphics::Invalid
static

无效图形接口上下文。

在文件 ygdibase.h724 行定义.

BitmapPtr YSLib::Drawing::Graphics::pBuffer
protected

显示缓冲区指针。

警告
不应视为具有所有权。

在文件 ygdibase.h731 行定义.

参考自 YSLib::Drawing::CompactPixmap::CompactPixmap(), YSLib::Drawing::CompactPixmap::SetContent() , 以及 YSLib::Drawing::CompactPixmap::SetSize().

pBuffer YSLib::Drawing::Graphics::SDst

在文件 ygdibase.h790 行定义.

Size YSLib::Drawing::Graphics::sGraphics
protected
pBuffer sGraphics Width YSLib::Drawing::Graphics::size_t

在文件 ygdibase.h792 行定义.

pBuffer sGraphics Width YSLib::Drawing::Graphics::SizeOfBuffer

在文件 ygdibase.h792 行定义.

pBuffer YSLib::Drawing::Graphics::Width

在文件 ygdibase.h790 行定义.


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