4#ifndef FTXUI_DOM_NODE_HPP
5#define FTXUI_DOM_NODE_HPP
20using Element = std::shared_ptr<Node>;
21using Elements = std::vector<Element>;
virtual void Select(Selection &selection)
要素の選択を計算します。
virtual std::string GetSelectedContent(Selection &selection)
virtual void SetBox(Box box)
描画のために要素に位置と次元を割り当てます。
Requirement requirement()
virtual void ComputeRequirement()
要素が必要とするスペースを計算します。
virtual void Check(Status *status)
Node & operator=(const Node &)=delete
Node(const Node &)=delete
friend void Render(Screen &screen, Node *node, Selection &selection)
Node & operator=(const Node &&)=delete
Node(const Node &&)=delete
NodeはDOMツリー内のすべての要素の基底クラスです。
ターミナルユーザーインターフェースにおける選択範囲を表します。
void Render(Screen &screen, const Element &element)
要素をftxui::Screenに表示します。
Requirementは、ターミナルユーザーインターフェースにおけるNodeのレイアウト要件を定義する構造体です。
Boxは、2D空間における矩形領域を表す構造体です。
std::string GetNodeSelectedContent(Screen &screen, Node *node, Selection &selection)
std::shared_ptr< Node > Element
std::vector< Element > Elements