#include <nxt/tui.hpp>
template <typename RenderFn>
nxt::tui::Leaf struct

Leaf layout backed by a render callback.

Public functions

auto height_hint() const →  HeightHint constexpr
Return this leaf's height hint.
void render(RasterView& raster, Size size) const
Render by calling render_fn.
auto width_hint() const →  WidthHint constexpr
Return this leaf's width hint.

Public variables

WidthHint w_hint
Width hint returned to parents.
HeightHint h_hint
Height hint returned to parents.
RenderFn render_fn
Callback invoked when the leaf is rendered.