42 #ifndef QPAINTENGINE_VG_P_H 43 #define QPAINTENGINE_VG_P_H 56 #include <QtGui/private/qpaintengineex_p.h> 57 #include <QtGui/private/qtextureglyphcache_p.h> 146 bool drawCachedGlyphs(
int numGlyphs,
const glyph_t *glyphs,
const QFont &font,
168 void restoreState(QPaintEngine::DirtyFlags dirty);
169 void updateScissor();
171 bool isDefaultClipRegion(
const QRegion& region);
172 bool isDefaultClipRect(
const QRect& rect);
174 bool canVgWritePixels(
const QImage &image)
const;
virtual void drawPoints(const QPointF *points, int pointCount)
Draws the first pointCount points in the buffer points.
The QColor class provides colors based on RGB, HSV or CMYK values.
virtual void compositionModeChanged()=0
virtual void penChanged()=0
#define QT_END_NAMESPACE
This macro expands to.
virtual void clipEnabledChanged()=0
virtual void drawPath(const QPainterPath &path)
The default implementation ignores the path and does nothing.
virtual void transformChanged()=0
The QLine class provides a two-dimensional vector using integer precision.
QPaintEngine::DirtyFlags savedDirty
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
virtual void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor)=0
Reimplement this function to draw the part of the image specified by the sr rectangle in the given re...
virtual void drawPixmapFragments(const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QPainter::PixmapFragmentHints hints)
virtual void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s)
Reimplement this function to draw the pixmap in the given rect, starting at the given p...
The QPointF class defines a point in the plane using floating point precision.
virtual void draw(const QVectorPath &path)
virtual void beginNativePainting()
bool supportsTransformations(qreal, const QTransform &) const
Type type() const
Reimplement this function to return the paint engine Type.
virtual bool begin(QPaintDevice *pdev)=0
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
The QPen class defines how a QPainter should draw lines and outlines of shapes.
virtual void brushOriginChanged()=0
virtual void fillRect(const QRectF &rect, const QBrush &brush)
The QLineF class provides a two-dimensional vector using floating point precision.
virtual void renderHintsChanged()=0
virtual void stroke(const QVectorPath &path, const QPen &pen)
QVGPaintEnginePrivate * vgPrivate()
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
virtual QPixmapFilter * pixmapFilter(int, const QPixmapFilter *)
static void clearRect(IDirectFBSurface *surface, const QColor &color, const QRect &rect)
virtual void endNativePainting()
virtual void brushChanged()=0
static const QCssKnownValue positions[NumKnownPositionModes - 1]
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
The QRegion class specifies a clip region for a painter.
virtual void setState(QPainterState *s)
virtual void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode)
Reimplement this virtual function to draw the polygon defined by the pointCount first points in point...
virtual void opacityChanged()=0
virtual void drawLines(const QLine *lines, int lineCount)
The default implementation converts the first lineCount lines in lines to a QLineF and calls the floa...
The QBrush class defines the fill pattern of shapes drawn by QPainter.
static QByteArray prototype(const QList< QByteArray > ¶meterTypes, const QList< QByteArray > ¶meterNames, bool *ok)
virtual void drawRoundedRect(const QRectF &rect, qreal xrad, qreal yrad, Qt::SizeMode mode)
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...
The QFont class specifies a font used for drawing text.
This class is used in conjunction with the QPainter::drawPixmapFragments() function to specify how a ...
The QPixmapFilter class provides the basic functionality for pixmap filter classes.
const QVGPainterState * state() const
The QPoint class defines a point in the plane using integer precision.
virtual void drawStaticTextItem(QStaticTextItem *)
The QRect class defines a rectangle in the plane using integer precision.
virtual void fill(const QVectorPath &path, const QBrush &brush)=0
The QPixmap class is an off-screen image representation that can be used as a paint device...
virtual bool end()=0
Reimplement this function to finish painting on the current paint device.
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
The QFlags class provides a type-safe way of storing OR-combinations of enum values.
virtual void drawRects(const QRect *rects, int rectCount)
The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF an...
The QTextItem class provides all the information required to draw text in a custom paint engine...
virtual void drawEllipse(const QRectF &r)
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect...
QVGPainterState * state()
virtual void clip(const QVectorPath &path, Qt::ClipOperation op)=0
virtual QPainterState * createState(QPainterState *orig) const
virtual void drawTextItem(const QPointF &p, const QTextItem &textItem)
This function draws the text item textItem at position p.