*/
+/*!
+ \qmlmethod int QtQuick2::AnimatedSprite::restart()
+
+ Stops, then starts the sprite animation.
+*/
+
//TODO: Implicitly size element to size of sprite
QQuickAnimatedSprite::QQuickAnimatedSprite(QQuickItem *parent) :
QQuickItem(parent)
emit runningChanged(false);
}
+/*!
+ \qmlmethod int QtQuick2::AnimatedSprite::advance()
+
+ Advances the sprite animation by one frame.
+*/
void QQuickAnimatedSprite::advance(int frames)
{
if (!frames)
emit currentFrameChanged(m_curFrame);
}
+/*!
+ \qmlmethod int QtQuick2::AnimatedSprite::pause()
+
+ Pauses the sprite animation. This does nothing if
+ \l paused is true.
+
+ \sa resume()
+*/
void QQuickAnimatedSprite::pause()
{
if (m_paused)
emit pausedChanged(true);
}
+/*!
+ \qmlmethod int QtQuick2::AnimatedSprite::resume()
+
+ Resumes the sprite animation if \l paused is true;
+ otherwise, this does nothing.
+
+ \sa pause()
+*/
void QQuickAnimatedSprite::resume()
{
if (!m_paused)