Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QCosmeticStroker Class Reference

#include <qcosmeticstroker_p.h>

+ Collaboration diagram for QCosmeticStroker:

Classes

struct  Point
 
struct  PointF
 

Public Types

enum  Caps { NoCaps = 0 , CapBegin = 0x1 , CapEnd = 0x2 }
 
enum  Direction {
  NoDirection = 0 , TopToBottom = 0x1 , BottomToTop = 0x2 , LeftToRight = 0x4 ,
  RightToLeft = 0x8 , VerticalMask = 0x3 , HorizontalMask = 0xc
}
 
enum  { NSPANS = 255 }
 

Public Member Functions

 QCosmeticStroker (QRasterPaintEngineState *s, const QRect &dr, const QRect &dr_unclipped)
 
 ~QCosmeticStroker ()
 
void drawLine (const QPointF &p1, const QPointF &p2)
 
void drawPath (const QVectorPath &path)
 
void drawPoints (const QPoint *points, int num)
 
void drawPoints (const QPointF *points, int num)
 
bool clipLine (qreal &x1, qreal &y1, qreal &x2, qreal &y2)
 

Public Attributes

QRasterPaintEngineStatestate
 
QRect deviceRect
 
QRect clip
 
qreal xmin
 
qreal xmax
 
qreal ymin
 
qreal ymax
 
StrokeLine stroke
 
bool drawCaps
 
int * pattern
 
int * reversePattern
 
int patternSize
 
int patternLength
 
int patternOffset
 
QT_FT_Span spans [NSPANS]
 
int current_span
 
ProcessSpans blend
 
int opacity
 
uint color
 
uintpixels
 
int ppl
 
Direction lastDir
 
Point lastPixel
 
bool lastAxisAligned
 

Detailed Description

Definition at line 32 of file qcosmeticstroker_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NSPANS 

Definition at line 99 of file qcosmeticstroker_p.h.

◆ Caps

Enumerator
NoCaps 
CapBegin 
CapEnd 

Definition at line 44 of file qcosmeticstroker_p.h.

◆ Direction

Enumerator
NoDirection 
TopToBottom 
BottomToTop 
LeftToRight 
RightToLeft 
VerticalMask 
HorizontalMask 

Definition at line 51 of file qcosmeticstroker_p.h.

Constructor & Destructor Documentation

◆ QCosmeticStroker()

QCosmeticStroker::QCosmeticStroker ( QRasterPaintEngineState * s,
const QRect & dr,
const QRect & dr_unclipped )
inline

Definition at line 61 of file qcosmeticstroker_p.h.

◆ ~QCosmeticStroker()

QCosmeticStroker::~QCosmeticStroker ( )
inline

Definition at line 75 of file qcosmeticstroker_p.h.

References reversePattern.

Member Function Documentation

◆ clipLine()

bool QCosmeticStroker::clipLine ( qreal & x1,
qreal & y1,
qreal & x2,
qreal & y2 )

Definition at line 286 of file qcosmeticstroker.cpp.

References lastPixel, qIsFinite(), QCosmeticStroker::Point::x, xmax, xmin, ymax, and ymin.

Referenced by drawLine(), and drawLineAA().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawLine()

void QCosmeticStroker::drawLine ( const QPointF & p1,
const QPointF & p2 )

Definition at line 342 of file qcosmeticstroker.cpp.

References blend, CapBegin, CapEnd, current_span, QPen::dashOffset(), drawCaps, drawPoints(), QRasterPaintEngineState::lastPen, lastPixel, QPainterState::matrix, p1, p2, patternOffset, QRasterPaintEngineState::penData, spans, state, stroke, QCosmeticStroker::Point::x, and QCosmeticStroker::Point::y.

Referenced by QRasterPaintEngine::drawLines(), and QRasterPaintEngine::drawLines().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawPath()

void QCosmeticStroker::drawPath ( const QVectorPath & path)

◆ drawPoints() [1/2]

void QCosmeticStroker::drawPoints ( const QPoint * points,
int num )

Definition at line 362 of file qcosmeticstroker.cpp.

References blend, current_span, drawPixel(), QPainterState::matrix, QRasterPaintEngineState::penData, spans, and state.

Referenced by drawLine(), QRasterPaintEngine::drawPoints(), and QRasterPaintEngine::drawPoints().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ drawPoints() [2/2]

void QCosmeticStroker::drawPoints ( const QPointF * points,
int num )

