42 #include <private/qemulationpaintengine_p.h> 43 #include <private/qpainter_p.h> 44 #include <private/qtextengine_p.h> 191 mat.
scale(r.width(), r.height());
226 QPainter::PixmapFragmentHints hints)
232 for (
int i = 0; i < fragmentCount; ++i) {
234 transform.
translate(fragments[i].x, fragments[i].y);
235 transform.
rotate(fragments[i].rotation);
256 QPainter::PixmapFragmentHints hints)
259 for (
int i = 0; i < fragmentCount; ++i)
QPaintDevice * device() const
Returns the paint device on which this painter is currently painting, or 0 if the painter is not acti...
qreal scaleY
the vertical scale of the target rectangle.
qreal y() const
Returns the y-coordinate of the rectangle's top edge.
virtual void stroke(const QVectorPath &path, const QPen &pen)
virtual void setState(QPainterState *s)
qreal width
the width of the source rectangle and is used to calculate the width of the target rectangle...
virtual void compositionModeChanged()=0
virtual void penChanged()=0
#define QT_END_NAMESPACE
This macro expands to.
void fillBGRect(const QRectF &r)
virtual void clipEnabledChanged()=0
virtual void compositionModeChanged()
void setBrush(const QBrush &brush)
Sets the brush used to fill strokes generated with this pen to the given brush.
virtual void transformChanged()=0
const QGradient * gradient() const
Returns the gradient describing this brush.
Qt::BrushStyle qbrush_style(const QBrush &b)
QPaintEngineState * state
void setTransform(const QTransform &)
Sets matrix as an explicit transformation matrix on the current brush.
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...
Qt::PenStyle style() const
Returns the pen style.
CoordinateMode coordinateMode() const
Returns the coordinate mode of this gradient.
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 bool begin(QPaintDevice *pdev)
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
virtual void endNativePainting()
virtual void beginNativePainting()
qreal opacity
the opacity of the target rectangle, where 0.0 is fully transparent and 1.0 is fully opaque...
QTransform transform() const
Returns the current transformation matrix for the brush.
The QPen class defines how a QPainter should draw lines and outlines of shapes.
virtual void fill(const QVectorPath &path, const QBrush &brush)
virtual void brushOriginChanged()=0
virtual QPainterState * createState(QPainterState *orig) const
qreal x() const
Returns the x-coordinate of this point.
virtual void drawPixmapFragments(const QPainter::PixmapFragment *fragments, int fragmentCount, const QPixmap &pixmap, QPainter::PixmapFragmentHints hints)
virtual void renderHintsChanged()=0
QRectF controlPointRect() const
virtual void stroke(const QVectorPath &path, const QPen &pen)
QEmulationPaintEngine(QPaintEngineEx *engine)
virtual void clip(const QVectorPath &path, Qt::ClipOperation op)
QPainter * painter() const
Returns the paint engine's painter.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
virtual void endNativePainting()
virtual void brushChanged()=0
qreal height() const
Returns the height of the rectangle.
virtual Type type() const =0
Reimplement this function to return the paint engine Type.
virtual uint flags() const
The QImage class provides a hardware-independent image representation that allows direct access to th...
bool isQBitmap() const
Returns true if this is a QBitmap; otherwise returns false.
qreal width() const
Returns the width of the rectangle.
virtual void setState(QPainterState *s)
virtual bool end()
Reimplement this function to finish painting on the current paint device.
QBrush brush() const
Returns the brush used to fill strokes generated with this pen.
virtual void renderHintsChanged()
Qt::BrushStyle style() const
Returns the brush style.
virtual void transformChanged()
virtual void brushOriginChanged()
virtual void opacityChanged()=0
The QBrush class defines the fill pattern of shapes drawn by QPainter.
virtual void drawTextItem(const QPointF &p, const QTextItem &textItem)
This function draws the text item textItem at position p.
virtual void drawStaticTextItem(QStaticTextItem *item)
virtual void brushChanged()
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 QGradient class is used in combination with QBrush to specify gradient fills. ...
qreal x() const
Returns the x-coordinate of the rectangle's left edge.
This class is used in conjunction with the QPainter::drawPixmapFragments() function to specify how a ...
virtual Type type() const
Reimplement this function to return the paint engine Type.
qreal scaleX
the horizontal scale of the target rectangle.
void setCoordinateMode(CoordinateMode mode)
Sets the coordinate mode of this gradient to mode.
virtual void beginNativePainting()
virtual void drawStaticTextItem(QStaticTextItem *)
qreal y() const
Returns the y-coordinate of this point.
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...
QPaintEngineEx * real_engine
virtual void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r...
virtual void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags)
Reimplement this function to draw the part of the image specified by the sr rectangle in the given re...
The QTextItem class provides all the information required to draw text in a custom paint engine...
virtual void penChanged()
qreal height
the height of the source rectangle and is used to calculate the height of the target rectangle...
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...
virtual void clipEnabledChanged()
static qreal toReal(Register *reg, int type, bool *ok=0)
void setStyle(Qt::PenStyle)
Sets the pen style to the given style.
virtual void opacityChanged()
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.