Qt
6.x
The Qt SDK
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
4
#ifndef QQUICKIMAGE_P_P_H
5
#define QQUICKIMAGE_P_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 "
qquickimagebase_p_p.h
"
19
#include "
qquickimage_p.h
"
20
#include <QtQuick/qsgtextureprovider.h>
21
22
QT_BEGIN_NAMESPACE
23
24
class
Q_QUICK_PRIVATE_EXPORT
QQuickImageTextureProvider
:
public
QSGTextureProvider
25
{
26
Q_OBJECT
27
public
:
28
QQuickImageTextureProvider
();
29
30
void
updateTexture(
QSGTexture
*
texture
);
31
32
QSGTexture
*
texture
()
const override
;
33
34
friend
class
QQuickImage
;
35
36
QSGTexture
*
m_texture
;
37
bool
m_smooth
;
38
bool
m_mipmap
;
39
};
40
41
class
Q_QUICK_PRIVATE_EXPORT
QQuickImagePrivate
:
public
QQuickImageBasePrivate
42
{
43
Q_DECLARE_PUBLIC(
QQuickImage
)
44
45
public
:
46
QQuickImagePrivate
();
47
void
setImage(
const
QImage
&
img
);
48
void
setPixmap
(
const
QQuickPixmap
&
pixmap
);
49
50
bool
pixmapChanged
: 1;
51
bool
mipmap
: 1;
52
QQuickImage::HAlignment
hAlign =
QQuickImage::AlignHCenter
;
53
QQuickImage::VAlignment
vAlign =
QQuickImage::AlignVCenter
;
54
QQuickImage::FillMode
fillMode
=
QQuickImage::Stretch
;
55
56
qreal
paintedWidth = 0;
57
qreal
paintedHeight = 0;
58
QQuickImageTextureProvider
*provider =
nullptr
;
59
};
60
61
QT_END_NAMESPACE
62
63
#endif
// QQUICKIMAGE_P_P_H
QImage
\inmodule QtGui
Definition
qimage.h:37
QQuickImageBasePrivate
Definition
qquickimagebase_p_p.h:27
QQuickImagePrivate
Definition
qquickimage_p_p.h:42
QQuickImagePrivate::mipmap
bool mipmap
Definition
qquickimage_p_p.h:51
QQuickImagePrivate::pixmapChanged
bool pixmapChanged
Definition
qquickimage_p_p.h:50
QQuickImageTextureProvider
Definition
qquickimage_p_p.h:25
QQuickImageTextureProvider::m_smooth
bool m_smooth
Definition
qquickimage_p_p.h:37
QQuickImageTextureProvider::m_mipmap
bool m_mipmap
Definition
qquickimage_p_p.h:38
QQuickImageTextureProvider::m_texture
QSGTexture * m_texture
Definition
qquickimage_p_p.h:36
QQuickImage
Definition
qquickimage_p.h:25
QQuickImage::VAlignment
VAlignment
Definition
qquickimage_p.h:47
QQuickImage::AlignVCenter
@ AlignVCenter
Definition
qquickimage_p.h:49
QQuickImage::FillMode
FillMode
Definition
qquickimage_p.h:52
QQuickImage::Stretch
@ Stretch
Definition
qquickimage_p.h:52
QQuickImage::HAlignment
HAlignment
Definition
qquickimage_p.h:43
QQuickImage::AlignHCenter
@ AlignHCenter
Definition
qquickimage_p.h:45
QQuickPixmap
Definition
qquickpixmapcache_p.h:92
QSGTextureProvider
The QSGTextureProvider class encapsulates texture based entities in QML.
Definition
qsgtextureprovider.h:13
QSGTextureProvider::texture
virtual QSGTexture * texture() const =0
Returns a pointer to the texture object.
QSGTexture
\inmodule QtQuick
Definition
qsgtexture.h:20
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
fillMode
GLenum fillMode
Definition
qopengles2ext.h:3182
texture
GLenum GLuint texture
Definition
qopengles2ext.h:416
img
GLint void * img
Definition
qopenglext.h:233
qquickimage_p.h
qquickimagebase_p_p.h
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
qreal
double qreal
Definition
qtypes.h:92
pixmap
widget render & pixmap
Definition
src_gui_kernel_qwidget.cpp:32
setPixmap
imageLabel setPixmap(QPixmap::fromImage(image))
qtdeclarative
src
quick
items
qquickimage_p_p.h
Generated by
1.9.7