Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcssutil_p.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include "QtCore/qglobal.h"
#include "private/qcssparser_p.h"
#include "QtCore/qsize.h"
+ Include dependency graph for qcssutil_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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 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)
 
void Q_GUI_EXPORT qDrawBorder (QPainter *p, const QRect &rect, const QCss::BorderStyle *styles, const int *borders, const QBrush *colors, const QSize *radii)
 
void Q_GUI_EXPORT qNormalizeRadii (const QRect &br, const QSize *radii, QSize *tlr, QSize *trr, QSize *blr, QSize *brr)
 

Function Documentation

◆ qDrawBorder()

void Q_GUI_EXPORT qDrawBorder ( QPainter * p,
const QRect & rect,
const QCss::BorderStyle * styles,
const int * borders,
const QBrush * colors,
const QSize * radii )
extern

Definition at line 313 of file qcssutil.cpp.

References QCss::BorderStyle_None, QCss::BottomEdge, colors, QRectF::height(), QRectF::left(), QCss::LeftEdge, paintsOver(), qDrawEdge(), qDrawRoundedCorners(), qNormalizeRadii(), rect, QCss::RightEdge, QCss::TopEdge, QRectF::width(), QRectF::x(), and QRectF::y().

+ Here is the call graph for this function:

◆ qDrawEdge()

void qDrawEdge ( QPainter * p,
qreal x1,
qreal y1,
qreal x2,
qreal y2,
qreal dw1,
qreal dw2,
QCss::Edge edge,
QCss::BorderStyle style,
QBrush c )
extern

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawRoundedCorners()

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 )
extern

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qNormalizeRadii()

void Q_GUI_EXPORT qNormalizeRadii ( const QRect & br,
const QSize * radii,
QSize * tlr,
QSize * trr,
QSize * blr,
QSize * brr )
extern

Definition at line 279 of file qcssutil.cpp.

References QRect::height(), and QRect::width().

Referenced by qDrawBorder().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: