Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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.

References QCosmeticStroker(), current_span, lastAxisAligned, lastDir, NoDirection, pattern, patternLength, patternOffset, patternSize, and reversePattern.

Referenced by QCosmeticStroker().

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

◆ ~QCosmeticStroker()

QCosmeticStroker::~QCosmeticStroker ( )
inline

Definition at line 75 of file qcosmeticstroker_p.h.

References pattern, and reversePattern.

Member Function Documentation

◆ clipLine()

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

Definition at line 286 of file qcosmeticstroker.cpp.

◆ drawLine()

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

Definition at line 342 of file qcosmeticstroker.cpp.

References CapBegin, CapEnd, current_span, drawCaps, and stroke.

◆ drawPath()

void QCosmeticStroker::drawPath ( const QVectorPath & path)

Definition at line 496 of file qcosmeticstroker.cpp.

References CapBegin, CapEnd, current_span, drawCaps, NoCaps, and stroke.

◆ drawPoints() [1/2]

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

Definition at line 362 of file qcosmeticstroker.cpp.

References current_span.

◆ drawPoints() [2/2]

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

Definition at line 375 of file qcosmeticstroker.cpp.

References current_span.

Member Data Documentation

◆ blend

ProcessSpans QCosmeticStroker::blend

Definition at line 102 of file qcosmeticstroker_p.h.

◆ clip

QRect QCosmeticStroker::clip

Definition at line 85 of file qcosmeticstroker_p.h.

◆ color

uint QCosmeticStroker::color

Definition at line 106 of file qcosmeticstroker_p.h.

◆ current_span

int QCosmeticStroker::current_span

◆ 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 QCosmeticStroker(), and drawLine().

◆ lastDir

Direction QCosmeticStroker::lastDir

Definition at line 110 of file qcosmeticstroker_p.h.

Referenced by QCosmeticStroker(), and drawLine().

◆ lastPixel

Point QCosmeticStroker::lastPixel

Definition at line 111 of file qcosmeticstroker_p.h.

Referenced by drawLine().

◆ 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.

Referenced by QCosmeticStroker(), and ~QCosmeticStroker().

◆ patternLength

int QCosmeticStroker::patternLength

Definition at line 96 of file qcosmeticstroker_p.h.

Referenced by QCosmeticStroker().

◆ patternOffset

int QCosmeticStroker::patternOffset

Definition at line 97 of file qcosmeticstroker_p.h.

Referenced by QCosmeticStroker().

◆ patternSize

int QCosmeticStroker::patternSize

Definition at line 95 of file qcosmeticstroker_p.h.

Referenced by QCosmeticStroker().

◆ pixels

uint* QCosmeticStroker::pixels

Definition at line 107 of file qcosmeticstroker_p.h.

◆ 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(), and ~QCosmeticStroker().

◆ spans

QT_FT_Span QCosmeticStroker::spans[NSPANS]

Definition at line 100 of file qcosmeticstroker_p.h.

◆ state

QRasterPaintEngineState* QCosmeticStroker::state

Definition at line 83 of file qcosmeticstroker_p.h.

◆ 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.

◆ xmin

qreal QCosmeticStroker::xmin

Definition at line 87 of file qcosmeticstroker_p.h.

◆ ymax

qreal QCosmeticStroker::ymax

Definition at line 88 of file qcosmeticstroker_p.h.

◆ ymin

qreal QCosmeticStroker::ymin

Definition at line 88 of file qcosmeticstroker_p.h.


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