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
qsgsoftwarespritenode_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 QSGSOFTWARESPRITENODE_H
6#define QSGSOFTWARESPRITENODE_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
19#include <private/qtquickglobal_p.h>
20
22
23#include <private/qsgadaptationlayer_p.h>
24
25QT_BEGIN_NAMESPACE
26
27class QSGSoftwarePixmapTexture;
29{
30public:
33
34 void setTexture(QSGTexture *texture) override;
35 void setTime(float time) override;
36 void setSourceA(const QPoint &source) override;
37 void setSourceB(const QPoint &source) override;
38 void setSpriteSize(const QSize &size) override;
39 void setSheetSize(const QSize &size) override;
40 void setSize(const QSizeF &size) override;
41 void setFiltering(QSGTexture::Filtering filtering) override;
42 void update() override;
43
44 void paint(QPainter *painter);
45 bool isOpaque() const;
46 QRectF rect() const;
47
48private:
49
50 QSGSoftwarePixmapTexture *m_texture = nullptr;
51 float m_time;
52 QPoint m_sourceA;
53 QPoint m_sourceB;
54 QSize m_spriteSize;
55 QSize m_sheetSize;
56 QSizeF m_size;
57
58};
59
60QT_END_NAMESPACE
61
62#endif // QSGSOFTWARESPRITENODE_H
void paint(QPainter *painter)
void setSize(const QSizeF &size) override
void setTexture(QSGTexture *texture) override
void setTime(float time) override
void setSourceB(const QPoint &source) override
void setSpriteSize(const QSize &size) override
void setFiltering(QSGTexture::Filtering filtering) override
void setSheetSize(const QSize &size) override
void setSourceA(const QPoint &source) override
Combined button and popup list for selecting options.
QT_REQUIRE_CONFIG(quick_sprite)