Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgbasicinternalimagenode_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
4#ifndef QSGBASICINTERNALIMAGENODE_P_H
5#define QSGBASICINTERNALIMAGENODE_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <private/qsgadaptationlayer_p.h>
19
21
23{
24public:
26
27 void setTargetRect(const QRectF &rect) override;
28 void setInnerTargetRect(const QRectF &rect) override;
29 void setInnerSourceRect(const QRectF &rect) override;
30 void setSubSourceRect(const QRectF &rect) override;
31 void setTexture(QSGTexture *texture) override;
32 void setAntialiasing(bool antialiasing) override;
33 void setMirror(bool mirrorHorizontally, bool mirrorVertically) override;
34 void update() override;
35 void preprocess() override;
36
37 static QSGGeometry *updateGeometry(const QRectF &targetRect,
38 const QRectF &innerTargetRect,
39 const QRectF &sourceRect,
40 const QRectF &innerSourceRect,
41 const QRectF &subSourceRect,
42 QSGGeometry *geometry,
43 bool mirrorHorizontally = false,
44 bool mirrorVertically = false,
45 bool antialiasing = false);
46
47protected:
48 virtual void updateMaterialAntialiasing() = 0;
50 virtual QSGTexture *materialTexture() const = 0;
51 virtual bool updateMaterialBlending() = 0;
52 virtual bool supportsWrap(const QSize &size) const = 0;
53
54 void updateGeometry();
55
60
65
67
71};
72
74
75#endif
\inmodule QtCore\reentrant
Definition qrect.h:484
virtual bool supportsWrap(const QSize &size) const =0
virtual void setMaterialTexture(QSGTexture *texture)=0
virtual void updateMaterialAntialiasing()=0
virtual QSGTexture * materialTexture() const =0
virtual bool updateMaterialBlending()=0
The QSGDynamicTexture class serves as a baseclass for dynamically changing textures,...
Definition qsgtexture.h:100
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition qsggeometry.h:15
\inmodule QtQuick
Definition qsgtexture.h:20
\inmodule QtCore
Definition qsize.h:25
rect
[4]
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint texture
unsigned int uint
Definition qtypes.h:34