svgalibsurface.h Example File qtopiacore/svgalib/svgalibsurface.h
#ifndef SVGALIBSURFACE_H
#define SVGALIBSURFACE_H
#include "svgalibpaintengine.h"
#include "svgalibpaintdevice.h"
#include <private/qwindowsurface_qws_p.h>
class SvgalibPaintDevice;
class SvgalibSurface : public QWSWindowSurface
{
public:
SvgalibSurface();
SvgalibSurface(QWidget *w);
~SvgalibSurface();
void setGeometry(const QRect &rect);
bool isValid() const { return true; }
bool scroll(const QRegion ®ion, int dx, int dy);
QString key() const { return QLatin1String("svgalib"); }
bool attach(const QByteArray &) { return true; }
void detach() {}
QImage image() const { return QImage(); }
QPaintDevice *paintDevice() { return pdevice; }
QPoint painterOffset() const;
private:
SvgalibPaintDevice *pdevice;
};
#endif SVGALIBSURFACE_H
|