Magnum::Ui::AbstractAnimator::DebugIntegration class

Debug layer integration.

If an inner type with this name is implemented on an animator that's passed to DebugLayer::setAnimatorName(const T&, const Containers::StringView&), the print() function is used by the DebugLayerFlag::NodeHighlight functionality to provide additional details about all animation attachments coming from given animator. See DebugLayer integration for custom layers, layouters and animators for more information.

Public functions

void print(Debug& debug, const Animator& animator, Containers::StringView animatorName, AnimatorDataHandle animation)
Print details about a particular animation.

Function documentation

void Magnum::Ui::AbstractAnimator::DebugIntegration::print(Debug& debug, const Animator& animator, Containers::StringView animatorName, AnimatorDataHandle animation)

Print details about a particular animation.

Parameters
debug Debug output where to print
animator Animator associated with given animation. The implementation can use either the animator type this class is part of or any base type.
animatorName Animator name that was passed to DebugLayer::setAnimatorName(const T&, const Containers::StringView&)
animation Animation to print info about. Guaranteed to be valid.

Used internally by DebugLayer. To fit among other info provided by DebugLayer itself, the implementation is expected to indent the output by at least two spaces and end with a newline (i.e., Debug::newline).