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  查看評論
本站公眾號
   歡迎關注本站公眾號,獲取更多信息