Qt 4.8
|
#include <qdirectfbpaintengine.h>
Public Functions | |
virtual bool | begin (QPaintDevice *device) |
Reimplemented Function More... | |
virtual void | brushChanged () |
virtual void | clip (const QVectorPath &path, Qt::ClipOperation op) |
virtual void | clip (const QRegion ®ion, Qt::ClipOperation op) |
virtual void | clip (const QRect &rect, Qt::ClipOperation op) |
virtual void | clipEnabledChanged () |
virtual void | compositionModeChanged () |
virtual void | drawBufferSpan (const uint *buffer, int bufsize, int x, int y, int length, uint const_alpha) |
Draws the given buffer. More... | |
virtual void | drawEllipse (const QRectF &rect) |
Reimplemented Function More... | |
virtual void | drawImage (const QPointF &p, const QImage &img) |
virtual void | drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags falgs=Qt::AutoColor) |
Reimplemented Function More... | |
virtual void | drawLines (const QLine *line, int lineCount) |
Reimplemented Function More... | |
virtual void | drawLines (const QLineF *line, int lineCount) |
Reimplemented Function More... | |
virtual void | drawPath (const QPainterPath &path) |
The default implementation ignores the path and does nothing. More... | |
virtual void | drawPixmap (const QPointF &p, const QPixmap &pm) |
virtual void | drawPixmap (const QRectF &r, const QPixmap &pixmap, const QRectF &sr) |
Reimplemented Function More... | |
virtual void | drawPoints (const QPointF *points, int pointCount) |
Reimplemented Function More... | |
virtual void | drawPoints (const QPoint *points, int pointCount) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Draws the first pointCount points in the buffer points. More... | |
virtual void | drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) |
Reimplemented Function More... | |
virtual void | drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) |
Reimplemented Function More... | |
virtual void | drawRects (const QRect *rects, int rectCount) |
Reimplemented Function More... | |
virtual void | drawRects (const QRectF *rects, int rectCount) |
Reimplemented Function More... | |
virtual void | drawRoundedRect (const QRectF &rect, qreal xrad, qreal yrad, Qt::SizeMode mode) |
virtual void | drawStaticTextItem (QStaticTextItem *item) |
Reimplemented Function More... | |
virtual void | drawTextItem (const QPointF &p, const QTextItem &textItem) |
Reimplemented Function More... | |
virtual void | drawTiledPixmap (const QRectF &r, const QPixmap &pm, const QPointF &sr) |
Reimplemented Function More... | |
virtual bool | end () |
Reimplemented Function More... | |
virtual void | fill (const QVectorPath &path, const QBrush &brush) |
virtual void | fillRect (const QRectF &r, const QBrush &brush) |
Reimplemented Function More... | |
virtual void | fillRect (const QRectF &r, const QColor &color) |
Reimplemented Function More... | |
virtual void | opacityChanged () |
virtual void | penChanged () |
QDirectFBPaintEngine (QPaintDevice *device) | |
virtual void | renderHintsChanged () |
virtual void | setState (QPainterState *state) |
virtual void | stroke (const QVectorPath &path, const QPen &pen) |
virtual void | transformChanged () |
virtual | ~QDirectFBPaintEngine () |
Public Functions inherited from QRasterPaintEngine | |
void | alphaPenBlt (const void *src, int bpl, int depth, int rx, int ry, int w, int h) |
void | brushOriginChanged () |
QRect | clipBoundingRect () const |
Returns the bounding rect of the currently set clip. More... | |
ClipType | clipType () const |
Returns the type of the clip currently set. More... | |
QPoint | coordinateOffset () const |
QPainterState * | createState (QPainterState *orig) const |
virtual void | drawColorSpans (const QSpan *spans, int count, uint color) |
Draws the given color spans with the specified color. More... | |
void | fillPath (const QPainterPath &path, QSpanData *fillData) |
void | fillPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) |
CGContextRef | getCGContext () const |
HDC | getDC () const |
QRasterPaintEngine (QPaintDevice *device) | |
Creates a raster based paint engine for operating on the given device, with the complete set of QPaintEngine::PaintEngineFeature {paint engine features and capabilities}. More... | |
void | releaseBuffer () |
void | releaseDC (HDC hdc) const |
void | saveBuffer (const QString &s) const |
void | setCGContext (CGContextRef ref) |
void | setDC (HDC hdc) |
QSize | size () const |
QRasterPaintEngineState * | state () |
const QRasterPaintEngineState * | state () const |
bool | supportsTransformations (const QFontEngine *fontEngine) const |
bool | supportsTransformations (qreal pixelSize, const QTransform &m) const |
Type | type () const |
Reimplemented Function More... | |
void | updateBrush (const QBrush &brush) |
void | updateMatrix (const QTransform &matrix) |
void | updatePen (const QPen &pen) |
~QRasterPaintEngine () | |
Destroys this paint engine. More... | |
Public Functions inherited from QPaintEngineEx | |
virtual void | beginNativePainting () |
virtual void | clip (const QPainterPath &path, Qt::ClipOperation op) |
virtual void | draw (const QVectorPath &path) |
virtual void | drawEllipse (const QRect &r) |
The default implementation of this function calls the floating point version of this function. More... | |
virtual void | drawPixmapFragments (const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QPainter::PixmapFragmentHints hints) |
virtual void | drawPixmapFragments (const QRectF *targetRects, const QRectF *sourceRects, int fragmentCount, const QPixmap &pixmap, QPainter::PixmapFragmentHints hints) |
virtual void | endNativePainting () |
virtual uint | flags () const |
virtual QPixmapFilter * | pixmapFilter (int, const QPixmapFilter *) |
QPaintEngineEx () | |
QPainterState * | state () |
const QPainterState * | state () const |
virtual void | sync () |
virtual void | updateState (const QPaintEngineState &state) |
Reimplement this function to update the state of a paint engine. More... | |
Public Functions inherited from QPaintEngine | |
void | clearDirty (DirtyFlags df) |
void | fix_neg_rect (int *x, int *y, int *w, int *h) |
bool | hasFeature (PaintEngineFeatures feature) const |
Returns true if the paint engine supports the specified feature; otherwise returns false. More... | |
bool | isActive () const |
Returns true if the paint engine is actively drawing; otherwise returns false. More... | |
bool | isExtended () const |
Returns true if the paint engine is a QPaintEngineEx derivative. More... | |
QPaintDevice * | paintDevice () const |
Returns the device that this engine is painting on, if painting is active; otherwise returns 0. More... | |
QPainter * | painter () const |
Returns the paint engine's painter. More... | |
QPaintEngine (PaintEngineFeatures features=0) | |
Creates a paint engine with the featureset specified by caps. More... | |
void | setActive (bool newState) |
Sets the active state of the paint engine to state. More... | |
void | setDirty (DirtyFlags df) |
void | setPaintDevice (QPaintDevice *device) |
void | setSystemClip (const QRegion &baseClip) |
Sets the system clip for this engine. More... | |
void | setSystemRect (const QRect &rect) |
Sets the target rect for drawing within the backing store. More... | |
void | syncState () |
Updates all dirty states in this engine. More... | |
QRegion | systemClip () const |
Returns the system clip. More... | |
QRect | systemRect () const |
Retrieves the rect for drawing within the backing store. More... | |
bool | testDirty (DirtyFlags df) |
virtual | ~QPaintEngine () |
Destroys the paint engine. More... | |
Static Public Functions | |
static void | initImageCache (int size) |
Additional Inherited Members | |
Public Types inherited from QRasterPaintEngine | |
enum | ClipType { RectClip, ComplexClip } |
Public Types inherited from QPaintEngineEx | |
enum | Flags { DoNotEmulate = 0x01, IsEmulationEngine = 0x02 } |
Public Types inherited from QPaintEngine | |
enum | DirtyFlag { DirtyPen = 0x0001, DirtyBrush = 0x0002, DirtyBrushOrigin = 0x0004, DirtyFont = 0x0008, DirtyBackground = 0x0010, DirtyBackgroundMode = 0x0020, DirtyTransform = 0x0040, DirtyClipRegion = 0x0080, DirtyClipPath = 0x0100, DirtyHints = 0x0200, DirtyCompositionMode = 0x0400, DirtyClipEnabled = 0x0800, DirtyOpacity = 0x1000, AllDirty = 0xffff } |
QPaintEngine::updateState(). More... | |
enum | PaintEngineFeature { PrimitiveTransform = 0x00000001, PatternTransform = 0x00000002, PixmapTransform = 0x00000004, PatternBrush = 0x00000008, LinearGradientFill = 0x00000010, RadialGradientFill = 0x00000020, ConicalGradientFill = 0x00000040, AlphaBlend = 0x00000080, PorterDuff = 0x00000100, PainterPaths = 0x00000200, Antialiasing = 0x00000400, BrushStroke = 0x00000800, ConstantOpacity = 0x00001000, MaskedBrush = 0x00002000, PerspectiveTransform = 0x00004000, BlendModes = 0x00008000, ObjectBoundingModeGradients = 0x00010000, RasterOpModes = 0x00020000, PaintOutsidePaintEvent = 0x20000000, AllFeatures = 0xffffffff } |
This enum is used to describe the features or capabilities that the paint engine has. More... | |
enum | PolygonDrawMode { OddEvenMode, WindingMode, ConvexMode, PolylineMode } |
enum | Type { X11, Windows, QuickDraw, CoreGraphics, MacPrinter, QWindowSystem, PostScript, OpenGL, Picture, SVG, Raster, Direct3D, Pdf, OpenVG, OpenGL2, PaintBuffer, Blitter, User = 50, MaxUser = 100 } |
Protected Functions inherited from QRasterPaintEngine | |
QRasterPaintEngine (QRasterPaintEnginePrivate &d, QPaintDevice *) | |
Protected Functions inherited from QPaintEngineEx | |
QPaintEngineEx (QPaintEngineExPrivate &data) | |
Protected Functions inherited from QPaintEngine | |
QPaintEngine (QPaintEnginePrivate &data, PaintEngineFeatures devcaps=0) | |
Protected Variables inherited from QPaintEngine | |
uint | active: 1 |
QScopedPointer< QPaintEnginePrivate > | d_ptr |
uint | extended: 1 |
PaintEngineFeatures | gccaps |
uint | selfDestruct: 1 |
QPaintEngineState * | state |
Related Functions inherited from QRasterPaintEngine | |
QSpan | |
A struct equivalent to QT_FT_Span, containing a position (x, y), the span's length in pixels and its color/coverage (a value ranging from 0 to 255). More... | |
Definition at line 58 of file qdirectfbpaintengine.h.
QDirectFBPaintEngine::QDirectFBPaintEngine | ( | QPaintDevice * | device | ) |
Definition at line 351 of file qdirectfbpaintengine.cpp.
|
virtual |
Definition at line 356 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 360 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 410 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 467 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 479 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 491 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 403 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 433 of file qdirectfbpaintengine.cpp.
|
virtual |
Draws the given buffer.
The default implementation does nothing; reimplement this function to draw a buffer that contains more than one color. Note that this function must be reimplemented if the framebuffer is not memory-mapped.
The size parameter specifies the total size of the given buffer, while the length parameter specifies the number of pixels to draw. The buffer's position is given by (x, y). The provided alpha value is added to each pixel in the buffer when drawing.
Reimplemented from QRasterPaintEngine.
Definition at line 937 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Reimplemented from QRasterPaintEngine.
Definition at line 788 of file qdirectfbpaintengine.cpp.
Reimplemented from QRasterPaintEngine.
Definition at line 658 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 597 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 559 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 578 of file qdirectfbpaintengine.cpp.
|
virtual |
The default implementation ignores the path and does nothing.
Reimplemented from QPaintEngineEx.
Definition at line 742 of file qdirectfbpaintengine.cpp.
Reimplemented from QRasterPaintEngine.
Definition at line 699 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 663 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 750 of file qdirectfbpaintengine.cpp.
|
virtual |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Draws the first pointCount points in the buffer points.
The default implementation converts the first pointCount QPoints in points to QPointFs and calls the floating point version of drawPoints.
Reimplemented from QRasterPaintEngine.
Definition at line 769 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 796 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 805 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 503 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 531 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QPaintEngineEx.
Definition at line 855 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 863 of file qdirectfbpaintengine.cpp.
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 814 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 704 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 389 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 823 of file qdirectfbpaintengine.cpp.
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 871 of file qdirectfbpaintengine.cpp.
Referenced by fill().
Reimplemented Function
Reimplemented from QRasterPaintEngine.
Definition at line 920 of file qdirectfbpaintengine.cpp.
|
static |
Referenced by QDirectFBScreen::connect(), and drawBufferSpan().
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 426 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 418 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 440 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 454 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 734 of file qdirectfbpaintengine.cpp.
|
virtual |
Reimplemented from QRasterPaintEngine.
Definition at line 447 of file qdirectfbpaintengine.cpp.