16class Blink :
public NodeDecorator {
22 for (
int y = box_.y_min; y <= box_.y_max; ++y) {
23 for (
int x = box_.x_min; x <= box_.x_max; ++x) {
24 screen.PixelAt(x, y).blink =
true;
34 return std::make_shared<Blink>(std::move(
child));
NodeDecorator(Element child)
virtual void Render(Screen &screen)
Display an element on a ftxui::Screen.
std::shared_ptr< Node > Element
std::shared_ptr< T > Make(Args &&... args)
void Render(Screen &screen, const Element &element)
Display an element on a ftxui::Screen.
Element blink(Element)
The text drawn alternates in between visible and hidden.