Qt 4.8
Classes | Functions
qpainter_p.h File Reference
#include "QtGui/qbrush.h"
#include "QtGui/qfont.h"
#include "QtGui/qpen.h"
#include "QtGui/qregion.h"
#include "QtGui/qmatrix.h"
#include "QtGui/qpainter.h"
#include "QtGui/qpainterpath.h"
#include "QtGui/qpaintengine.h"
#include <QtCore/qhash.h>
#include <private/qpen_p.h>

Go to the source code of this file.

Classes

struct  DataPtrContainer
 
class  QPainterClipInfo
 
struct  QPainterDummyState
 
class  QPainterPrivate
 
class  QPainterState
 

Functions

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

Function Documentation

◆ data_ptr() [1/3]

void* data_ptr ( const QTransform t)
inline

◆ data_ptr() [2/3]

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

Definition at line 85 of file qpainter_p.h.

85 { return const_cast<QPen &>(p).data_ptr(); }
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Definition: qpen.h:64
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81

◆ data_ptr() [3/3]

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

Definition at line 94 of file qpainter_p.h.

94 { return const_cast<QBrush &>(p).data_ptr(); }
The QBrush class defines the fill pattern of shapes drawn by QPainter.
Definition: qbrush.h:76
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81

◆ qbrush_color()

const QColor& qbrush_color ( const QBrush b)
inline

Definition at line 97 of file qpainter_p.h.

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

97 { return data_ptr(b)->color; }
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81

◆ qbrush_fast_equals()

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

Definition at line 95 of file qpainter_p.h.

Referenced by QRasterPaintEngine::ensureBrush(), and QGL2PaintEngineExPrivate::setBrush().

95 { return data_ptr(a) == data_ptr(b); }
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81

◆ qbrush_has_transform()

bool qbrush_has_transform ( const QBrush b)
inline

Definition at line 98 of file qpainter_p.h.

98 { return data_ptr(b)->transform.type() > QTransform::TxNone; }
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81

◆ qbrush_style()

Qt::BrushStyle qbrush_style ( const QBrush b)
inline

◆ qpen_brush()

QBrush qpen_brush ( const QPen p)
inline

◆ qpen_capStyle()

Qt::PenCapStyle qpen_capStyle ( const QPen p)
inline

Definition at line 90 of file qpainter_p.h.

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

90 { return data_ptr(p)->capStyle; }
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81

◆ qpen_fast_equals()

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

Definition at line 86 of file qpainter_p.h.

Referenced by QRasterPaintEngine::ensurePen(), and QPaintEngineEx::stroke().

86 { return data_ptr(a) == data_ptr(b); }
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81

◆ qpen_joinStyle()

Qt::PenJoinStyle qpen_joinStyle ( const QPen p)
inline

Definition at line 91 of file qpainter_p.h.

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

91 { return data_ptr(p)->joinStyle; }
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81

◆ qpen_style()

Qt::PenStyle qpen_style ( const QPen p)
inline

◆ qpen_widthf()

qreal qpen_widthf ( const QPen p)
inline

◆ qt_draw_helper()

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

Definition at line 9937 of file qpainter.cpp.

Referenced by QVGPaintEngine::fill(), and QOpenGLPaintEngine::fill().

9938 {
9939  p->draw_helper(path, operation);
9940 }
void draw_helper(const QPainterPath &path, DrawOperation operation=StrokeAndFillDraw)
Definition: qpainter.cpp:355

◆ 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 82 of file qpainter_p.h.

82 { return data_ptr(a) == data_ptr(b); }
void * data_ptr(const QTransform &t)
Definition: qpainter_p.h:81