Magnum::Ui::AbstractLayouter::DebugIntegration class

Debug layer integration.

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

Public functions

void print(Debug& debug, const Layouter& layouter, Containers::StringView layouterName, LayouterDataHandle layout)
Print details about a particular layout.

Function documentation

void Magnum::Ui::AbstractLayouter::DebugIntegration::print(Debug& debug, const Layouter& layouter, Containers::StringView layouterName, LayouterDataHandle layout)

Print details about a particular layout.

Parameters
debug Debug output where to print
layouter Layouter associated with given layout. The implementation can use either the layouter type this class is part of or any base type.
layouterName Layouter name that was passed to DebugLayer::setLayouterName(const T&, const Containers::StringView&)
layout Layout 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).