PythonQtWrapper_QImageWriter.h
48 lines
| 2.2 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QIMAGEWRITER_H | ||
#define PYTHONQTWRAPPER_QIMAGEWRITER_H | ||||
#include <qimagewriter.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbytearray.h> | ||||
#include <qimage.h> | ||||
#include <qimagewriter.h> | ||||
#include <qiodevice.h> | ||||
#include <qlist.h> | ||||
class PythonQtWrapper_QImageWriter : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(ImageWriterError ) | ||||
enum ImageWriterError{ | ||||
UnknownError = QImageWriter::UnknownError, DeviceError = QImageWriter::DeviceError, UnsupportedFormatError = QImageWriter::UnsupportedFormatError}; | ||||
public slots: | ||||
QImageWriter* new_QImageWriter(); | ||||
QImageWriter* new_QImageWriter(QIODevice* device, const QByteArray& format); | ||||
QImageWriter* new_QImageWriter(const QString& fileName, const QByteArray& format = QByteArray()); | ||||
void delete_QImageWriter(QImageWriter* obj) { delete obj; } | ||||
florianlink
|
r24 | QIODevice* device(QImageWriter* theWrappedObject) const; | ||
QList<QByteArray > static_QImageWriter_supportedImageFormats(); | ||||
florianlink
|
r28 | QByteArray format(QImageWriter* theWrappedObject) const; | ||
bool supportsOption(QImageWriter* theWrappedObject, QImageIOHandler::ImageOption option) const; | ||||
florianlink
|
r24 | void setFormat(QImageWriter* theWrappedObject, const QByteArray& format); | ||
QImageWriter::ImageWriterError error(QImageWriter* theWrappedObject) const; | ||||
florianlink
|
r28 | QString fileName(QImageWriter* theWrappedObject) const; | ||
florianlink
|
r24 | void setDevice(QImageWriter* theWrappedObject, QIODevice* device); | ||
florianlink
|
r13 | void setText(QImageWriter* theWrappedObject, const QString& key, const QString& text); | ||
florianlink
|
r24 | int quality(QImageWriter* theWrappedObject) const; | ||
florianlink
|
r28 | float gamma(QImageWriter* theWrappedObject) const; | ||
void setGamma(QImageWriter* theWrappedObject, float gamma); | ||||
florianlink
|
r24 | int compression(QImageWriter* theWrappedObject) const; | ||
florianlink
|
r28 | bool canWrite(QImageWriter* theWrappedObject) const; | ||
florianlink
|
r24 | QString errorString(QImageWriter* theWrappedObject) const; | ||
florianlink
|
r28 | bool write(QImageWriter* theWrappedObject, const QImage& image); | ||
void setQuality(QImageWriter* theWrappedObject, int quality); | ||||
florianlink
|
r24 | void setFileName(QImageWriter* theWrappedObject, const QString& fileName); | ||
void setCompression(QImageWriter* theWrappedObject, int compression); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QIMAGEWRITER_H | ||||