5#include "private/qcssparser_p.h"
101 c =
c.color().lighter();
163 c =
c.color().lighter();
168 if (
width == 1 || (dw1 == 0 && dw2 == 0)) {
192 p->drawConvexPolygon(
quad);
211 int dw1by3 =
qRound(dw1/3);
212 int dw2by3 =
qRound(dw2/3);
286 *tlr = *trr =
QSize(0, 0);
288 *blr = *brr =
QSize(0, 0);
290 *tlr = *blr =
QSize(0, 0);
292 *trr = *brr =
QSize(0, 0);
305 &&
colors[e1].isOpaque()) {
316 QSize tlr, trr, blr, brr;
The QPainter class performs low-level painting on widgets and other paint devices.
void setCapStyle(Qt::PenCapStyle pcs)
Sets the pen's cap style to the given style.
\inmodule QtCore\reentrant
The QPolygonF class provides a list of points using floating point precision.
\inmodule QtCore\reentrant
constexpr qreal y() const noexcept
Returns the y-coordinate of the rectangle's top edge.
constexpr qreal height() const noexcept
Returns the height of the rectangle.
constexpr qreal width() const noexcept
Returns the width of the rectangle.
constexpr qreal x() const noexcept
Returns the x-coordinate of the rectangle's left edge.
constexpr qreal left() const noexcept
Returns the x-coordinate of the rectangle's left edge.
\inmodule QtCore\reentrant
constexpr bool isEmpty() const noexcept
Returns true if the rectangle is empty, otherwise returns false.
constexpr int height() const noexcept
Returns the height of the rectangle.
constexpr int width() const noexcept
Returns the width of the rectangle.
constexpr int height() const noexcept
Returns the height.
constexpr int width() const noexcept
Returns the width.
constexpr QSize expandedTo(const QSize &) const noexcept
Returns a size holding the maximum width and height of this size and the given otherSize.
Combined button and popup list for selecting options.
void qNormalizeRadii(const QRect &br, const QSize *radii, QSize *tlr, QSize *trr, QSize *blr, QSize *brr)
void qDrawBorder(QPainter *p, const QRect &rect, const QCss::BorderStyle *styles, const int *borders, const QBrush *colors, const QSize *radii)
static QPen qPenFromStyle(const QBrush &b, qreal width, BorderStyle s)
void qDrawRoundedCorners(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, const QSizeF &r1, const QSizeF &r2, Edge edge, BorderStyle s, QBrush c)
static bool paintsOver(const QCss::BorderStyle *styles, const QBrush *colors, QCss::Edge e1, QCss::Edge e2)
void qDrawEdge(QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, qreal dw1, qreal dw2, QCss::Edge edge, QCss::BorderStyle style, QBrush c)
int qRound(qfloat16 d) noexcept
GLboolean GLboolean GLboolean b
GLuint GLfloat GLfloat GLfloat GLfloat y1
GLuint GLfloat GLfloat GLfloat x1
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat GLfloat s1
GLfixed GLfixed GLfixed y2
static QT_BEGIN_NAMESPACE const QRgb colors[][14]
static const struct TessellationModeTab quad[]