42 #ifndef QBLITTABLE_P_H 43 #define QBLITTABLE_P_H 45 #include <QtCore/qsize.h> 46 #include <QtGui/private/qpixmap_blitter_p.h> 49 #ifndef QT_NO_BLITTABLE 61 SolidRectCapability = 0x0001,
62 SourcePixmapCapability = 0x0002,
63 SourceOverPixmapCapability = 0x0004,
64 SourceOverScaledPixmapCapability = 0x0008,
65 AlphaFillRectCapability = 0x0010,
66 OpacityPixmapCapability = 0x0020,
69 OutlineCapability = 0x0001000,
76 Capabilities capabilities()
const;
79 virtual void fillRect(
const QRectF &rect,
const QColor &color) = 0;
80 virtual void drawPixmap(
const QRectF &rect,
const QPixmap &pixmap,
const QRectF &subrect) = 0;
85 qWarning(
"Please implement alphaFillRect function in your platform or remove AlphaFillRectCapability from it");
93 qWarning(
"Please implement drawPixmapOpacity function in your platform or remove OpacityPixmapCapability from it");
97 bool isLocked()
const;
103 virtual QImage *doLock() = 0;
104 virtual void doUnlock() = 0;
109 #endif //QT_NO_BLITTABLE 110 #endif //QBLITTABLE_P_H The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
CompositionMode
Defines the modes supported for digital image compositing.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QBlittablePrivate * d_ptr
The QRectF class defines a rectangle in the plane using floating point precision. ...
Q_CORE_EXPORT void qWarning(const char *,...)
The QImage class provides a hardware-independent image representation that allows direct access to th...
virtual void alphaFillRect(const QRectF &rect, const QColor &color, QPainter::CompositionMode cmode)
static QReadWriteLock lock
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
virtual void drawPixmapOpacity(const QRectF &rect, const QPixmap &pixmap, const QRectF &subrect, QPainter::CompositionMode cmode, qreal opacity)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...