Qt 4.8
|
#include "qcosmeticstroker_p.h"
#include "private/qpainterpath_p.h"
#include <qdebug.h>
#include <math.h>
Go to the source code of this file.
Macros | |
#define | toF26Dot6(x) ((int)((x)*64.)) |
Typedefs | |
typedef void(* | DrawPixel) (QCosmeticStroker *stroker, int x, int y, int coverage) |
Enumerations | |
enum | StrokeSelection { Aliased = 0, AntiAliased = 1, Solid = 0, Dashed = 2, RegularDraw = 0, FastDraw = 4 } |
Functions | |
static void | capAdjust (int caps, int &x1, int &x2, int &y, int yinc) |
template<DrawPixel drawPixel, class Dasher > | |
static bool | drawLine (QCosmeticStroker *stroker, qreal x1, qreal y1, qreal x2, qreal y2, int caps) |
template<DrawPixel drawPixel, class Dasher > | |
static bool | drawLineAA (QCosmeticStroker *stroker, qreal x1, qreal y1, qreal x2, qreal y2, int caps) |
void | drawPixel (QCosmeticStroker *stroker, int x, int y, int coverage) |
void | drawPixelARGB32 (QCosmeticStroker *stroker, int x, int y, int coverage) |
void | drawPixelARGB32Opaque (QCosmeticStroker *stroker, int x, int y, int) |
static int | F16Dot16FixedDiv (int x, int y) |
static uint | sourceOver (uint d, uint color) |
static void | splitCubic (QCosmeticStroker::PointF *points) |
static StrokeLine | strokeLine (int strokeSelection) |
static const QPainterPath::ElementType * | subPath (const QPainterPath::ElementType *t, const QPainterPath::ElementType *end, const qreal *points, bool *closed) |
static int | swapCaps (int caps) |
#define toF26Dot6 | ( | x | ) | ((int)((x)*64.)) |
Definition at line 63 of file qcosmeticstroker.cpp.
Referenced by QCosmeticStroker::calculateLastPoint(), drawLine(), and drawLineAA().
typedef void(* DrawPixel) (QCosmeticStroker *stroker, int x, int y, int coverage) |
Definition at line 77 of file qcosmeticstroker.cpp.
enum StrokeSelection |
Enumerator | |
---|---|
Aliased | |
AntiAliased | |
Solid | |
Dashed | |
RegularDraw | |
FastDraw |
Definition at line 188 of file qcosmeticstroker.cpp.
|
inlinestatic |
Definition at line 718 of file qcosmeticstroker.cpp.
Referenced by drawLine(), and drawLineAA().
|
static |
Definition at line 734 of file qcosmeticstroker.cpp.
Referenced by QPainter::drawLine().
|
static |
Definition at line 905 of file qcosmeticstroker.cpp.
|
inline |
Definition at line 146 of file qcosmeticstroker.cpp.
Referenced by drawLine(), drawLineAA(), QCosmeticStroker::drawPoints(), and strokeLine().
|
inline |
Definition at line 167 of file qcosmeticstroker.cpp.
Referenced by strokeLine().
|
inline |
Definition at line 178 of file qcosmeticstroker.cpp.
Referenced by strokeLine().
|
inlinestatic |
Definition at line 70 of file qcosmeticstroker.cpp.
Referenced by QCosmeticStroker::calculateLastPoint(), drawLine(), and drawLineAA().
Definition at line 65 of file qcosmeticstroker.cpp.
Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().
|
static |
Definition at line 664 of file qcosmeticstroker.cpp.
Referenced by QCosmeticStroker::renderCubicSubdivision().
|
static |
Definition at line 197 of file qcosmeticstroker.cpp.
Referenced by QCosmeticStroker::setup().
|
inlinestatic |
Definition at line 498 of file qcosmeticstroker.cpp.
Referenced by QCosmeticStroker::drawPath().
|
inlinestatic |
Definition at line 711 of file qcosmeticstroker.cpp.
Referenced by drawLine(), and drawLineAA().