46 #ifndef QT_NO_QWS_DIRECTFB 52 bpl(-1), lockFlgs(DFBSurfaceLockFlags(0)), mem(0), engine(0), imageFormat(
QImage::Format_Invalid)
54 #ifdef QT_DIRECTFB_SUBSURFACE 64 #ifdef QT_DIRECTFB_SUBSURFACE 85 #ifdef QT_DIRECTFB_SUBSURFACE 89 if (result != DFB_OK || !subSurface) {
90 DirectFBError(
"Couldn't create sub surface", result);
94 IDirectFBSurface *surface = subSurface;
108 #ifdef QT_DIRECTFB_SUBSURFACE 120 #ifdef QT_DIRECTFB_SUBSURFACE 121 IDirectFBSurface *surface = subSurface;
126 surface->Unlock(surface);
127 lockFlgs =
static_cast<DFBSurfaceLockFlags
>(0);
182 IDirectFBPalette *palette = 0;
186 if ((result != DFB_OK) || !palette)
189 result = palette->GetSize(palette, &numColors);
190 palette->Release(palette);
191 if (result != DFB_OK)
197 qCritical(
"QDirectFBPaintDevice::metric(): Unhandled metric!");
207 #ifdef QT_DIRECTFB_SUBSURFACE 208 void QDirectFBPaintDevice::releaseSubSurface()
221 #endif // QT_NO_QWS_DIRECTFB
Format
The following image formats are available in Qt.
DFBSurfaceLockFlags lockFlgs
#define QT_END_NAMESPACE
This macro expands to.
The QCustomRasterPaintDevice class is provided to activate hardware accelerated paint engines in Qt f...
void releaseDFBSurface(IDirectFBSurface *surface)
bool isNull() const
Returns true if it is a null image, otherwise returns false.
QDirectFBPaintDevice(QDirectFBScreen *scr)
int dotsPerMeterX() const
QDirectFBPaintEngine * engine
void * memory() const
Returns a pointer to the paint device's memory buffer, or 0 if no such buffer exists.
DFBSurfaceLockFlags lockFlags() const
int width() const
Returns the width.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QImage::Format format() const
Returns the format of the device's memory buffet.
The QImage class provides a hardware-independent image representation that allows direct access to th...
static QImage::Format getImageFormat(IDirectFBSurface *surface)
int metric(QPaintDevice::PaintDeviceMetric metric) const
Reimplemented Function
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
IDirectFBSurface * dfbSurface
QT_DEPRECATED int numColors() const
int dotsPerMeterY() const
int colorCount() const
Returns the size of the color table for the image.
int height() const
Returns the height.
The QRect class defines a rectangle in the plane using integer precision.
static uchar * lockSurface(IDirectFBSurface *surface, DFBSurfaceLockFlags flags, int *bpl=0)
The QSize class defines the size of a two-dimensional object using integer point precision.
static QDirectFBScreen * instance()
virtual IDirectFBSurface * directFBSurface() const
bool lockSurface(DFBSurfaceLockFlags lockFlags)
QImage::Format imageFormat
int bytesPerLine() const
Returns the number of bytes per line in the framebuffer.
Q_CORE_EXPORT void qCritical(const char *,...)
int depth() const
Returns the depth of the framebuffer, in bits per pixel.
QPaintEngine * paintEngine() const