Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickimage_p_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QQUICKIMAGE_P_P_H
6#define QQUICKIMAGE_P_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
20#include "qquickimage_p.h"
21#include <QtQuick/qsgtextureprovider.h>
22
24
25class Q_QUICK_EXPORT QQuickImageTextureProvider : public QSGTextureProvider
26{
27 Q_OBJECT
28public:
29 QQuickImageTextureProvider();
30
31 void updateTexture(QSGTexture *texture);
32
33 QSGTexture *texture() const override ;
34
35 friend class QQuickImage;
36
37 QSGTexture *m_texture;
38 bool m_smooth;
39 bool m_mipmap;
40};
41
42class Q_QUICK_EXPORT QQuickImagePrivate : public QQuickImageBasePrivate
43{
44 Q_DECLARE_PUBLIC(QQuickImage)
45
46public:
47 QQuickImagePrivate();
48 void setImage(const QImage &img);
49 void setPixmap(const QQuickPixmap &pixmap);
50
51 bool pixmapChanged : 1;
52 bool mipmap : 1;
53 QQuickImage::HAlignment hAlign = QQuickImage::AlignHCenter;
54 QQuickImage::VAlignment vAlign = QQuickImage::AlignVCenter;
55 QQuickImage::FillMode fillMode = QQuickImage::Stretch;
56
57 qreal paintedWidth = 0;
58 qreal paintedHeight = 0;
59 QQuickImageTextureProvider *provider = nullptr;
60};
61
62QT_END_NAMESPACE
63
64#endif // QQUICKIMAGE_P_P_H
QMap< int, QQuickPixmap * > frameMap
QT_REQUIRE_CONFIG(animation)
QT_REQUIRE_CONFIG(quick_animatedimage)