7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qnamespace.h>
9#include <QtCore/qobjectdefs.h>
10#include <QtCore/qscopedpointer.h>
11#include <QtGui/qpainter.h>
39 qreal descent()
const;
43 RenderFlags renderFlags()
const;
55 PrimitiveTransform = 0x00000001,
56 PatternTransform = 0x00000002,
57 PixmapTransform = 0x00000004,
58 PatternBrush = 0x00000008,
59 LinearGradientFill = 0x00000010,
60 RadialGradientFill = 0x00000020,
61 ConicalGradientFill = 0x00000040,
62 AlphaBlend = 0x00000080,
63 PorterDuff = 0x00000100,
64 PainterPaths = 0x00000200,
65 Antialiasing = 0x00000400,
66 BrushStroke = 0x00000800,
67 ConstantOpacity = 0x00001000,
68 MaskedBrush = 0x00002000,
69 PerspectiveTransform = 0x00004000,
70 BlendModes = 0x00008000,
71 ObjectBoundingModeGradients = 0x00010000,
72 RasterOpModes = 0x00020000,
73 PaintOutsidePaintEvent = 0x20000000,
81 AllFeatures = 0xffffffff
88 DirtyBrushOrigin = 0x0004,
90 DirtyBackground = 0x0010,
91 DirtyBackgroundMode = 0x0020,
92 DirtyTransform = 0x0040,
93 DirtyClipRegion = 0x0080,
94 DirtyClipPath = 0x0100,
96 DirtyCompositionMode = 0x0400,
97 DirtyClipEnabled = 0x0800,
98 DirtyOpacity = 0x1000,
111 explicit QPaintEngine(PaintEngineFeatures features=PaintEngineFeatures());
122 virtual void drawRects(
const QRect *rects,
int rectCount);
123 virtual void drawRects(
const QRectF *rects,
int rectCount);
125 virtual void drawLines(
const QLine *lines,
int lineCount);
126 virtual void drawLines(
const QLineF *lines,
int lineCount);
128 virtual void drawEllipse(
const QRectF &
r);
129 virtual void drawEllipse(
const QRect &
r);
133 virtual void drawPoints(
const QPointF *
points,
int pointCount);
134 virtual void drawPoints(
const QPoint *
points,
int pointCount);
148 void setSystemClip(
const QRegion &baseClip);
152 QRect systemRect()
const;
155 virtual QPoint coordinateOffset()
const;
179 inline void fix_neg_rect(
int *
x,
int *
y,
int *
w,
int *
h);
181 inline bool testDirty(DirtyFlags df);
182 inline void setDirty(DirtyFlags df);
183 inline void clearDirty(DirtyFlags df);
185 bool hasFeature(PaintEngineFeatures feature)
const {
return bool(gccaps & feature); }
208 void setAutoDestruct(
bool autoDestr) { selfDestruct = autoDestr; }
209 bool autoDestruct()
const {
return selfDestruct; }
212 friend class QPainterReplayer;
214 friend class QFontEngineMac;
215 friend class QFontEngineWin;
218 friend class QFontEngineQPF2;
223 friend class QWin32PaintEngine;
224 friend class QWin32PaintEnginePrivate;
227 friend class QX11GLPlatformPixmap;
234 QPaintEngine::DirtyFlags
state()
const {
return dirtyFlags; }
239 QBrush backgroundBrush()
const;
247 bool isClipEnabled()
const;
249 QPainter::RenderHints renderHints()
const;
251 qreal opacity()
const;
255 bool brushNeedsResolving()
const;
256 bool penNeedsResolving()
const;
287 return bool(
state->dirtyFlags & df);
292 state->dirtyFlags |= df;
298 state->dirtyFlags &= ~df;
IOBluetoothDevice * device
The QPaintEngineState class provides information about the active paint engine's current state....
QPaintEngine::DirtyFlags dirtyFlags
QPaintEngine::DirtyFlags state() const
Returns a combination of flags identifying the set of properties that need to be updated when updatin...
void setActive(bool newState)
Sets the active state of the paint engine to state.
virtual void updateState(const QPaintEngineState &state)=0
Reimplement this function to update the state of a paint engine.
PolygonDrawMode
\value OddEvenMode The polygon should be drawn using OddEven fill rule.
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)=0
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
virtual bool begin(QPaintDevice *pdev)=0
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
void fix_neg_rect(int *x, int *y, int *w, int *h)
PaintEngineFeature
This enum is used to describe the features or capabilities that the paint engine has.
void setDirty(DirtyFlags df)
QPaintEngineState * state
PaintEngineFeatures gccaps
virtual bool end()=0
Reimplement this function to finish painting on the current paint device.
bool isActive() const
Returns true if the paint engine is actively drawing; otherwise returns false.
void clearDirty(DirtyFlags df)
bool hasFeature(PaintEngineFeatures feature) const
Returns true if the paint engine supports the specified feature; otherwise returns false.
virtual Type type() const =0
Reimplement this function to return the paint engine \l{Type}.
bool testDirty(DirtyFlags df)
DirtyFlag
\value DirtyPen The pen is dirty and needs to be updated.
QScopedPointer< QPaintEnginePrivate > d_ptr
The QPainter class performs low-level painting on widgets and other paint devices.
CompositionMode
Defines the modes supported for digital image compositing.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QPolygonF class provides a list of points using floating point precision.
The QRasterPaintEngine class enables hardware acceleration of painting operations in Qt for Embedded ...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
\macro QT_RESTRICTED_CAST_FROM_ASCII
RenderFlag
\value RightToLeft Render the text from right to left.
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLfloat GLfloat GLfloat GLfloat h
GLuint GLenum GLenum transform
GLfixed GLfixed GLint GLint GLfixed points
GLsizei const GLchar *const * path
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
p drawImage(offset, thumbnail)