QtGui/qpicture.h Source File
Go to the documentation of this file.
57 class QPicturePrivate;
62 explicit QPicture(
int formatVersion = -1);
70 const char*
data()
const;
71 virtual void setData(
const char* data, uint size);
80 QRect boundingRect()
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);
106 int metric(PaintDeviceMetric m)
const;
113 void detach_helper();
116 friend class QPicturePaintEngine;
117 friend class Q3Picture;
118 friend class QAlphaPaintEngine;
119 friend class QPreviewPaintEngine;
129 #ifndef QT_NO_PICTUREIO
134 struct QPictureIOData;
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
GLdouble GLdouble GLdouble r
void(* picture_io_handler)(QPictureIO *)
virtual QPaintEngine * paintEngine() const =0
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QPicture &)
GLXDrawable GLXDrawable read
virtual int devType() const
#define QT_BEGIN_NAMESPACE
GLsizei GLsizei GLenum GLenum const GLvoid * data
GLenum GLsizei GLenum format
Q_INLINE_TEMPLATE void qSwap(QScopedPointer< T, Cleanup > &p1, QScopedPointer< T, Cleanup > &p2)
void swap(QPicture &other)
QExplicitlySharedDataPointer< QPicturePrivate > DataPtr
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QPicture &)
virtual int metric(PaintDeviceMetric metric) const