![]() |
Qt 6.x
The Qt SDK
|
Go to the source code of this file.
Functions | |
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) |
void | qDrawEdge (QPainter *p, qreal x1, qreal y1, qreal x2, qreal y2, qreal dw1, qreal dw2, QCss::Edge edge, QCss::BorderStyle style, QBrush c) |
void | qNormalizeRadii (const QRect &br, const QSize *radii, QSize *tlr, QSize *trr, QSize *blr, QSize *brr) |
static bool | paintsOver (const QCss::BorderStyle *styles, const QBrush *colors, QCss::Edge e1, QCss::Edge e2) |
void | qDrawBorder (QPainter *p, const QRect &rect, const QCss::BorderStyle *styles, const int *borders, const QBrush *colors, const QSize *radii) |
|
static |
Definition at line 296 of file qcssutil.cpp.
References QCss::BorderStyle_None, QCss::BorderStyle_Solid, colors, s2, and Qt::transparent.
Referenced by qDrawBorder().
void qDrawBorder | ( | QPainter * | p, |
const QRect & | rect, | ||
const QCss::BorderStyle * | styles, | ||
const int * | borders, | ||
const QBrush * | colors, | ||
const QSize * | radii | ||
) |
Definition at line 312 of file qcssutil.cpp.
References QCss::BorderStyle_None, QCss::BottomEdge, colors, QRectF::height(), QSize::height(), QRectF::left(), QCss::LeftEdge, paintsOver(), qDrawEdge(), qDrawRoundedCorners(), qNormalizeRadii(), rect, QCss::RightEdge, QCss::TopEdge, QRectF::width(), QSize::width(), QRectF::x(), and QRectF::y().
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 at line 149 of file qcssutil.cpp.
References QCss::BorderStyle_Dashed, QCss::BorderStyle_DotDash, QCss::BorderStyle_DotDotDash, QCss::BorderStyle_Dotted, QCss::BorderStyle_Double, QCss::BorderStyle_Groove, QCss::BorderStyle_Inset, QCss::BorderStyle_Outset, QCss::BorderStyle_Ridge, QCss::BorderStyle_Solid, QCss::BottomEdge, QCss::LeftEdge, Qt::NoPen, Q_FALLTHROUGH, qDrawEdge(), qFloor(), qPenFromStyle(), qRound(), quad, QCss::RightEdge, s1, s2, and QCss::TopEdge.
Referenced by QTextDocumentLayoutPrivate::drawBorder(), drawCellBorder(), qDrawBorder(), and qDrawEdge().
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 at line 44 of file qcssutil.cpp.
References QCss::BorderStyle_Double, QCss::BorderStyle_Groove, QCss::BorderStyle_Inset, QCss::BorderStyle_Outset, QCss::BorderStyle_Ridge, QCss::BorderStyle_Solid, QCss::BottomEdge, QRect::height(), QRect::isEmpty(), QCss::LeftEdge, Qt::NoBrush, qDrawRoundedCorners(), qPenFromStyle(), qRound(), r1, r2, QCss::RightEdge, s1, s2, QPen::setCapStyle(), Qt::SquareCap, QCss::TopEdge, and QRect::width().
Referenced by qDrawBorder(), and qDrawRoundedCorners().
void qNormalizeRadii | ( | const QRect & | br, |
const QSize * | radii, | ||
QSize * | tlr, | ||
QSize * | trr, | ||
QSize * | blr, | ||
QSize * | brr | ||
) |
Definition at line 278 of file qcssutil.cpp.
References QSize::expandedTo(), QRect::height(), QSize::height(), QRect::width(), and QSize::width().
Referenced by qDrawBorder().
|
static |
Definition at line 15 of file qcssutil.cpp.
References QCss::BorderStyle_Dashed, QCss::BorderStyle_DotDash, QCss::BorderStyle_DotDotDash, QCss::BorderStyle_Dotted, QCss::BorderStyle_Inset, QCss::BorderStyle_Outset, QCss::BorderStyle_Solid, Qt::DashDotDotLine, Qt::DashDotLine, Qt::DashLine, Qt::DotLine, Qt::FlatCap, Qt::NoPen, and Qt::SolidLine.
Referenced by qDrawEdge(), and qDrawRoundedCorners().