00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef QT_SVG_PIXMAP_CACHE
00011 #define QT_SVG_PIXMAP_CACHE
00012
00013 #include <QtCore/QSizeF>
00014 #include <QObject>
00015
00016
00017 class QPainter;
00018 class QString;
00019 class QRectF;
00020
00021 class QtSvgPixmapCachePrivate;
00022
00023 class QtSvgPixmapCache : public QObject
00024 {
00025 public:
00026 QtSvgPixmapCache(QObject* parent = NULL);
00027 QtSvgPixmapCache(const QString& url);
00028 ~QtSvgPixmapCache();
00029
00030 bool load(const QString& url);
00031 bool isValid() const;
00032
00033 void render(QPainter* painter, const QRectF& bounds);
00034 QSize defaultSize() const;
00035
00036 private:
00037 Q_DISABLE_COPY(QtSvgPixmapCache)
00038 QtSvgPixmapCachePrivate * const d;
00039 };
00040
00041 #endif // QT_SVG_PIXMAP_CACHE