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

#include <ydevice.h>

类 YSLib::Devices::Screen 继承关系图:
YSLib::Devices::Screen 的协作图:

Public 成员函数

 Screen (SDst w, SDst h, Drawing::BitmapPtr p={}) ynothrow
 构造:指定宽度、高度和缓冲区指针。
 
virtual Drawing::BitmapPtr GetCheckedBufferPtr () const ynothrow
 取指针。
 
virtual void Update (Drawing::BitmapPtr) ynothrow
 更新。
 
- Public 成员函数 继承自 YSLib::Devices::GraphicDevice
 GraphicDevice (SDst w, SDst h, Drawing::BitmapPtr p={}) ynothrow
 构造:指定宽度、高度和缓冲区指针。
 
virtual ~GraphicDevice ()
 析构:默认实现。
 
const GraphicsGetContext () const ynothrow
 

额外继承的成员函数

- Protected 成员函数 继承自 YSLib::Drawing::Graphics
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 SizeGetSize () const ynothrow
 
SDst GetWidth () const ynothrow
 
SDst GetHeight () const ynothrow
 
size_t GetSizeOfBuffer () const ynothrow
 取缓冲区占用空间。
 
BitmapPtr at (size_t) const ythrow(GeneralEvent
 取指定行首元素指针。
 
- 静态 Protected 属性 继承自 YSLib::Drawing::Graphics
static const Graphics Invalid
 无效图形接口上下文。
 

详细描述

在文件 ydevice.h76 行定义.

构造及析构函数说明

YSLib::Devices::Screen::Screen ( SDst  w,
SDst  h,
Drawing::BitmapPtr  p = {} 
)
inline

构造:指定宽度、高度和缓冲区指针。

自从
build 319

在文件 ydevice.h83 行定义.

成员函数说明

BitmapPtr Screen::GetCheckedBufferPtr ( ) const
virtual

取指针。

注解
进行状态检查。

在文件 ydevice.cpp37 行定义.

参考 YAssert.

void Screen::Update ( Drawing::BitmapPtr  buf)
virtual

更新。

注解
复制到屏幕。
自从
build 319

在文件 ydevice.cpp45 行定义.

参考 YSLib::Drawing::GetAreaOf().

函数调用图:


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