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.cpp File Reference

(c26994ff1551aa5450383cc51bed9b4d39f973f7)

#include "qcssutil_p.h"
#include "private/qcssparser_p.h"
#include "qpainter.h"
#include <qmath.h>
Include dependency graph for qcssutil.cpp:

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)

Function Documentation

◆ paintsOver()

bool paintsOver ( const QCss::BorderStyle * styles,
const QBrush * colors,
QCss::Edge e1,
QCss::Edge e2 )
static

Definition at line 297 of file qcssutil.cpp.

◆ qDrawBorder()

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

Definition at line 313 of file qcssutil.cpp.

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

Definition at line 149 of file qcssutil.cpp.

◆ qDrawRoundedCorners()

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.

◆ qNormalizeRadii()

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

Definition at line 279 of file qcssutil.cpp.

◆ qPenFromStyle()

QPen qPenFromStyle ( const QBrush & b,
qreal width,
BorderStyle s )
static

Definition at line 15 of file qcssutil.cpp.