Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QDirectPainter class provides direct access to the video hardware. More...
#include <QDirectPainter>
Inherits QObject.
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.
Returns the length in bytes of each scanline of the framebuffer.
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.
Returns the reserved region.
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.
Returns the bit depth of the display.
Returns the height of the display in pixels.
Returns the width of the display in pixels.
Unlocks the video lock, allowing other applications to display on the screen.
Copyright © 2005 Trolltech | Trademarks | Qt 4.1.0 |