QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskGraphicImageProvider.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_GRAPHIC_IMAGE_PROVIDER_H
7#define QSK_GRAPHIC_IMAGE_PROVIDER_H
8
9#include "QskGlobal.h"
10#include <qquickimageprovider.h>
11
12class QskGraphic;
13
14class QSK_EXPORT QskGraphicImageProvider : public QQuickImageProvider
15{
16 public:
17 QskGraphicImageProvider( const QString& providerId, ImageType );
18 ~QskGraphicImageProvider() override;
19
20 QImage requestImage( const QString& id,
21 QSize* size, const QSize& requestedSize ) override;
22
23 QPixmap requestPixmap( const QString& id,
24 QSize* size, const QSize& requestedSize ) override;
25
26 QQuickTextureFactory* requestTexture( const QString& id,
27 QSize* size, const QSize& requestedSize ) override;
28
29 QString graphicProviderId() const;
30
31 protected:
32 const QskGraphic* requestGraphic( const QString& id ) const;
33
34 private:
35 Q_DISABLE_COPY( QskGraphicImageProvider )
36
37 const QString m_providerId;
38};
39
40#endif
A paint device for scalable graphics.
Definition QskGraphic.h:28