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 QCSSUTIL_P_H
5#define QCSSUTIL_P_H
6
7#include "QtCore/qglobal.h"
8
9#ifndef QT_NO_CSSPARSER
10
11//
12// W A R N I N G
13// -------------
14//
15// This file is not part of the Qt API. It exists purely as an
16// implementation detail. This header file may change from version to
17// version without notice, or even be removed.
18//
19// We mean it.
20//
21
22#include "private/qcssparser_p.h"
23#include "QtCore/qsize.h"
24
25QT_BEGIN_NAMESPACE
26
27class QPainter;
28
29extern void qDrawEdge(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, qreal dw1, qreal dw2,
30 QCss::Edge edge, QCss::BorderStyle style, QBrush c);
31
32extern void qDrawRoundedCorners(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2,
33 const QSizeF& r1, const QSizeF& r2,
34 QCss::Edge edge, QCss::BorderStyle s, QBrush c);
35
36extern void Q_GUI_EXPORT qDrawBorder(QPainter *p, const QRect &rect, const QCss::BorderStyle *styles,
37 const int *borders, const QBrush *colors, const QSize *radii);
38
39extern void Q_GUI_EXPORT qNormalizeRadii(const QRect &br, const QSize *radii,
40 QSize *tlr, QSize *trr, QSize *blr, QSize *brr);
41
42QT_END_NAMESPACE
43
44#endif //QT_NO_CSSPARSER
45
46#endif // QCSSUTIL_P_H
47

source code of qtbase/src/gui/painting/qcssutil_p.h