16class Bold :
public NodeDecorator {
20 void Render(Screen& screen)
override {
21 for (
int y = box_.y_min;
y <= box_.y_max; ++
y) {
22 for (
int x = box_.x_min; x <= box_.x_max; ++x) {
23 screen.CellAt(x,
y).bold =
true;
34 return std::make_shared<Bold>(std::move(child));
NodeDecorator(Element child)
Element bold(Element child)
Use a bold font, for elements with more emphasis.
The FTXUI ftxui:: namespace.
std::shared_ptr< Node > Element
void Render(Screen &screen, Node *node, Selection &selection)