QtGui/qmovie.h Source File
Go to the documentation of this file.
80 Q_PROPERTY(CacheMode cacheMode READ cacheMode WRITE setCacheMode)
102 void setFileName(
const QString &fileName);
109 QColor backgroundColor()
const;
111 MovieState state()
const;
113 QRect frameRect()
const;
114 QImage currentImage()
const;
117 bool isValid()
const;
119 bool jumpToFrame(
int frameNumber);
120 int loopCount()
const;
121 int frameCount()
const;
122 int nextFrameDelay()
const;
123 int currentFrameNumber()
const;
130 CacheMode cacheMode()
const;
131 void setCacheMode(CacheMode
mode);
133 CacheMode cacheMode();
138 void updated(
const QRect &rect);
142 void frameChanged(
int frameNumber);
146 bool jumpToNextFrame();
147 void setPaused(
bool paused);
149 void setSpeed(
int percentSpeed);
157 inline QT3_SUPPORT
bool isNull()
const {
return isValid(); }
158 inline QT3_SUPPORT
int frameNumber()
const {
return currentFrameNumber(); }
159 inline QT3_SUPPORT
bool running()
const {
return state() == Running; }
160 inline QT3_SUPPORT
bool paused()
const {
return state() == Paused; }
161 inline QT3_SUPPORT
bool finished()
const {
return state() == NotRunning; }
162 inline QT3_SUPPORT
void restart() { stop();
start(); }
163 inline QT3_SUPPORT
QImage frameImage()
const {
return currentImage(); }
164 inline QT3_SUPPORT
QPixmap framePixmap()
const {
return currentPixmap(); }
165 inline QT3_SUPPORT
void step() { jumpToNextFrame(); }
166 inline QT3_SUPPORT
void pause() { setPaused(
true); }
167 inline QT3_SUPPORT
void unpause() { setPaused(
false); }
175 #endif // QT_NO_MOVIE
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE
GLenum GLsizei GLenum format