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

QDirectPainter Class Reference
[QtGui module]

The QDirectPainter class provides direct access to the video hardware. More...

#include <QDirectPainter>

Inherits QObject.

Static Public Members

Additional Inherited Members


Detailed Description

The QDirectPainter class provides direct access to the video hardware.

Only available in Qtopia Core.

When the hardware is known and well defined, as is often the case with software for embedded devices, it may be useful to manipulate the underlying video hardware directly. In order to do this in a way that is co-operative with other applications, you must reserve a region of the screen for the application.

QDirectPainter provides this functionality.

Depending on the hardware, you may also have to lock the video hardware for exclusive use for a small time while you write to it. Use the functions lock() and unlock() in that case.


Member Function Documentation

uchar * QDirectPainter::frameBuffer ()   [static]

int QDirectPainter::linestep ()   [static]

Returns the length in bytes of each scanline of the framebuffer.

void QDirectPainter::lock ()   [static]

Locks access to video hardware, stopping all other applications from accessing the screen.

Warning: this will prevent all other applications from working until unlock() is called.

QRegion QDirectPainter::region ()   [static]

Returns the reserved region.

QRegion QDirectPainter::reserveRegion ( const QRegion & reg )   [static]

Attempts to reserve the region reg and returns the region actually reserved. Releases the previously reserved region, if any. If not released explicitly, the region will be released on application exit.

int QDirectPainter::screenDepth ()   [static]

Returns the bit depth of the display.

int QDirectPainter::screenHeight ()   [static]

Returns the height of the display in pixels.

int QDirectPainter::screenWidth ()   [static]

Returns the width of the display in pixels.

void QDirectPainter::unlock ()   [static]

Unlocks the video lock, allowing other applications to display on the screen.


Copyright © 2005 Trolltech Trademarks
Qt 4.1.0
Hosted by uCoz