Skip to content

AInspectable#

Value-semantic wrapper for a single typed inspectable property.

Header:#include <AUI/Util/AInspectable.h>
CMake:aui_link(my_target PUBLIC aui::views)

Detailed Description#

Move-only wrapper around std::unique_ptr<IInspectableValueBase>. Constructed implicitly from any value type T — this creates an AInspectableValue<T> internally.

Example:

IInspectable::DebugInspectorInfo info;
info.push_back({ "Position", mPosition });   // glm::ivec2 — uses fmt::formatter
info.push_back({ "Color",    mColor });       // AColor   — uses specialised renderAsView()

Public Methods#

renderAsString#


AString AInspectable::renderAsString()

Plain-text rendering (CLI / agentic AI profiler path).

renderAsView#


AArc<AView> AInspectable::renderAsView()

Rich view rendering (GUI devtools path).