dotherside/lib/include/DOtherSide/DosQQuickImageProvider.h

22 lines
414 B
C
Raw Normal View History

#pragma once
// std
#include <iostream>
// Qt
#include <QtGui/QPixmap>
#include <QtQuick/QQuickImageProvider>
#include "DOtherSideTypes.h"
class DosImageProvider : public QQuickImageProvider
{
public:
2018-02-13 21:41:53 +01:00
DosImageProvider(RequestPixmapCallback callback);
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
private:
2018-02-13 21:41:53 +01:00
RequestPixmapCallback m_pixmap_callback;
};