##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QImageIOHandler.h
42 lines | 2.3 KiB | text/x-c | CLexer
#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