5#ifndef QCOSMETICSTROKER_P_H
6#define QCOSMETICSTROKER_P_H
19#include <QtGui/private/qtguiglobal_p.h>
20#include <private/qdrawhelper_p.h>
21#include <private/qvectorpath_p.h>
22#include <private/qpaintengine_raster_p.h>
62 QCosmeticStroker(QRasterPaintEngineState *s,
const QRect &dr,
const QRect &dr_unclipped)
78 void drawLine(
const QPointF &p1,
const QPointF &p2);
79 void drawPath(
const QVectorPath &path);
80 void drawPoints(
const QPoint *points,
int num);
81 void drawPoints(
const QPointF *points,
int num);
118 void renderCubic(
const QPointF &p1,
const QPointF &p2,
const QPointF &p3,
const QPointF &p4,
int caps);
119 void renderCubicSubdivision(
PointF *points,
int level,
int caps);
121 void calculateLastPoint(qreal rx1, qreal ry1, qreal rx2, qreal ry2);
124 bool clipLine(qreal &x1, qreal &y1, qreal &x2, qreal &y2);
QCosmeticStroker(QRasterPaintEngineState *s, const QRect &dr, const QRect &dr_unclipped)
void drawPath(const QVectorPath &path)
QRasterPaintEngineState * state
bool clipLine(qreal &x1, qreal &y1, qreal &x2, qreal &y2)
void drawPoints(const QPoint *points, int num)
void drawLine(const QPointF &p1, const QPointF &p2)
Combined button and popup list for selecting options.
static const QPainterPath::ElementType * subPath(const QPainterPath::ElementType *t, const QPainterPath::ElementType *end, const qreal *points, bool *closed)
static bool drawLineAA(QCosmeticStroker *stroker, qreal x1, qreal y1, qreal x2, qreal y2, int caps)
static StrokeLine strokeLine(int strokeSelection)
QT_BEGIN_NAMESPACE typedef int FDot16
void drawPixelARGB32Opaque(QCosmeticStroker *stroker, int x, int y, int)
static void capAdjust(int caps, int &x1, int &x2, FDot16 &y, FDot16 yinc)
static uint sourceOver(uint d, uint color)
void drawPixel(QCosmeticStroker *stroker, int x, int y, int coverage)
static int swapCaps(int caps)
void drawPixelARGB32(QCosmeticStroker *stroker, int x, int y, int coverage)
void(* DrawPixel)(QCosmeticStroker *stroker, int x, int y, int coverage)
static bool drawLine(QCosmeticStroker *stroker, qreal x1, qreal y1, qreal x2, qreal y2, int caps)
static FDot16 FDot16FixedDiv(int x, int y)
static void splitCubic(QCosmeticStroker::PointF *points)
bool(* StrokeLine)(QCosmeticStroker *stroker, qreal x1, qreal y1, qreal x2, qreal y2, int caps)