C

AnimationData Class

class SafeRenderer::AnimationData

The AnimationData struct that holds the animation data. More...

Header: #include <AnimationData>
Since: QtSafeRenderer 1.2

Public Functions

SafeRenderer::quint8 *animationData() const
void doAdvance(SafeRenderer::QSafeLayout &layout)
void doRestart(SafeRenderer::QSafeLayout &layout)
SafeRenderer::quint32 from() const
void resetAnimationData()
void setFrom(const SafeRenderer::quint32 from)
void setTarget(const SafeRenderer::quint32 target)
void setTo(const SafeRenderer::quint32 to)
void setType(const SafeRenderer::AnimationType type)
SafeRenderer::AnimationState state() const
SafeRenderer::quint32 target() const
SafeRenderer::quint32 to() const
SafeRenderer::AnimationType type() const

Detailed Description

The QSafeAnimations holds the animation data. The maximum amount of the animation step can be changed in qsafeconstraints.h. The variable is SafeRenderer::Constraints::MAX_ANIMATION_STEPS.

Member Function Documentation

SafeRenderer::quint8 *AnimationData::animationData() const

Returns pointer to the animation data.

void AnimationData::doAdvance(SafeRenderer::QSafeLayout &layout)

Advance animation for given layout layoutArg.

void AnimationData::doRestart(SafeRenderer::QSafeLayout &layout)

Restart animation for given layout layoutArg.

SafeRenderer::quint32 AnimationData::from() const

Returns the source state id.

See also setFrom().

void AnimationData::resetAnimationData()

Reset the animation data for this animation.

Note: This does not free any previously allocated memory from the memory pool!

void AnimationData::setFrom(const SafeRenderer::quint32 from)

Set the source state id to from.

See also from().

void AnimationData::setTarget(const SafeRenderer::quint32 target)

Set the animation target id to target.

See also target().

void AnimationData::setTo(const SafeRenderer::quint32 to)

Set the target state id to from.

See also to().

void AnimationData::setType(const SafeRenderer::AnimationType type)

Set the type of the animation to type.

See also type().

SafeRenderer::AnimationState AnimationData::state() const

Returns state of the animation.

SafeRenderer::quint32 AnimationData::target() const

Returns the animation target id.

See also setTarget().

SafeRenderer::quint32 AnimationData::to() const

Returns the target state id.

See also setTo().

SafeRenderer::AnimationType AnimationData::type() const

Returns type of the animation.

See also setType().

Available under certain Qt licenses.
Find out more.