PythonQtWrapper_QImageIOHandler.h
42 lines
| 2.3 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QIMAGEIOHANDLER_H | ||
#define PYTHONQTWRAPPER_QIMAGEIOHANDLER_H | ||||
#include <qimageiohandler.h> | ||||
#include <QObject> | ||||
#include <QRect> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qimage.h> | ||||
#include <qimageiohandler.h> | ||||
#include <qiodevice.h> | ||||
#include <qrect.h> | ||||
class PythonQtWrapper_QImageIOHandler : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(ImageOption ) | ||||
enum ImageOption{ | ||||
Size = QImageIOHandler::Size, ClipRect = QImageIOHandler::ClipRect, Description = QImageIOHandler::Description, ScaledClipRect = QImageIOHandler::ScaledClipRect, ScaledSize = QImageIOHandler::ScaledSize, CompressionRatio = QImageIOHandler::CompressionRatio, Gamma = QImageIOHandler::Gamma, Quality = QImageIOHandler::Quality, Name = QImageIOHandler::Name, SubType = QImageIOHandler::SubType, IncrementalReading = QImageIOHandler::IncrementalReading, Endianness = QImageIOHandler::Endianness, Animation = QImageIOHandler::Animation, BackgroundColor = QImageIOHandler::BackgroundColor}; | ||||
public slots: | ||||
void delete_QImageIOHandler(QImageIOHandler* obj) { delete obj; } | ||||
bool canRead(QImageIOHandler* theWrappedObject) const; | ||||
int currentImageNumber(QImageIOHandler* theWrappedObject) const; | ||||
QRect currentImageRect(QImageIOHandler* theWrappedObject) const; | ||||
QIODevice* device(QImageIOHandler* theWrappedObject) const; | ||||
QByteArray format(QImageIOHandler* theWrappedObject) const; | ||||
int imageCount(QImageIOHandler* theWrappedObject) const; | ||||
bool jumpToImage(QImageIOHandler* theWrappedObject, int imageNumber); | ||||
bool jumpToNextImage(QImageIOHandler* theWrappedObject); | ||||
int loopCount(QImageIOHandler* theWrappedObject) const; | ||||
int nextImageDelay(QImageIOHandler* theWrappedObject) const; | ||||
QVariant option(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const; | ||||
bool read(QImageIOHandler* theWrappedObject, QImage* image); | ||||
void setDevice(QImageIOHandler* theWrappedObject, QIODevice* device); | ||||
void setFormat(QImageIOHandler* theWrappedObject, const QByteArray& format); | ||||
void setOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option, const QVariant& value); | ||||
bool supportsOption(QImageIOHandler* theWrappedObject, QImageIOHandler::ImageOption option) const; | ||||
bool write(QImageIOHandler* theWrappedObject, const QImage& image); | ||||
}; | ||||
#endif // PYTHONQTWRAPPER_QIMAGEIOHANDLER_H | ||||