Definition at line 375 of file qcosmeticstroker.cpp.

References blend, current_span, drawPixel(), QPainterState::matrix, QRasterPaintEngineState::penData, spans, and state.

+ Here is the call graph for this function:

Member Data Documentation

◆ blend

ProcessSpans QCosmeticStroker::blend

Definition at line 102 of file qcosmeticstroker_p.h.

Referenced by drawLine(), drawPath(), drawPixel(), drawPoints(), and drawPoints().

◆ clip

QRect QCosmeticStroker::clip

Definition at line 85 of file qcosmeticstroker_p.h.

Referenced by drawPixel(), drawPixelARGB32(), and drawPixelARGB32Opaque().

◆ color

uint QCosmeticStroker::color

Definition at line 106 of file qcosmeticstroker_p.h.

Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().

◆ current_span

int QCosmeticStroker::current_span

Definition at line 101 of file qcosmeticstroker_p.h.

Referenced by drawLine(), drawPath(), drawPixel(), drawPoints(), and drawPoints().

◆ deviceRect

QRect QCosmeticStroker::deviceRect

Definition at line 84 of file qcosmeticstroker_p.h.

◆ drawCaps

bool QCosmeticStroker::drawCaps

Definition at line 91 of file qcosmeticstroker_p.h.

Referenced by drawLine(), and drawPath().

◆ lastAxisAligned

bool QCosmeticStroker::lastAxisAligned

Definition at line 112 of file qcosmeticstroker_p.h.

Referenced by drawLine().

◆ lastDir

Direction QCosmeticStroker::lastDir

Definition at line 110 of file qcosmeticstroker_p.h.

Referenced by drawLine().

◆ lastPixel

Point QCosmeticStroker::lastPixel

Definition at line 111 of file qcosmeticstroker_p.h.

Referenced by clipLine(), drawLine(), drawLine(), and drawPath().

◆ opacity

int QCosmeticStroker::opacity

Definition at line 104 of file qcosmeticstroker_p.h.

Referenced by drawPixel().

◆ pattern

int* QCosmeticStroker::pattern

Definition at line 93 of file qcosmeticstroker_p.h.

◆ patternLength

int QCosmeticStroker::patternLength

Definition at line 96 of file qcosmeticstroker_p.h.

◆ patternOffset

int QCosmeticStroker::patternOffset

Definition at line 97 of file qcosmeticstroker_p.h.

Referenced by drawLine(), and drawPath().

◆ patternSize

int QCosmeticStroker::patternSize

Definition at line 95 of file qcosmeticstroker_p.h.

◆ pixels

uint* QCosmeticStroker::pixels

Definition at line 107 of file qcosmeticstroker_p.h.

Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().

◆ ppl

int QCosmeticStroker::ppl

Definition at line 108 of file qcosmeticstroker_p.h.

Referenced by drawPixelARGB32(), and drawPixelARGB32Opaque().

◆ reversePattern

int* QCosmeticStroker::reversePattern

Definition at line 94 of file qcosmeticstroker_p.h.

Referenced by ~QCosmeticStroker().

◆ spans

QT_FT_Span QCosmeticStroker::spans[NSPANS]

Definition at line 100 of file qcosmeticstroker_p.h.

Referenced by drawLine(), drawPath(), drawPixel(), drawPoints(), and drawPoints().

◆ state

QRasterPaintEngineState* QCosmeticStroker::state

Definition at line 83 of file qcosmeticstroker_p.h.

Referenced by drawLine(), drawPath(), drawPixel(), drawPoints(), and drawPoints().

◆ stroke

StrokeLine QCosmeticStroker::stroke

Definition at line 90 of file qcosmeticstroker_p.h.

Referenced by drawLine(), and drawPath().

◆ xmax

qreal QCosmeticStroker::xmax

Definition at line 87 of file qcosmeticstroker_p.h.

Referenced by clipLine().

◆ xmin

qreal QCosmeticStroker::xmin

Definition at line 87 of file qcosmeticstroker_p.h.

Referenced by clipLine().

◆ ymax

qreal QCosmeticStroker::ymax

Definition at line 88 of file qcosmeticstroker_p.h.

Referenced by clipLine().

◆ ymin

qreal QCosmeticStroker::ymin

Definition at line 88 of file qcosmeticstroker_p.h.

Referenced by clipLine().


The documentation for this class was generated from the following files: