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
qpainter_p.h File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

#include <QtCore/qvarlengtharray.h>
#include <QtGui/private/qtguiglobal_p.h>
#include "QtGui/qbrush.h"
#include "QtGui/qcolorspace.h"
#include "QtGui/qcolortransform.h"
#include "QtGui/qfont.h"
#include "QtGui/qpen.h"
#include "QtGui/qregion.h"
#include "QtGui/qpainter.h"
#include "QtGui/qpainterpath.h"
#include "QtGui/qpaintengine.h"
#include <private/qpen_p.h>
#include <memory>
#include <stack>
+ Include dependency graph for qpainter_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  DataPtrContainer
 
class  QPainterClipInfo
 
class  QPainterState
 
struct  QPainterDummyState
 
class  QPainterPrivate
 
struct  QPainterPrivate::SmallStack< T, N >
 
struct  QPainterPrivate::QPaintEngineDestructor
 

Functions

const voiddata_ptr (const QTransform &t)
 
bool qtransform_fast_equals (const QTransform &a, const QTransform &b)
 
QPen::DataPtrdata_ptr (const QPen &p)
 
bool qpen_fast_equals (const QPen &a, const QPen &b)
 
QBrush qpen_brush (const QPen &p)
 
qreal qpen_widthf (const QPen &p)
 
Qt::PenStyle qpen_style (const QPen &p)
 
Qt::PenCapStyle qpen_capStyle (const QPen &p)
 
Qt::PenJoinStyle qpen_joinStyle (const QPen &p)
 
QBrush::DataPtrdata_ptr (const QBrush &p)
 
bool qbrush_fast_equals (const QBrush &a, const QBrush &b)
 
Qt::BrushStyle qbrush_style (const QBrush &b)
 
const QColorqbrush_color (const QBrush &b)
 
bool qbrush_has_transform (const QBrush &b)
 
 Q_DECLARE_TYPEINFO (QPainterClipInfo, Q_RELOCATABLE_TYPE)
 
Q_GUI_EXPORT void qt_draw_helper (QPainterPrivate *p, const QPainterPath &path, QPainterPrivate::DrawOperation operation)
 
QString qt_generate_brush_key (const QBrush &brush)
 

Function Documentation

◆ data_ptr() [1/3]

QBrush::DataPtr & data_ptr ( const QBrush & p)
inline

Definition at line 61 of file qpainter_p.h.

References data_ptr().

+ Here is the call graph for this function:

◆ data_ptr() [2/3]

QPen::DataPtr & data_ptr ( const QPen & p)
inline

Definition at line 52 of file qpainter_p.h.

References data_ptr().

+ Here is the call graph for this function:

◆ data_ptr() [3/3]

◆ Q_DECLARE_TYPEINFO()

Q_DECLARE_TYPEINFO ( QPainterClipInfo ,
Q_RELOCATABLE_TYPE  )

◆ qbrush_color()

const QColor & qbrush_color ( const QBrush & b)
inline

Definition at line 64 of file qpainter_p.h.

References data_ptr().

Referenced by QBlitterPaintEngine::drawRects(), QBlitterPaintEngine::drawRects(), QBlitterPaintEngine::fillRect(), QSpanData::setup(), and QBlitterPaintEnginePrivate::updateBrushState().

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

◆ qbrush_fast_equals()

bool qbrush_fast_equals ( const QBrush & a,
const QBrush & b )
inline

Definition at line 62 of file qpainter_p.h.

References data_ptr().

Referenced by QOpenGL2PaintEngineExPrivate::setBrush(), and QWindowsDirect2DPaintEnginePrivate::updateBrush().

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

◆ qbrush_has_transform()

bool qbrush_has_transform ( const QBrush & b)
inline

Definition at line 65 of file qpainter_p.h.

References data_ptr(), and QTransform::TxNone.

+ Here is the call graph for this function:

◆ qbrush_style()

Qt::BrushStyle qbrush_style ( const QBrush & b)
inline

Definition at line 63 of file qpainter_p.h.

References data_ptr().

Referenced by QPaintEngineEx::draw(), QWindowsDirect2DPaintEngine::draw(), QEmulationPaintEngine::drawTextItem(), QEmulationPaintEngine::fill(), QOpenGL2PaintEngineEx::fill(), QBlitterPaintEngine::fillRect(), QOpenGL2PaintEngineExPrivate::setBrush(), QSpanData::setup(), QPaintEngineEx::stroke(), QEmulationPaintEngine::stroke(), QOpenGL2PaintEngineEx::stroke(), QBlitterPaintEnginePrivate::updateBrushState(), and QPainterPrivate::updateEmulationSpecifier().

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

◆ qpen_brush()

QBrush qpen_brush ( const QPen & p)
inline

Definition at line 54 of file qpainter_p.h.

References data_ptr().

Referenced by QPainterPrivate::checkEmulation(), QPaintEngineEx::draw(), QWindowsDirect2DPaintEngine::draw(), QOpenGL2PaintEngineExPrivate::stroke(), QOpenGL2PaintEngineEx::stroke(), and QPainterPrivate::updateEmulationSpecifier().

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

◆ qpen_capStyle()

Qt::PenCapStyle qpen_capStyle ( const QPen & p)
inline

Definition at line 57 of file qpainter_p.h.

References data_ptr().

Referenced by QTriangulatingStroker::process(), and QRasterPaintEngine::updatePen().

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

◆ qpen_fast_equals()

bool qpen_fast_equals ( const QPen & a,
const QPen & b )
inline

Definition at line 53 of file qpainter_p.h.

References data_ptr().

Referenced by QPaintEngineEx::stroke(), and QWindowsDirect2DPaintEnginePrivate::updatePen().

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

◆ qpen_joinStyle()

Qt::PenJoinStyle qpen_joinStyle ( const QPen & p)
inline

Definition at line 58 of file qpainter_p.h.

References data_ptr().

Referenced by QTriangulatingStroker::process(), and QRasterPaintEngine::updatePen().

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

◆ qpen_style()

Qt::PenStyle qpen_style ( const QPen & p)
inline

Definition at line 56 of file qpainter_p.h.

References data_ptr(), and QBrush::style().

Referenced by QPaintEngineEx::draw(), QWindowsDirect2DPaintEngine::draw(), QRasterPaintEngine::drawEllipse(), QOpenGL2PaintEngineExPrivate::stroke(), QRasterPaintEngine::stroke(), QOpenGL2PaintEngineEx::stroke(), QPainterPrivate::updateEmulationSpecifier(), QRasterPaintEngine::updatePen(), and QBlitterPaintEnginePrivate::updatePenState().

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

◆ qpen_widthf()

qreal qpen_widthf ( const QPen & p)
inline

Definition at line 55 of file qpainter_p.h.

References data_ptr().

Referenced by QTriangulatingStroker::process(), QDashedStrokeProcessor::process(), QOpenGL2PaintEngineExPrivate::stroke(), QRasterPaintEngine::stroke(), and QRasterPaintEngine::updatePen().

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

◆ qt_draw_helper()

Q_GUI_EXPORT void qt_draw_helper ( QPainterPrivate * p,
const QPainterPath & path,
QPainterPrivate::DrawOperation operation )

Definition at line 8162 of file qpainter.cpp.

◆ qt_generate_brush_key()

QString qt_generate_brush_key ( const QBrush & brush)

◆ qtransform_fast_equals()

bool qtransform_fast_equals ( const QTransform & a,
const QTransform & b )
inline

Definition at line 49 of file qpainter_p.h.

References data_ptr().

+ Here is the call graph for this function: