4#ifndef QCOSMETICSTROKER_P_H
5#define QCOSMETICSTROKER_P_H
18#include <QtGui/private/qtguiglobal_p.h>
19#include <private/qdrawhelper_p.h>
20#include <private/qvectorpath_p.h>
21#include <private/qpaintengine_raster_p.h>
61 QCosmeticStroker(QRasterPaintEngineState *s,
const QRect &dr,
const QRect &dr_unclipped)
77 void drawLine(
const QPointF &p1,
const QPointF &p2);
78 void drawPath(
const QVectorPath &path);
79 void drawPoints(
const QPoint *points,
int num);
80 void drawPoints(
const QPointF *points,
int num);
117 void renderCubic(
const QPointF &p1,
const QPointF &p2,
const QPointF &p3,
const QPointF &p4,
int caps);
118 void renderCubicSubdivision(
PointF *points,
int level,
int caps);
120 void calculateLastPoint(qreal rx1, qreal ry1, qreal rx2, qreal ry2);
123 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)
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)