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
qquickborderimage_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
QQUICKBORDERIMAGE_P_P_H
6
#
define
QQUICKBORDERIMAGE_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
19
#
include
"qquickimagebase_p_p.h"
20
#
include
"qquickscalegrid_p_p.h"
21
22
#
include
<
private
/
qqmlglobal_p
.
h
>
23
24
QT_BEGIN_NAMESPACE
25
26
#
if
QT_CONFIG
(
qml_network
)
27
class
QNetworkReply;
28
#
endif
29
class
QQuickBorderImagePrivate
:
public
QQuickImageBasePrivate
30
{
31
Q_DECLARE_PUBLIC(QQuickBorderImage)
32
33
public
:
34
QQuickBorderImagePrivate
()
35
{
36
}
37
38
~
QQuickBorderImagePrivate
()
39
{
40
}
41
42
QQuickScaleGrid
*
getScaleGrid
()
43
{
44
Q_Q
(
QQuickBorderImage
);
45
if
(!
border
) {
46
border
=
new
QQuickScaleGrid
(
q
);
47
qmlobject_connect
(
border
,
QQuickScaleGrid
,
SIGNAL
(
borderChanged
()),
48
q
,
QQuickBorderImage
,
SLOT
(
doUpdate
()));
49
}
50
return
border
;
51
}
52
53
static
void
calculateRects
(
const
QQuickScaleGrid
*
border
,
54
const
QSize
&
sourceSize
,
55
const
QSizeF
&
targetSize
,
56
int
horizontalTileMode
,
57
int
verticalTileMode
,
58
qreal
devicePixelRatio
,
59
QRectF
*
targetRect
,
60
QRectF
*
innerTargetRect
,
61
QRectF
*
innerSourceRect
,
62
QRectF
*
subSourceRect
);
63
64
QUrl
sciurl
;
65
QQuickScaleGrid *
border
=
nullptr
;
66
QQuickBorderImage
::
TileMode
horizontalTileMode
=
QQuickBorderImage
::
Stretch
;
67
QQuickBorderImage
::
TileMode
verticalTileMode
=
QQuickBorderImage
::
Stretch
;
68
bool
pixmapChanged
=
false
;
69
70
#
if
QT_CONFIG
(
qml_network
)
71
QNetworkReply
*
sciReply
=
nullptr
;
72
#
endif
73
};
74
75
QT_END_NAMESPACE
76
77
#
endif
// QQUICKBORDERIMAGE_P_P_H
QQuickBorderImagePrivate
Definition
qquickborderimage_p_p.h:30
QQuickBorderImagePrivate::sciurl
QUrl sciurl
Definition
qquickborderimage_p_p.h:64
QQuickBorderImagePrivate::border
QQuickScaleGrid * border
Definition
qquickborderimage_p_p.h:65
QQuickBorderImagePrivate::pixmapChanged
bool pixmapChanged
Definition
qquickborderimage_p_p.h:68
QQuickBorderImage
Definition
qquickborderimage_p.h:27
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtdeclarative
src
quick
items
qquickborderimage_p_p.h
Generated on
for Qt by
1.14.0