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

Base for style animators.

A style animator, like AbstractDataAnimator, can attach animations to data, but is additionally meant to be specialized for animating just data styles, not data properties themselves. In comparison, the AbstractNodeAnimator class is suited for animations that affect 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 style animator to a layer

To be written.

Base classes

class AbstractAnimator new in Git master
Base for animators.

Derived classes

class AbstractVisualLayerStyleAnimator new in Git master
Base for AbstractVisualLayer style animators.

Constructors, destructors, conversion operators

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

Public functions

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

Protected functions

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

Function documentation

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

Constructor.

Parameters
handle Handle returned by AbstractUserInterface::createAnimator()

Magnum::Ui::AbstractStyleAnimator::AbstractStyleAnimator(AbstractStyleAnimator&&) noexcept

Move constructor.

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

AnimatorFeatures Magnum::Ui::AbstractStyleAnimator::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.