45 #include <QtCore/qstringlist.h> 46 #include <QtCore/qsharedpointer.h> 47 #include <QtGui/qpaintdevice.h> 62 explicit QPicture(
int formatVersion = -1);
70 const char*
data()
const;
81 void setBoundingRect(
const QRect &r);
84 #ifdef Q_COMPILER_RVALUE_REFS 86 {
qSwap(d_ptr, other.d_ptr);
return *
this; }
90 bool isDetached()
const;
95 static const char* pictureFormat(
const QString &fileName);
113 void detach_helper();
117 friend class Q3Picture;
129 #ifndef QT_NO_PICTUREIO 146 const char *
format()
const;
151 const char *parameters()
const;
156 void setFormat(
const char *);
158 void setFileName(
const QString &);
159 void setQuality(
int);
160 void setDescription(
const QString &);
161 void setParameters(
const char *);
162 void setGamma(
float);
172 static void defineIOHandler(
const char *format,
186 #endif //QT_NO_PICTUREIO 193 #ifndef QT_NO_DATASTREAM 198 #endif // QT_NO_PICTURE The QPainter class performs low-level painting on widgets and other paint devices.
#define QT_END_NAMESPACE
This macro expands to.
void(* picture_io_handler)(QPictureIO *)
void swap(QPicture &other)
Swaps picture other with this picture.
The QByteArray class provides an array of bytes.
static LibLoadStatus status
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
QExplicitlySharedDataPointer< QPicturePrivate > d_ptr
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QPicture &)
The QString class provides a Unicode character string.
virtual int devType() const
#define Q_DECLARE_SHARED(TYPE)
static const QRectF boundingRect(const QPointF *points, int pointCount)
QExplicitlySharedDataPointer< QPicturePrivate > DataPtr
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool setData(const QByteArray &data, STGMEDIUM *pmedium)
The QStringList class provides a list of strings.
static const char * data(const QByteArray &arr)
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
void qSwap(T &value1, T &value2)
virtual QPaintEngine * paintEngine() const =0
QScopedPointer< QPaintEnginePrivate > d_ptr
The QRect class defines a rectangle in the plane using integer precision.
virtual int metric(PaintDeviceMetric metric) const
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QPicture &)
The QPictureIO class contains parameters for loading and saving pictures.
#define Q_DECLARE_PRIVATE(Class)
The QDataStream class provides serialization of binary data to a QIODevice.
The QIODevice class is the base interface class of all I/O devices in Qt.
void detach()
Detaches from shared picture data and makes sure that this picture is the only one referring to the d...
The QPicture class is a paint device that records and replays QPainter commands.
static QString fileName(const QString &fileUrl)
static bool isNull(const QVariant::Private *d)