21 child->ComputeRequirement();
41 child->Select(selection);
64 content +=
child->GetSelectedContent(selection);
96 node->ComputeRequirement();
109 node->Select(selection);
134 node->ComputeRequirement();
146 node->Select(selection);
149 return node->GetSelectedContent(selection);
virtual void Select(Selection &selection)
Compute the selection of an element.
virtual std::string GetSelectedContent(Selection &selection)
virtual void SetBox(Box box)
Assign a position and a dimension to an element for drawing.
virtual void ComputeRequirement()
Compute how much space an elements needs.
virtual void Check(Status *status)
virtual void Render(Screen &screen)
Display an element on a ftxui::Screen.
A rectangular grid of Pixel.
Represent a selection in the terminal.
const Box & GetBox() const
Get the box of the selection.
std::string GetNodeSelectedContent(Screen &screen, Node *node, Selection &selection)
std::shared_ptr< Node > Element
std::shared_ptr< T > Make(Args &&... args)
std::vector< Element > Elements
void Render(Screen &screen, const Element &element)
Display an element on a ftxui::Screen.
static auto Intersection(Box a, Box b) -> Box