42 #ifndef QPIXMAP_BLITTER_P_H 43 #define QPIXMAP_BLITTER_P_H 45 #include <private/qpixmapdata_p.h> 46 #include <private/qpaintengine_blitter_p.h> 48 #ifndef QT_NO_BLITTABLE 58 virtual QBlittable *createBlittable(
const QSize &size,
bool alpha)
const = 0;
62 void resize(
int width,
int height);
72 void markRasterOverlay(
const QRectF &);
76 void markRasterOverlay(
const QRect *rects,
int rectCount);
77 void markRasterOverlay(
const QRectF *rects,
int rectCount);
78 void markRasterOverlay(
const QPointF *points,
int pointCount);
79 void markRasterOverlay(
const QPoint *points,
int pointCount);
80 void unmarkRasterOverlay(
const QRectF &);
82 #ifdef QT_BLITTER_RASTEROVERLAY 84 void unmergeOverlay();
87 #endif //QT_BLITTER_RASTEROVERLAY 93 #ifdef QT_BLITTER_RASTEROVERLAY 98 void markRasterOverlayImpl(
const QRectF &);
99 void unmarkRasterOverlayImpl(
const QRectF &);
101 #endif //QT_BLITTER_RASTEROVERLAY 107 #ifdef QT_BLITTER_RASTEROVERLAY 108 markRasterOverlayImpl(rect);
116 #ifdef QT_BLITTER_RASTEROVERLAY 125 #ifdef QT_BLITTER_RASTEROVERLAY 127 QRectF rect = fm.tightBoundingRect(ti.
text());
129 markRasterOverlay(rect);
138 #ifdef QT_BLITTER_RASTEROVERLAY 139 for (
int i = 0; i < rectCount; i++) {
140 markRasterOverlay(rects[i]);
149 #ifdef QT_BLITTER_RASTEROVERLAY 150 for (
int i = 0; i < rectCount; i++) {
151 markRasterOverlay(rects[i]);
161 #ifdef QT_BLITTER_RASTEROVERLAY 162 #error "not ported yet" 171 #ifdef QT_BLITTER_RASTEROVERLAY 172 #error "not ported yet" 181 #ifdef QT_BLITTER_RASTEROVERLAY 182 #error "not ported yet" 190 #ifdef QT_BLITTER_RASTEROVERLAY 191 unmarkRasterOverlayImpl(rect);
198 #endif // QT_NO_BLITTABLE 199 #endif // QPIXMAP_BLITTER_P_H
The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
virtual void fill(const QColor &color)=0
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
The QPointF class defines a point in the plane using floating point precision.
virtual void resize(int width, int height)=0
virtual QPaintEngine * paintEngine() const =0
QString text() const
Returns the text that should be drawn.
QRectF boundingRect() const
Returns the bounding rectangle of this painter path as a rectangle with floating point precision...
void markRasterOverlay(const QRectF &)
virtual QImage toImage() const =0
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
virtual void fromImage(const QImage &image, Qt::ImageConversionFlags flags)=0
The QImage class provides a hardware-independent image representation that allows direct access to th...
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const =0
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
QScopedPointer< QBlitterPaintEngine > m_engine
virtual bool hasAlphaChannel() const =0
const QPainterPath convertToPainterPath() const
The QPoint class defines a point in the plane using integer precision.
The QRect class defines a rectangle in the plane using integer precision.
void moveBottomLeft(const QPointF &p)
Moves the rectangle, leaving the bottom-left corner at the given position.
virtual QImage * buffer()
The QFontMetricsF class provides font metrics information.
The QSize class defines the size of a two-dimensional object using integer point precision.
QScopedPointer< QBlittable > m_blittable
The QTextItem class provides all the information required to draw text in a custom paint engine...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
QFont font() const
Returns the font that should be used to draw the text.
void unmarkRasterOverlay(const QRectF &)