12class Inverted :
public NodeDecorator {
16 void Render(Screen& screen)
override {
20 screen.PixelAt(x, y).inverted =
true;
30 return std::make_shared<Inverted>(std::move(child));
NodeDecorator(Element child)
virtual void Render(Screen &screen)
Display an element on a ftxui::Screen.
std::shared_ptr< Node > Element
Element inverted(Element)
Add a filter that will invert the foreground and the background colors.