516 float curvynessAdd, curvynessMul;
519 if (width < 2.5 && (cosmetic ||
m_inv_scale == 1)) {
522 }
else if (cosmetic) {
523 curvynessAdd= width / 2;
533 const qreal *endPts = pts + (count<<1);
540 while (pts < endPts) {
545 while (pts < endPts) {
560 *(((
const QPointF *) pts) + 1),
561 *(((
const QPointF *) pts) + 2));
564 int threshold = qMin<float>(64, (rad + curvynessAdd) * curvynessMul);
568 qreal threshold_minus_1 = threshold - 1;
569 for (
int i=0; i<threshold; ++i) {
ElementType
This enum describes the types of elements used to connect vertices in subpaths.
void setClipRect(const QRectF &clip)
void lineTo(qfixed x, qfixed y)
void setDashOffset(qreal offset)
The QPointF class defines a point in the plane using floating point precision.
QPointF pointAt(qreal t) const
void setDashPattern(const QVector< qfixed > &dashPattern)
const QPainterPath::ElementType * elements() const
QVector< qreal > dashPattern() const
Returns the dash pattern of this pen.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
qreal x() const
Returns the x-coordinate of this point.
void setMiterLimit(qreal limit)
virtual void end()
Finishes the stroke.
static QBezier fromPoints(const QPointF &p1, const QPointF &p2, const QPointF &p3, const QPointF &p4)
QDataBuffer< QPainterPath::ElementType > m_types
The QRectF class defines a rectangle in the plane using floating point precision. ...
bool isCosmetic() const
Returns true if the pen is cosmetic; otherwise returns false.
virtual void begin(void *data)
Prepares the stroker.
qreal height() const
Returns the height of the rectangle.
qreal qpen_widthf(const QPen &p)
QDataBuffer< qreal > m_points
qreal width() const
Returns the width of the rectangle.
qreal miterLimit() const
Returns the miter limit of the pen.
const qreal * points() const
qreal y() const
Returns the y-coordinate of this point.
qreal dashOffset() const
Returns the dash offset for the pen.
void moveTo(qfixed x, qfixed y)
QDashStroker m_dash_stroker
void setStrokeWidth(qreal width)