nxt::tui::AnyLayout class

Type-erased Layout. Holds any value satisfying the Layout concept behind a small vtable so it can sit inside Slot<AnyLayout> and be swapped for differently-shaped layouts over time.

Cheap to copy (shared_ptr bump). The held layout is immutable; new shapes replace the whole AnyLayout.

Constructors, destructors, conversion operators

AnyLayout() defaulted
Empty layout renders nothing and reports zero hints.
template <typename L>
AnyLayout(L&& layout)

Public functions

auto height_hint() const →  HeightHint
void render(RasterView& r, Size s) const
auto width_hint() const →  WidthHint