svgalibscreen.h Example File
qws/svgalib/svgalibscreen.h
#ifndef SVGALIBSCREEN_H
#define SVGALIBSCREEN_H
#include <QScreen>
#include <vga.h>
#include <vgagl.h>
class SvgalibScreen : public QScreen
{
public:
SvgalibScreen(int displayId) : QScreen(displayId) {}
~SvgalibScreen() {}
bool connect(const QString &displaySpec);
bool initDevice();
void shutdownDevice();
void disconnect();
void setMode(int, int, int) {}
void blank(bool) {}
void blit(const QImage &img, const QPoint &topLeft, const QRegion ®ion);
void solidFill(const QColor &color, const QRegion ®ion);
QWSWindowSurface* createSurface(QWidget *widget) const;
QWSWindowSurface* createSurface(const QString &key) const;
private:
void initColorMap();
void blit16To8(const QImage &image,
const QPoint &topLeft, const QRegion ®ion);
void blit32To8(const QImage &image,
const QPoint &topLeft, const QRegion ®ion);
GraphicsContext *context;
};
#endif
Copyright © 2008 Nokia Corporation and/or its subsidiary(-ies) |
Trademarks |
Qt 4.4.3 |