PythonQtWrapper_QMovie.h
77 lines
| 3.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QMOVIE_H | ||
#define PYTHONQTWRAPPER_QMOVIE_H | ||||
#include <qmovie.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QColor> | ||
#include <QImage> | ||||
#include <QPixmap> | ||||
#include <QRect> | ||||
#include <QSize> | ||||
#include <QVariant> | ||||
#include <qbytearray.h> | ||||
#include <qcolor.h> | ||||
#include <qcoreevent.h> | ||||
#include <qimage.h> | ||||
#include <qiodevice.h> | ||||
#include <qlist.h> | ||||
#include <qmovie.h> | ||||
#include <qobject.h> | ||||
#include <qpixmap.h> | ||||
#include <qrect.h> | ||||
#include <qsize.h> | ||||
florianlink
|
r24 | class PythonQtShell_QMovie : public QMovie | ||
{ | ||||
public: | ||||
PythonQtShell_QMovie(QIODevice* device, const QByteArray& format = QByteArray(), QObject* parent = 0):QMovie(device, format, parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QMovie(QObject* parent = 0):QMovie(parent),_wrapper(NULL) {}; | ||||
PythonQtShell_QMovie(const QString& fileName, const QByteArray& format = QByteArray(), QObject* parent = 0):QMovie(fileName, format, parent),_wrapper(NULL) {}; | ||||
virtual void childEvent(QChildEvent* arg__1); | ||||
virtual void customEvent(QEvent* arg__1); | ||||
virtual bool event(QEvent* arg__1); | ||||
virtual bool eventFilter(QObject* arg__1, QEvent* arg__2); | ||||
virtual void timerEvent(QTimerEvent* arg__1); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
florianlink
|
r13 | class PythonQtWrapper_QMovie : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
public slots: | ||||
QMovie* new_QMovie(QIODevice* device, const QByteArray& format = QByteArray(), QObject* parent = 0); | ||||
QMovie* new_QMovie(QObject* parent = 0); | ||||
QMovie* new_QMovie(const QString& fileName, const QByteArray& format = QByteArray(), QObject* parent = 0); | ||||
void delete_QMovie(QMovie* obj) { delete obj; } | ||||
florianlink
|
r73 | void setDevice(QMovie* theWrappedObject, QIODevice* device); | ||
florianlink
|
r24 | QMovie::MovieState state(QMovie* theWrappedObject) const; | ||
florianlink
|
r28 | int speed(QMovie* theWrappedObject) const; | ||
florianlink
|
r73 | int loopCount(QMovie* theWrappedObject) const; | ||
florianlink
|
r28 | void setFileName(QMovie* theWrappedObject, const QString& fileName); | ||
florianlink
|
r73 | QList<QByteArray > static_QMovie_supportedFormats(); | ||
QMovie::CacheMode cacheMode(QMovie* theWrappedObject) const; | ||||
florianlink
|
r24 | int currentFrameNumber(QMovie* theWrappedObject) const; | ||
florianlink
|
r73 | void setScaledSize(QMovie* theWrappedObject, const QSize& size); | ||
void setBackgroundColor(QMovie* theWrappedObject, const QColor& color); | ||||
void setFormat(QMovie* theWrappedObject, const QByteArray& format); | ||||
florianlink
|
r24 | int nextFrameDelay(QMovie* theWrappedObject) const; | ||
florianlink
|
r73 | QImage currentImage(QMovie* theWrappedObject) const; | ||
florianlink
|
r24 | QString fileName(QMovie* theWrappedObject) const; | ||
bool isValid(QMovie* theWrappedObject) const; | ||||
florianlink
|
r73 | void setCacheMode(QMovie* theWrappedObject, QMovie::CacheMode mode); | ||
QSize scaledSize(QMovie* theWrappedObject); | ||||
int frameCount(QMovie* theWrappedObject) const; | ||||
QColor backgroundColor(QMovie* theWrappedObject) const; | ||||
florianlink
|
r24 | QRect frameRect(QMovie* theWrappedObject) const; | ||
QPixmap currentPixmap(QMovie* theWrappedObject) const; | ||||
QByteArray format(QMovie* theWrappedObject) const; | ||||
florianlink
|
r73 | QIODevice* device(QMovie* theWrappedObject) const; | ||
bool jumpToFrame(QMovie* theWrappedObject, int frameNumber); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QMOVIE_H | ||||