PythonQtWrapper_QImageReader.h
73 lines
| 3.5 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QIMAGEREADER_H | ||
#define PYTHONQTWRAPPER_QIMAGEREADER_H | ||||
#include <qimagereader.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QColor> | ||
#include <QImage> | ||||
#include <QRect> | ||||
#include <QSize> | ||||
#include <QStringList> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcolor.h> | ||||
#include <qimage.h> | ||||
#include <qimagereader.h> | ||||
#include <qiodevice.h> | ||||
#include <qlist.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
#include <qstringlist.h> | ||||
class PythonQtWrapper_QImageReader : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(ImageReaderError ) | ||||
enum ImageReaderError{ | ||||
UnknownError = QImageReader::UnknownError, FileNotFoundError = QImageReader::FileNotFoundError, DeviceError = QImageReader::DeviceError, UnsupportedFormatError = QImageReader::UnsupportedFormatError, InvalidDataError = QImageReader::InvalidDataError}; | ||||
public slots: | ||||
QImageReader* new_QImageReader(); | ||||
QImageReader* new_QImageReader(QIODevice* device, const QByteArray& format = QByteArray()); | ||||
QImageReader* new_QImageReader(const QString& fileName, const QByteArray& format = QByteArray()); | ||||
void delete_QImageReader(QImageReader* obj) { delete obj; } | ||||
florianlink
|
r28 | void setScaledClipRect(QImageReader* theWrappedObject, const QRect& rect); | ||
QByteArray static_QImageReader_imageFormat(QIODevice* device); | ||||
QSize size(QImageReader* theWrappedObject) const; | ||||
void setScaledSize(QImageReader* theWrappedObject, const QSize& size); | ||||
QRect currentImageRect(QImageReader* theWrappedObject) const; | ||||
florianlink
|
r24 | QSize scaledSize(QImageReader* theWrappedObject) const; | ||
QStringList textKeys(QImageReader* theWrappedObject) const; | ||||
florianlink
|
r28 | int loopCount(QImageReader* theWrappedObject) const; | ||
int quality(QImageReader* theWrappedObject) const; | ||||
bool jumpToImage(QImageReader* theWrappedObject, int imageNumber); | ||||
void setFormat(QImageReader* theWrappedObject, const QByteArray& format); | ||||
florianlink
|
r24 | QIODevice* device(QImageReader* theWrappedObject) const; | ||
florianlink
|
r28 | int imageCount(QImageReader* theWrappedObject) const; | ||
florianlink
|
r13 | int nextImageDelay(QImageReader* theWrappedObject) const; | ||
void setClipRect(QImageReader* theWrappedObject, const QRect& rect); | ||||
florianlink
|
r28 | QList<QByteArray > static_QImageReader_supportedImageFormats(); | ||
QString text(QImageReader* theWrappedObject, const QString& key) const; | ||||
florianlink
|
r24 | QByteArray format(QImageReader* theWrappedObject) const; | ||
florianlink
|
r28 | QImageReader::ImageReaderError error(QImageReader* theWrappedObject) const; | ||
void setFileName(QImageReader* theWrappedObject, const QString& fileName); | ||||
florianlink
|
r24 | bool supportsOption(QImageReader* theWrappedObject, QImageIOHandler::ImageOption option) const; | ||
florianlink
|
r28 | QByteArray static_QImageReader_imageFormat(const QString& fileName); | ||
florianlink
|
r24 | QColor backgroundColor(QImageReader* theWrappedObject) const; | ||
florianlink
|
r28 | QString fileName(QImageReader* theWrappedObject) const; | ||
florianlink
|
r24 | QImage read(QImageReader* theWrappedObject); | ||
florianlink
|
r13 | bool supportsAnimation(QImageReader* theWrappedObject) const; | ||
florianlink
|
r28 | bool canRead(QImageReader* theWrappedObject) const; | ||
QRect clipRect(QImageReader* theWrappedObject) const; | ||||
void setQuality(QImageReader* theWrappedObject, int quality); | ||||
QRect scaledClipRect(QImageReader* theWrappedObject) const; | ||||
florianlink
|
r24 | int currentImageNumber(QImageReader* theWrappedObject) const; | ||
florianlink
|
r28 | void setBackgroundColor(QImageReader* theWrappedObject, const QColor& color); | ||
void setDevice(QImageReader* theWrappedObject, QIODevice* device); | ||||
QString errorString(QImageReader* theWrappedObject) const; | ||||
bool jumpToNextImage(QImageReader* theWrappedObject); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QIMAGEREADER_H | ||||