![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qpainter_p.h>
Classes | |
| struct | QPaintEngineDestructor |
| struct | SmallStack |
Public Types | |
| enum | DrawOperation { StrokeDraw = 0x1 , FillDraw = 0x2 , StrokeAndFillDraw = 0x3 } |
Static Public Member Functions | |
| static QPainterPrivate * | get (QPainter *painter) |
| static bool | attachPainterPrivate (QPainter *q, QPaintDevice *pdev) |
Public Attributes | |
| QPainter * | q_ptr |
| QVarLengthArray< std::unique_ptr< QPainterPrivate >, NDPtrs > | d_ptrs |
| std::unique_ptr< QPainterState > | state |
| SmallStack< std::unique_ptr< QPainterState > > | savedStates |
| std::unique_ptr< QPainterDummyState > | dummyState |
| QTransform | invMatrix |
| uint | txinv:1 |
| uint | inDestructor: 1 |
| uint | refcount = 1 |
| QPaintDevice * | device = nullptr |
| QPaintDevice * | original_device = nullptr |
| QPaintDevice * | helper_device = nullptr |
| std::unique_ptr< QPaintEngine, QPaintEngineDestructor > | engine |
| std::unique_ptr< QEmulationPaintEngine > | emulationEngine |
| QPaintEngineEx * | extended = nullptr |
| QBrush | colorBrush |
Static Public Attributes | |
| static constexpr qsizetype | NDPtrs = 4 |
Definition at line 158 of file qpainter_p.h.
| Enumerator | |
|---|---|
| StrokeDraw | |
| FillDraw | |
| StrokeAndFillDraw | |
Definition at line 186 of file qpainter_p.h.
|
explicit |
Definition at line 201 of file qpainter.cpp.
References inDestructor, q_ptr, and txinv.
|
default |
|
static |
Definition at line 239 of file qpainter.cpp.
| void QPainterPrivate::checkEmulation | ( | ) |
Definition at line 173 of file qpainter.cpp.
References extended.
Definition at line 291 of file qpainter.cpp.
| void QPainterPrivate::draw_helper | ( | const QPainterPath & | path, |
| DrawOperation | operation = StrokeAndFillDraw ) |
Definition at line 318 of file qpainter.cpp.
References QPainterPathStroker::QPainterPathStroker(), device, drawOpaqueBackground(), drawStretchedGradient(), extended, helper_device, QPaintEngine::QPainter, and txinv.
Referenced by qt_draw_helper().
| 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 5413 of file qpainter.cpp.
References extended.
| void QPainterPrivate::drawOpaqueBackground | ( | const QPainterPath & | path, |
| DrawOperation | operation ) |
Definition at line 474 of file qpainter.cpp.
Referenced by draw_helper().
| void QPainterPrivate::drawStretchedGradient | ( | const QPainterPath & | path, |
| DrawOperation | operation ) |
Definition at line 512 of file qpainter.cpp.
References QPainterPathStroker::QPainterPathStroker(), and helper_device.
Referenced by draw_helper().
| void QPainterPrivate::drawTextItem | ( | const QPointF & | p, |
| const QTextItem & | _ti, | ||
| QTextEngine * | textEngine ) |
Definition at line 6201 of file qpainter.cpp.
References extended.
| qreal QPainterPrivate::effectiveDevicePixelRatio | ( | ) | const |
Definition at line 220 of file qpainter.cpp.
References device.
|
inline |
Definition at line 191 of file qpainter_p.h.
|
inlinestatic |
Definition at line 218 of file qpainter_p.h.
| QTransform QPainterPrivate::hidpiScaleTransform | ( | ) | const |
Definition at line 229 of file qpainter.cpp.
| void QPainterPrivate::initFrom | ( | const QPaintDevice * | device | ) |
Definition at line 1521 of file qpainter.cpp.
Definition at line 1532 of file qpainter.cpp.
| void QPainterPrivate::updateEmulationSpecifier | ( | QPainterState * | s | ) |
Definition at line 656 of file qpainter.cpp.
| void QPainterPrivate::updateInvMatrix | ( | ) |
Definition at line 647 of file qpainter.cpp.
References txinv.
| void QPainterPrivate::updateMatrix | ( | ) |
Definition at line 627 of file qpainter.cpp.
| void QPainterPrivate::updateState | ( | QPainterState * | state | ) |
Definition at line 893 of file qpainter.cpp.
|
inline |
Definition at line 200 of file qpainter_p.h.
| void QPainterPrivate::updateStateImpl | ( | QPainterState * | state | ) |
Definition at line 861 of file qpainter.cpp.
| QTransform QPainterPrivate::viewTransform | ( | ) | const |
Definition at line 209 of file qpainter.cpp.
| QBrush QPainterPrivate::colorBrush |
Definition at line 245 of file qpainter_p.h.
| QVarLengthArray<std::unique_ptr<QPainterPrivate>, NDPtrs> QPainterPrivate::d_ptrs |
Definition at line 170 of file qpainter_p.h.
| QPaintDevice* QPainterPrivate::device = nullptr |
Definition at line 230 of file qpainter_p.h.
Referenced by draw_helper(), effectiveDevicePixelRatio(), and qt_cleanup_painter_state().
|
mutable |
Definition at line 179 of file qpainter_p.h.
| std::unique_ptr<QEmulationPaintEngine> QPainterPrivate::emulationEngine |
Definition at line 243 of file qpainter_p.h.
| std::unique_ptr<QPaintEngine, QPaintEngineDestructor> QPainterPrivate::engine |
Definition at line 241 of file qpainter_p.h.
| QPaintEngineEx* QPainterPrivate::extended = nullptr |
Definition at line 244 of file qpainter_p.h.
Referenced by checkEmulation(), draw_helper(), drawGlyphs(), drawTextItem(), and updateMatrix().
| QPaintDevice* QPainterPrivate::helper_device = nullptr |
Definition at line 232 of file qpainter_p.h.
Referenced by draw_helper(), and drawStretchedGradient().
| uint QPainterPrivate::inDestructor |
Definition at line 183 of file qpainter_p.h.
Referenced by QPainterPrivate().
| QTransform QPainterPrivate::invMatrix |
Definition at line 181 of file qpainter_p.h.
|
staticconstexpr |
Definition at line 169 of file qpainter_p.h.
| QPaintDevice* QPainterPrivate::original_device = nullptr |
Definition at line 231 of file qpainter_p.h.
| QPainter* QPainterPrivate::q_ptr |
Definition at line 165 of file qpainter_p.h.
Referenced by QPainterPrivate().
| uint QPainterPrivate::refcount = 1 |
Definition at line 184 of file qpainter_p.h.
| SmallStack<std::unique_ptr<QPainterState> > QPainterPrivate::savedStates |
Definition at line 177 of file qpainter_p.h.
| std::unique_ptr<QPainterState> QPainterPrivate::state |
Definition at line 172 of file qpainter_p.h.
| uint QPainterPrivate::txinv |
Definition at line 182 of file qpainter_p.h.
Referenced by QPainterPrivate(), draw_helper(), updateInvMatrix(), and updateMatrix().