AnyLayout class
#include <nxt/any_layout.hpp>
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
Public functions
- auto height_hint() const → HeightHint
- void render(RasterView& r, Size s) const
- auto width_hint() const → WidthHint