56 #include "QtGui/qbrush.h" 57 #include "QtGui/qfont.h" 58 #include "QtGui/qpen.h" 59 #include "QtGui/qregion.h" 60 #include "QtGui/qmatrix.h" 61 #include "QtGui/qpainter.h" 62 #include "QtGui/qpainterpath.h" 63 #include "QtGui/qpaintengine.h" 64 #include <QtCore/qhash.h> 66 #include <private/qpen_p.h> 106 clipType(PathClip), matrix(m), operation(op), path(p) { }
109 clipType(RegionClip), matrix(m), operation(op), region(r) { }
112 clipType(RectClip), matrix(m), operation(op), rect(r) { }
115 clipType(RectFClip), matrix(m), operation(op), rectf(r) { }
193 : q_ptr(painter), d_ptrs(0), state(0), dummyState(0), txinv(0), inDestructor(false), d_ptrs_size(0),
194 refcount(1), device(0), original_device(0), helper_device(0), engine(0), emulationEngine(0),
217 StrokeAndFillDraw = 0x3
234 #if !defined(QT_NO_RAWFONT) 235 void drawGlyphs(
const quint32 *glyphArray,
QFixedPoint *positionArray,
int glyphCount,
236 const QRawFont &font,
bool overline =
false,
bool underline =
false,
237 bool strikeOut =
false);
241 void updateInvMatrix();
247 void checkEmulation();
251 return painter->d_ptr.data();
256 void detachPainterPrivate(
QPainter *q);
273 #endif // QPAINTER_P_H The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
QPainterClipInfo(const QRegion &r, Qt::ClipOperation op, const QTransform &m)
bool qbrush_has_transform(const QBrush &b)
Qt::LayoutDirection layoutDirection
Q_GUI_EXPORT void qt_draw_helper(QPainterPrivate *p, const QPainterPath &path, QPainterPrivate::DrawOperation operation)
QPaintEngineEx * extended
#define QT_END_NAMESPACE
This macro expands to.
Qt::ClipOperation operation
QString qt_generate_brush_key(const QBrush &brush)
CompositionMode
Defines the modes supported for digital image compositing.
QPainter::RenderHints renderHints
QPainter::CompositionMode composition_mode
Qt::BrushStyle qbrush_style(const QBrush &b)
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
Qt::PenStyle style() const
Returns the pen style.
bool qbrush_fast_equals(const QBrush &a, const QBrush &b)
QPainterClipInfo(const QPainterPath &p, Qt::ClipOperation op, const QTransform &m)
The QPointF class defines a point in the plane using floating point precision.
QPainterPrivate(QPainter *painter)
long ASN1_INTEGER_get ASN1_INTEGER * a
Qt::PenJoinStyle qpen_joinStyle(const QPen &p)
The QString class provides a Unicode character string.
Qt::PenCapStyle qpen_capStyle(const QPen &p)
The QVector class is a template class that provides a dynamic array.
The QPen class defines how a QPainter should draw lines and outlines of shapes.
QPainterDummyState * dummyState
bool qpen_fast_equals(const QPen &a, const QPen &b)
Qt::ClipOperation clipOperation
QVector< QPainterState * > states
#define QT_BEGIN_NAMESPACE
This macro expands to.
QPainterClipInfo(const QRect &r, Qt::ClipOperation op, const QTransform &m)
The QRectF class defines a rectangle in the plane using floating point precision. ...
bool qtransform_fast_equals(const QTransform &a, const QTransform &b)
QPainterDummyState * fakeState() const
QBrush qpen_brush(const QPen &p)
QPainterClipInfo(const QRectF &r, Qt::ClipOperation op, const QTransform &m)
qreal qpen_widthf(const QPen &p)
int rectSubtraction() const
QList< QPainterClipInfo > clipInfo
The QRegion class specifies a clip region for a painter.
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
int width() const
Returns the pen width with integer precision.
The QBrush class defines the fill pattern of shapes drawn by QPainter.
QPaintDevice * original_device
#define Q_DECLARE_PUBLIC(Class)
The QRawFont class provides access to a single physical instance of a font.
The QFont class specifies a font used for drawing text.
QPainterPrivate ** d_ptrs
void * data_ptr(const QTransform &t)
The QRect class defines a rectangle in the plane using integer precision.
QTransform redirectionMatrix
const QColor & qbrush_color(const QBrush &b)
QPaintDevice * helper_device
The QPaintEngineState class provides information about the active paint engine's current state...
Qt::PenStyle qpen_style(const QPen &p)
QEmulationPaintEngine * emulationEngine