#include <nxt/tui.hpp>
template <Layout Child>
nxt::tui::Surface struct

Layout decorator that clears its raster before rendering a child.

Public functions

auto height_hint() const →  HeightHint constexpr
Forward the child's height hint.
void render(RasterView& raster, Size size) const
Clear the full raster and render the child.
auto width_hint() const →  WidthHint constexpr
Forward the child's width hint.

Public variables

Style style
Style used for every cell in the clear pass.
Child child
Child rendered after the clear pass.