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
qcssutil_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 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
friend class QPainter
void qNormalizeRadii(const QRect &br, const QSize *radii, QSize *tlr, QSize *trr, QSize *blr, QSize *brr)
Definition qcssutil.cpp:279
void qDrawBorder(QPainter *p, const QRect &rect, const QCss::BorderStyle *styles, const int *borders, const QBrush *colors, const QSize *radii)
Definition qcssutil.cpp:313
static QPen qPenFromStyle(const QBrush &b, qreal width, BorderStyle s)
Definition qcssutil.cpp:15
void qDrawRoundedCorners(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, const QSizeF &r1, const QSizeF &r2, Edge edge, BorderStyle s, QBrush c)
Definition qcssutil.cpp:44
static bool paintsOver(const QCss::BorderStyle *styles, const QBrush *colors, QCss::Edge e1, QCss::Edge e2)
Definition qcssutil.cpp:297
void qDrawEdge(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, qreal dw1, qreal dw2, QCss::Edge edge, QCss::BorderStyle style, QBrush c)
Definition qcssutil.cpp:149
void qDrawRoundedCorners(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, const QSizeF &r1, const QSizeF &r2, QCss::Edge edge, QCss::BorderStyle s, QBrush c)
Definition qcssutil.cpp:44
void qDrawEdge(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, qreal dw1, qreal dw2, QCss::Edge edge, QCss::BorderStyle style, QBrush c)
Definition qcssutil.cpp:149
QDebug Q_GUI_EXPORT & operator<<(QDebug &s, const QVectorPath &path)