#include <nxt/tui.hpp>
template <typename T, typename ViewFn>
nxt::tui::List struct

Render a span of items by mapping each item to a one-line layout.

Public functions

auto height_hint() const →  HeightHint constexpr
One line per item.
void render(RasterView& raster, Size size) const
Render visible items until the assigned height is filled.
auto width_hint() const →  WidthHint constexpr
Lists grow to fill available width.

Public variables

std::span<const T> items
Borrowed items to render.
ViewFn view
Function that turns an item into a layout.