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
20
QT_BEGIN_NAMESPACE
21
22
class
Q_QUICK_EXPORT
QSGBasicInternalImageNode
:
public
QSGInternalImageNode
23
{
24
public
:
25
QSGBasicInternalImageNode
();
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
47
protected
:
48
virtual
void
updateMaterialAntialiasing
() = 0;
49
virtual
void
setMaterialTexture
(
QSGTexture
*
texture
) = 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
56
QRectF
m_targetRect
;
57
QRectF
m_innerTargetRect
;
58
QRectF
m_innerSourceRect
;
59
QRectF
m_subSourceRect
;
60
61
uint
m_antialiasing
: 1;
62
uint
m_mirrorHorizontally
: 1;
63
uint
m_mirrorVertically
: 1;
64
uint
m_dirtyGeometry
: 1;
65
66
QSGGeometry
m_geometry
;
67
68
QSGDynamicTexture
*
m_dynamicTexture
;
69
QSize
m_dynamicTextureSize
;
70
QRectF
m_dynamicTextureSubRect
;
71
};
72
73
QT_END_NAMESPACE
74
75
#endif
QRectF
\inmodule QtCore\reentrant
Definition
qrect.h:484
QSGBasicInternalImageNode
Definition
qsgbasicinternalimagenode_p.h:23
QSGBasicInternalImageNode::supportsWrap
virtual bool supportsWrap(const QSize &size) const =0
QSGBasicInternalImageNode::m_geometry
QSGGeometry m_geometry
Definition
qsgbasicinternalimagenode_p.h:66
QSGBasicInternalImageNode::setMaterialTexture
virtual void setMaterialTexture(QSGTexture *texture)=0
QSGBasicInternalImageNode::m_targetRect
QRectF m_targetRect
Definition
qsgbasicinternalimagenode_p.h:56
QSGBasicInternalImageNode::updateMaterialAntialiasing
virtual void updateMaterialAntialiasing()=0
QSGBasicInternalImageNode::m_antialiasing
uint m_antialiasing
Definition
qsgbasicinternalimagenode_p.h:61
QSGBasicInternalImageNode::m_dynamicTexture
QSGDynamicTexture * m_dynamicTexture
Definition
qsgbasicinternalimagenode_p.h:68
QSGBasicInternalImageNode::m_dynamicTextureSubRect
QRectF m_dynamicTextureSubRect
Definition
qsgbasicinternalimagenode_p.h:70
QSGBasicInternalImageNode::m_mirrorHorizontally
uint m_mirrorHorizontally
Definition
qsgbasicinternalimagenode_p.h:62
QSGBasicInternalImageNode::m_dynamicTextureSize
QSize m_dynamicTextureSize
Definition
qsgbasicinternalimagenode_p.h:69
QSGBasicInternalImageNode::materialTexture
virtual QSGTexture * materialTexture() const =0
QSGBasicInternalImageNode::updateMaterialBlending
virtual bool updateMaterialBlending()=0
QSGBasicInternalImageNode::m_innerTargetRect
QRectF m_innerTargetRect
Definition
qsgbasicinternalimagenode_p.h:57
QSGBasicInternalImageNode::m_mirrorVertically
uint m_mirrorVertically
Definition
qsgbasicinternalimagenode_p.h:63
QSGBasicInternalImageNode::m_innerSourceRect
QRectF m_innerSourceRect
Definition
qsgbasicinternalimagenode_p.h:58
QSGBasicInternalImageNode::m_dirtyGeometry
uint m_dirtyGeometry
Definition
qsgbasicinternalimagenode_p.h:64
QSGBasicInternalImageNode::m_subSourceRect
QRectF m_subSourceRect
Definition
qsgbasicinternalimagenode_p.h:59
QSGDynamicTexture
The QSGDynamicTexture class serves as a baseclass for dynamically changing textures,...
Definition
qsgtexture.h:100
QSGGeometry
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
Definition
qsggeometry.h:15
QSGInternalImageNode
Definition
qsgadaptationlayer_p.h:127
QSGTexture
\inmodule QtQuick
Definition
qsgtexture.h:20
QSize
\inmodule QtCore
Definition
qsize.h:25
rect
rect
[4]
Definition
doc_src_styles.cpp:43
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
size
GLenum GLuint GLintptr GLsizeiptr size
[1]
Definition
qopengles2ext.h:660
texture
GLenum GLuint texture
Definition
qopengles2ext.h:416
uint
unsigned int uint
Definition
qtypes.h:34
qtdeclarative
src
quick
scenegraph
qsgbasicinternalimagenode_p.h
Generated by
1.10.0