Wt::WPaintDevice

来自:http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WPaintDevice.html

Detailed Description

The abstract base class for a paint device.

绘画设备的抽象基类。

A WPaintDevice is a device on which may be painted using a WPainter. You should never paint directly on a paint device.html

WPaintDevice 是一种设备,在这种设备上咱们能够使用 WPainter 做画,但永远不该该直接在一个绘画设备上做画。c++

The device defines the size of the drawing area, using width() and height(). These dimensions must be defined in pixel units. In the future, additional information will be included to convert these pixel units to lengths (using DPI information).web

这个设备经过使用  width()  和 height() 定义了绘画区域,其单位必须是像素,将来可能会实现像素单位的转换。ide

You should reimplement this class if you wish to extend the Wt paint system to paint on other devices than the ones provided by the library.this

若是你想扩展 Wt 的绘画系统 到其余的设备上,你应该从新实现该类,Wt 库已经实现了一些绘画设备。3d

Note: this interface is subject to changes to increase optimization possibilities for the painting using different devices.orm


See also:
WPainter

类别: c++witty  查看评论
本站公众号
   欢迎关注本站公众号,获取更多信息