Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QCustomRasterPaintDevice Class Reference
[
QtGui module]

The QCustomRasterPaintDevice class enables acceleration of painting operations using the available hardware. More...

 #include <QCustomRasterPaintDevice>

This class is under development and is subject to change.

Inherits QPaintDevice.

This class was introduced in Qt 4.2.

Public Functions

Additional Inherited Members


Detailed Description

The QCustomRasterPaintDevice class enables acceleration of painting operations using the available hardware.

Note that this functionality is only available in Qtopia Core.

In Qtopia Core, painting is a pure software implementation. But starting with Qtopia Core 4.2, it is possible to add an accelerated graphics driver to take advantage of available hardware resources.

The painting operations can be accelerated by deriving from the QRasterPaintEngine and QCustomRasterPaintDevice classes. Note that there are several other issues to be aware of; see the Adding an Accelerated Graphics Driver in Qtopia Core documentation for details.

See also QRasterPaintEngine and QPaintDevice.


Member Function Documentation

QCustomRasterPaintDevice::QCustomRasterPaintDevice ( QWidget * widget )

Constructs a custom raster based paint device for the given top-level widget.

int QCustomRasterPaintDevice::bytesPerLine () const   [virtual]

Returns the number of bytes per line in the framebuffer. Note that this number might be larger than the framebuffer width.

QImage::Format QCustomRasterPaintDevice::format () const   [virtual]

Returns the format of the device's memory buffet.

The default format is QImage::Format_ARGB32_Premultiplied. The only other valid format is QImage::Format_RGB16.

void * QCustomRasterPaintDevice::memory () const   [virtual]

Returns a pointer to the paint device's memory buffer, or 0 if there is no such buffer.


Copyright © 2006 Trolltech Trademarks
Qt 4.2.2