Magnum::Ui::AbstractDataAnimator class new in Git master

Base for data animators.

A data animator can attach animations to data and is thus suitable for animations that affect data within layers. In comparison, the AbstractStyleAnimator class is suited for animations that affect data styles, AbstractNodeAnimator for animations affecting nodes, and AbstractGenericAnimator for animations that aren't clearly tied to a particular part of the UI.

See the AbstractUserInterface class documentation for introduction and overview of builtin animators and the AbstractAnimator class for more information about use and creating custom animators.

Assigning a data animator to a layer

To be written.

Base classes

class AbstractAnimator new in Git master
Base for animators.

Constructors, destructors, conversion operators

AbstractDataAnimator(AnimatorHandle handle) explicit
Constructor.
AbstractDataAnimator(const AbstractDataAnimator&) deleted
Copying is not allowed.
AbstractDataAnimator(AbstractDataAnimator&&) noexcept
Move constructor.

Public functions

auto operator=(const AbstractDataAnimator&) -> AbstractDataAnimator& deleted
Copying is not allowed.
auto operator=(AbstractDataAnimator&&) -> AbstractDataAnimator& noexcept
Move assignment.

Protected functions

auto doFeatures() const -> AnimatorFeatures override
Implementation for features()

Function documentation

Magnum::Ui::AbstractDataAnimator::AbstractDataAnimator(AnimatorHandle handle) explicit

Constructor.

Parameters
handle Handle returned by AbstractUserInterface::createAnimator()

Magnum::Ui::AbstractDataAnimator::AbstractDataAnimator(AbstractDataAnimator&&) noexcept

Move constructor.

Performs a destructive move, i.e. the original object isn't usable afterwards anymore.

AnimatorFeatures Magnum::Ui::AbstractDataAnimator::doFeatures() const override protected

Implementation for features()

Exposes AnimatorFeature::DataAttachment. If a subclass override exposes additional features, it's expected to OR them with this function.