|  | 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.

- List of all members, including inherited members

### Public Functions

- QCustomRasterPaintDevice ( QWidget * widget )
- virtual int bytesPerLine () const
- virtual QImage::Format format () const
- virtual void * memory () const

- 12 public functions inherited from QPaintDevice

### Additional Inherited Members

- 1 protected function inherited from QPaintDevice

## 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.