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

Base for AbstractVisualLayer style animators.

Provides common code for visual layer style animators like BaseLayerStyleAnimator or TextLayerStyleAnimator.

Base classes

class AbstractStyleAnimator new in Git master
Base for style animators.

Derived classes

class BaseLayerStyleAnimator new in Git master
Base layer style animator.
class TextLayerStyleAnimator new in Git master
Text layer style animator.

Constructors, destructors, conversion operators

AbstractVisualLayerStyleAnimator(const AbstractVisualLayerStyleAnimator&) deleted
Copying is not allowed.
AbstractVisualLayerStyleAnimator(AbstractVisualLayerStyleAnimator&&) noexcept
Move constructor.

Public functions

auto operator=(const AbstractVisualLayerStyleAnimator&) -> AbstractVisualLayerStyleAnimator& deleted
Copying is not allowed.
auto operator=(AbstractVisualLayerStyleAnimator&&) -> AbstractVisualLayerStyleAnimator& noexcept
Move assignment.
auto styles(AnimationHandle handle) const -> Containers::Pair<UnsignedInt, UnsignedInt>
Animation source and target style IDs.
template<class StyleIndex>
auto styles(AnimationHandle handle) const -> Containers::Pair<StyleIndex, StyleIndex>
Animation source and target style IDs in a concrete enum type.
auto styles(AnimatorDataHandle handle) const -> Containers::Pair<UnsignedInt, UnsignedInt>
Animation source and target styles assuming it belongs to this animator.
template<class StyleIndex>
auto styles(AnimatorDataHandle handle) const -> Containers::Pair<StyleIndex, StyleIndex>
Animation source and target style IDs in a concrete enum type assuming it belongs to this animator.
auto dynamicStyle(AnimationHandle handle) const -> Containers::Optional<UnsignedInt>
Animation dynamic style ID.
auto dynamicStyle(AnimatorDataHandle handle) const -> Containers::Optional<UnsignedInt>
Animation dynamic style IDs assuming it belongs to this animator.

Function documentation

Magnum::Ui::AbstractVisualLayerStyleAnimator::AbstractVisualLayerStyleAnimator(AbstractVisualLayerStyleAnimator&&) noexcept

Move constructor.

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

Containers::Pair<UnsignedInt, UnsignedInt> Magnum::Ui::AbstractVisualLayerStyleAnimator::styles(AnimationHandle handle) const

Animation source and target style IDs.

Expects that handle is valid. The returned values are always less than AbstractVisualLayer::Shared::styleCount() of the layer associated with this animator.

template<class StyleIndex>
Containers::Pair<StyleIndex, StyleIndex> Magnum::Ui::AbstractVisualLayerStyleAnimator::styles(AnimationHandle handle) const

Animation source and target style IDs in a concrete enum type.

Like styles(AnimationHandle) const but returning a concrete enum type. See its documentation for more information.

Containers::Pair<UnsignedInt, UnsignedInt> Magnum::Ui::AbstractVisualLayerStyleAnimator::styles(AnimatorDataHandle handle) const

Animation source and target styles assuming it belongs to this animator.

Like styles(AnimationHandle) const but without checking that handle indeed belongs to this animator. See its documentation for more information.

template<class StyleIndex>
Containers::Pair<StyleIndex, StyleIndex> Magnum::Ui::AbstractVisualLayerStyleAnimator::styles(AnimatorDataHandle handle) const

Animation source and target style IDs in a concrete enum type assuming it belongs to this animator.

Like styles(AnimatorDataHandle) const but returning a concrete enum type. See its documentation for more information.

Containers::Optional<UnsignedInt> Magnum::Ui::AbstractVisualLayerStyleAnimator::dynamicStyle(AnimationHandle handle) const

Animation dynamic style ID.

Expects that handle is valid. If a dynamic style is allocated, the returned value is always less than AbstractVisualLayer::Shared::dynamicStyleCount() of the associated layer. AbstractVisualLayer::Shared::styleCount() plus the returned value is then a style index that can be passed to e.g. AbstractVisualLayer::setStyle(). If the dynamic style wasn't allocated yet, either due to the animation not being advanced yet or due to no free dynamic styles being available, returns Containers::NullOpt.

Containers::Optional<UnsignedInt> Magnum::Ui::AbstractVisualLayerStyleAnimator::dynamicStyle(AnimatorDataHandle handle) const

Animation dynamic style IDs assuming it belongs to this animator.

Like dynamicStyle(AnimationHandle) const but without checking that handle indeed belongs to this animator. See its documentation for more information.