QtBase  v6.3.1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
QPainterPrivate Class Reference

#include <qpainter_p.h>

Collaboration diagram for QPainterPrivate:
Collaboration graph
[legend]

Classes

struct  QPaintEngineDestructor
 
struct  SmallStack
 

Public Types

enum  DrawOperation { StrokeDraw = 0x1 , FillDraw = 0x2 , StrokeAndFillDraw = 0x3 }
 

Public Member Functions

 QPainterPrivate (QPainter *painter)
 
 ~QPainterPrivate ()
 
QPainterDummyStatefakeState () const
 
void updateEmulationSpecifier (QPainterState *s)
 
void updateStateImpl (QPainterState *state)
 
void updateState (QPainterState *state)
 
void updateState (std::unique_ptr< QPainterState > &state)
 
void draw_helper (const QPainterPath &path, DrawOperation operation=StrokeAndFillDraw)
 
void drawStretchedGradient (const QPainterPath &path, DrawOperation operation)
 
void drawOpaqueBackground (const QPainterPath &path, DrawOperation operation)
 
void drawTextItem (const QPointF &p, const QTextItem &_ti, QTextEngine *textEngine)
 
void drawGlyphs (const QPointF &decorationPosition, const quint32 *glyphArray, QFixedPoint *positionArray, int glyphCount, QFontEngine *fontEngine, bool overline=false, bool underline=false, bool strikeOut=false)
 
void updateMatrix ()
 
void updateInvMatrix ()
 
void checkEmulation ()
 
QTransform viewTransform () const
 
qreal effectiveDevicePixelRatio () const
 
QTransform hidpiScaleTransform () const
 
void detachPainterPrivate (QPainter *q)
 
void initFrom (const QPaintDevice *device)
 

Static Public Member Functions

static QPainterPrivateget (QPainter *painter)
 
static bool attachPainterPrivate (QPainter *q, QPaintDevice *pdev)
 

Public Attributes

QPainterq_ptr
 
QVarLengthArray< QPainterPrivate *, NDPtrsd_ptrs
 
std::unique_ptr< QPainterStatestate
 
SmallStack< std::unique_ptr< QPainterState > > savedStates
 
std::unique_ptr< QPainterDummyStatedummyState
 
QTransform invMatrix
 
uint txinv:1
 
uint inDestructor: 1
 
uint refcount = 1
 
QPaintDevicedevice = nullptr
 
QPaintDeviceoriginal_device = nullptr
 
QPaintDevicehelper_device = nullptr
 
std::unique_ptr< QPaintEngine, QPaintEngineDestructorengine
 
std::unique_ptr< QEmulationPaintEngineemulationEngine
 
QPaintEngineExextended = nullptr
 
QBrush colorBrush
 

Static Public Attributes

static constexpr qsizetype NDPtrs = 4
 

Detailed Description

Definition at line 193 of file qpainter_p.h.

Member Enumeration Documentation

◆ DrawOperation

Enumerator
StrokeDraw 
FillDraw 
StrokeAndFillDraw 

Definition at line 221 of file qpainter_p.h.

Constructor & Destructor Documentation

◆ QPainterPrivate()

QPainterPrivate::QPainterPrivate ( QPainter painter)
explicit

Definition at line 232 of file qpainter.cpp.

Here is the caller graph for this function:

◆ ~QPainterPrivate()

QPainterPrivate::~QPainterPrivate ( )
default

Member Function Documentation

◆ attachPainterPrivate()

bool QPainterPrivate::attachPainterPrivate ( QPainter q,
QPaintDevice pdev 
)
static

Definition at line 270 of file qpainter.cpp.

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

◆ checkEmulation()

void QPainterPrivate::checkEmulation ( )

Definition at line 204 of file qpainter.cpp.

◆ detachPainterPrivate()

void QPainterPrivate::detachPainterPrivate ( QPainter q)

Definition at line 323 of file qpainter.cpp.

Here is the call graph for this function:

◆ draw_helper()

void QPainterPrivate::draw_helper ( const QPainterPath path,
DrawOperation  operation = StrokeAndFillDraw 
)

Definition at line 350 of file qpainter.cpp.

Here is the call graph for this function:

◆ drawGlyphs()

void QPainterPrivate::drawGlyphs ( const QPointF decorationPosition,
const quint32 glyphArray,
QFixedPoint positionArray,
int  glyphCount,
QFontEngine fontEngine,
bool  overline = false,
bool  underline = false,
bool  strikeOut = false 
)

Definition at line 5345 of file qpainter.cpp.

◆ drawOpaqueBackground()

void QPainterPrivate::drawOpaqueBackground ( const QPainterPath path,
DrawOperation  operation 
)

Definition at line 506 of file qpainter.cpp.

Here is the caller graph for this function:

◆ drawStretchedGradient()

