23 for (
int y = box_.y_min; y <= box_.y_max; ++y) {
24 for (
int x = box_.x_min; x <= box_.x_max; ++x) {
25 screen.PixelAt(x, y).automerge =
true;
32 return std::make_shared<Impl>(std::move(
child));
NodeDecorator(Element child)
virtual void Render(Screen &screen)
Display an element on a ftxui::Screen.
A rectangular grid of Pixel.
std::shared_ptr< Node > Element
std::shared_ptr< T > Make(Args &&... args)
Element automerge(Element child)
Enable character to be automatically merged with others nearby.
void Render(Screen &screen, const Element &element)
Display an element on a ftxui::Screen.