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
qquickrectangle_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
QQUICKRECTANGLE_P_P_H
6
#
define
QQUICKRECTANGLE_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
"qquickitem_p.h"
20
#
include
<
QtCore
/
qmetaobject
.
h
>
21
#
include
<
private
/
qlazilyallocated_p
.
h
>
22
23
QT_BEGIN_NAMESPACE
24
25
class
QQuickGradient;
26
class
QQuickRectangle;
27
class
QQuickRectanglePrivate
:
public
QQuickItemPrivate
28
{
29
Q_DECLARE_PUBLIC(QQuickRectangle)
30
31
public
:
32
QQuickRectanglePrivate
() :
33
color
(
Qt
::
white
),
gradient
(
QJSValue
::
UndefinedValue
),
pen
(0),
radius
(0)
34
{
35
}
36
37
~
QQuickRectanglePrivate
()
38
{
39
}
40
41
QColor
color
;
42
QJSValue
gradient
;
43
QQuickPen
*
pen
;
44
qreal
radius
;
45
46
struct
ExtraData
{
47
ExtraData
()
48
:
topLeftRadius
(0),
49
topRightRadius
(0),
50
bottomLeftRadius
(0),
51
bottomRightRadius
(0),
52
isTopLeftRadiusSet
(
false
),
53
isTopRightRadiusSet
(
false
),
54
isBottomLeftRadiusSet
(
false
),
55
isBottomRightRadiusSet
(
false
)
56
{
57
}
58
qreal
topLeftRadius
;
59
qreal
topRightRadius
;
60
qreal
bottomLeftRadius
;
61
qreal
bottomRightRadius
;
62
63
unsigned
isTopLeftRadiusSet
: 1;
64
unsigned
isTopRightRadiusSet
: 1;
65
unsigned
isBottomLeftRadiusSet
: 1;
66
unsigned
isBottomRightRadiusSet
: 1;
67
};
68
QLazilyAllocated
<
ExtraData
>
extraRectangle
;
69
70
static
int
doUpdateSlotIdx
;
71
72
void
maybeSetImplicitAntialiasing
();
73
};
74
75
QT_END_NAMESPACE
76
77
#
endif
// QQUICKRECTANGLE_P_P_H
QQuickRectanglePrivate
Definition
qquickrectangle_p_p.h:28
QQuickRectanglePrivate::maybeSetImplicitAntialiasing
void maybeSetImplicitAntialiasing()
Definition
qquickrectangle.cpp:268
QQuickRectanglePrivate::doUpdateSlotIdx
static int doUpdateSlotIdx
Definition
qquickrectangle_p_p.h:70
QQuickRectanglePrivate::extraRectangle
QLazilyAllocated< ExtraData > extraRectangle
Definition
qquickrectangle_p_p.h:68
QQuickRectanglePrivate::gradient
QJSValue gradient
Definition
qquickrectangle_p_p.h:42
QQuickRectanglePrivate::pen
QQuickPen * pen
Definition
qquickrectangle_p_p.h:43
QQuickRectanglePrivate::radius
qreal radius
Definition
qquickrectangle_p_p.h:44
QPlatformGraphicsBufferHelper
\inmodule QtGui
QQuickRectanglePrivate::ExtraData
Definition
qquickrectangle_p_p.h:46
QQuickRectanglePrivate::ExtraData::bottomRightRadius
qreal bottomRightRadius
Definition
qquickrectangle_p_p.h:61
QQuickRectanglePrivate::ExtraData::isTopRightRadiusSet
unsigned isTopRightRadiusSet
Definition
qquickrectangle_p_p.h:64
QQuickRectanglePrivate::ExtraData::isBottomLeftRadiusSet
unsigned isBottomLeftRadiusSet
Definition
qquickrectangle_p_p.h:65
QQuickRectanglePrivate::ExtraData::bottomLeftRadius
qreal bottomLeftRadius
Definition
qquickrectangle_p_p.h:60
QQuickRectanglePrivate::ExtraData::topRightRadius
qreal topRightRadius
Definition
qquickrectangle_p_p.h:59
QQuickRectanglePrivate::ExtraData::topLeftRadius
qreal topLeftRadius
Definition
qquickrectangle_p_p.h:58
QQuickRectanglePrivate::ExtraData::ExtraData
ExtraData()
Definition
qquickrectangle_p_p.h:47
QQuickRectanglePrivate::ExtraData::isBottomRightRadiusSet
unsigned isBottomRightRadiusSet
Definition
qquickrectangle_p_p.h:66
QQuickRectanglePrivate::ExtraData::isTopLeftRadiusSet
unsigned isTopLeftRadiusSet
Definition
qquickrectangle_p_p.h:63
qtdeclarative
src
quick
items
qquickrectangle_p_p.h
Generated on
for Qt by
1.14.0