void QPainterPrivate::drawStretchedGradient ( const QPainterPath path,
DrawOperation  operation 
)

Definition at line 544 of file qpainter.cpp.

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

◆ drawTextItem()

void QPainterPrivate::drawTextItem ( const QPointF p,
const QTextItem _ti,
QTextEngine textEngine 
)

Definition at line 6121 of file qpainter.cpp.

Here is the call graph for this function:

◆ effectiveDevicePixelRatio()

qreal QPainterPrivate::effectiveDevicePixelRatio ( ) const

Definition at line 251 of file qpainter.cpp.

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

◆ fakeState()

QPainterDummyState* QPainterPrivate::fakeState ( ) const
inline

Definition at line 226 of file qpainter_p.h.

◆ get()

static QPainterPrivate* QPainterPrivate::get ( QPainter painter)
inlinestatic

Definition at line 253 of file qpainter_p.h.

Here is the caller graph for this function:

◆ hidpiScaleTransform()

QTransform QPainterPrivate::hidpiScaleTransform ( ) const

Definition at line 260 of file qpainter.cpp.

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

◆ initFrom()

void QPainterPrivate::initFrom ( const QPaintDevice device)

Definition at line 1550 of file qpainter.cpp.

Here is the call graph for this function:

◆ updateEmulationSpecifier()

void QPainterPrivate::updateEmulationSpecifier ( QPainterState s)

Definition at line 688 of file qpainter.cpp.

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

◆ updateInvMatrix()

void QPainterPrivate::updateInvMatrix ( )

Definition at line 679 of file qpainter.cpp.

◆ updateMatrix()

void QPainterPrivate::updateMatrix ( )

Definition at line 659 of file qpainter.cpp.

Here is the call graph for this function:

◆ updateState() [1/2]

void QPainterPrivate::updateState ( QPainterState state)

Definition at line 925 of file qpainter.cpp.

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

◆ updateState() [2/2]

void QPainterPrivate::updateState ( std::unique_ptr< QPainterState > &  state)
inline

Definition at line 235 of file qpainter_p.h.

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

◆ updateStateImpl()

void QPainterPrivate::updateStateImpl ( QPainterState state)

Definition at line 893 of file qpainter.cpp.

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

◆ viewTransform()

QTransform QPainterPrivate::viewTransform ( ) const

Definition at line 240 of file qpainter.cpp.

Here is the caller graph for this function:

Member Data Documentation

◆ colorBrush

QBrush QPainterPrivate::colorBrush

Definition at line 280 of file qpainter_p.h.

◆ d_ptrs

QVarLengthArray<QPainterPrivate*, NDPtrs> QPainterPrivate::d_ptrs

Definition at line 205 of file qpainter_p.h.

◆ device

QPaintDevice* QPainterPrivate::device = nullptr

Definition at line 265 of file qpainter_p.h.

◆ dummyState

std::unique_ptr<QPainterDummyState> QPainterPrivate::dummyState
mutable

Definition at line 214 of file qpainter_p.h.

◆ emulationEngine

std::unique_ptr<QEmulationPaintEngine> QPainterPrivate::emulationEngine

Definition at line 278 of file qpainter_p.h.

◆ engine

std::unique_ptr<QPaintEngine, QPaintEngineDestructor> QPainterPrivate::engine

Definition at line 276 of file qpainter_p.h.

◆ extended

QPaintEngineEx* QPainterPrivate::extended = nullptr

Definition at line 279 of file qpainter_p.h.

◆ helper_device

QPaintDevice* QPainterPrivate::helper_device = nullptr

Definition at line 267 of file qpainter_p.h.

◆ inDestructor

uint QPainterPrivate::inDestructor

Definition at line 218 of file qpainter_p.h.

◆ invMatrix

QTransform QPainterPrivate::invMatrix

Definition at line 216 of file qpainter_p.h.

◆ NDPtrs

constexpr qsizetype QPainterPrivate::NDPtrs = 4
staticconstexpr

Definition at line 204 of file qpainter_p.h.

◆ original_device

QPaintDevice* QPainterPrivate::original_device = nullptr

Definition at line 266 of file qpainter_p.h.

◆ q_ptr

QPainter* QPainterPrivate::q_ptr

Definition at line 200 of file qpainter_p.h.

◆ refcount

uint QPainterPrivate::refcount = 1

Definition at line 219 of file qpainter_p.h.

◆ savedStates

SmallStack<std::unique_ptr<QPainterState> > QPainterPrivate::savedStates

Definition at line 212 of file qpainter_p.h.

◆ state

std::unique_ptr<QPainterState> QPainterPrivate::state

Definition at line 207 of file qpainter_p.h.

◆ txinv

uint QPainterPrivate::txinv

Definition at line 217 of file qpainter_p.h.


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