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// Qt-Security score:significant reason:default
4
5#ifndef QCSSUTIL_P_H
6#define QCSSUTIL_P_H
7
8#include "QtCore/qglobal.h"
9
10#ifndef QT_NO_CSSPARSER
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
23#include "private/qcssparser_p.h"
24#include "QtCore/qsize.h"
25
26QT_BEGIN_NAMESPACE
27
28class QPainter;
29
30extern void qDrawEdge(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, qreal dw1, qreal dw2,
31 QCss::Edge edge, QCss::BorderStyle style, QBrush c);
32
33extern void qDrawRoundedCorners(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2,
34 const QSizeF& r1, const QSizeF& r2,
35 QCss::Edge edge, QCss::BorderStyle s, QBrush c);
36
37extern void Q_GUI_EXPORT qDrawBorder(QPainter *p, const QRect &rect, const QCss::BorderStyle *styles,
38 const int *borders, const QBrush *colors, const QSize *radii);
39
40extern void Q_GUI_EXPORT qNormalizeRadii(const QRect &br, const QSize *radii,
41 QSize *tlr, QSize *trr, QSize *blr, QSize *brr);
42
43QT_END_NAMESPACE
44
45#endif //QT_NO_CSSPARSER
46
47#endif // QCSSUTIL_P_H
friend class QPainter
Combined button and popup list for selecting options.
void qNormalizeRadii(const QRect &br, const QSize *radii, QSize *tlr, QSize *trr, QSize *blr, QSize *brr)
Definition qcssutil.cpp:280
void qDrawBorder(QPainter *p, const QRect &rect, const QCss::BorderStyle *styles, const int *borders, const QBrush *colors, const QSize *radii)
Definition qcssutil.cpp:314
static QPen qPenFromStyle(const QBrush &b, qreal width, BorderStyle s)
Definition qcssutil.cpp:16
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:45
static bool paintsOver(const QCss::BorderStyle *styles, const QBrush *colors, QCss::Edge e1, QCss::Edge e2)
Definition qcssutil.cpp:298
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:150
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:45
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:150
QDebug Q_GUI_EXPORT & operator<<(QDebug &s, const QVectorPath &path)