1// Copyright (C) 2025 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 QQUICKRECTANGLESHAPE_P_P_H
5#define QQUICKRECTANGLESHAPE_P_P_H
6
7#include <QtQuickShapesDesignHelpers/private/qquickrectangleshape_p.h>
8
9#include <QtQml/private/qqmlpropertyutils_p.h>
10#include <QtQuickShapes/private/qquickshape_p_p.h>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
23QT_BEGIN_NAMESPACE
24
25class Q_QUICKSHAPESDESIGNHELPERS_EXPORT QQuickRectangleShapePrivate : public QQuickShapePrivate
26{
27 Q_DECLARE_PUBLIC(QQuickRectangleShape)
28
29public:
30 QQuickRectangleShapePrivate() = default;
31
32 static QQuickRectangleShapePrivate *get(QQuickRectangleShape *p) { return p->d_func(); }
33
34 void updateStrokeAdjustment();
35
36 QQuickShapePath *shapePath = nullptr;
37 QQuickPathRectangle *pathRectangle = nullptr;
38
39 qreal borderOffset = 0;
40 qreal borderRadiusAdjustment = 0;
41 QQuickRectangleShape::BorderMode borderMode = QQuickRectangleShape::Inside;
42
43};
44
45QT_END_NAMESPACE
46
47#endif // QQUICKRECTANGLESHAPE_P_P_H
48

source code of qtdeclarative/src/quickshapes/designhelpers/qquickrectangleshape_p_p.h