FTXUI  3.0.0
C++ functional terminal UI.
Node Class Reference
+ Inheritance diagram for Node:

Data Structures

struct  Status
 

Public Member Functions

 Node ()
 
 Node (Elements children)
 
 Node (const Node &)=delete
 
 Node (const Node &&)=delete
 
Nodeoperator= (const Node &)=delete
 
Nodeoperator= (const Node &&)=delete
 
virtual ~Node ()
 
virtual void ComputeRequirement ()
 Compute how much space an elements needs. More...
 
Requirement requirement ()
 
virtual void SetBox (Box box)
 Assign a position and a dimension to an element for drawing. More...
 
virtual void Render (Screen &screen)
 Display an element on a ftxui::Screen. More...
 
virtual void Check (Status *status)
 

Protected Attributes

Elements children_
 
Requirement requirement_
 
Box box_
 

Detailed Description

Definition at line 19 of file node.hpp.


Data Structure Documentation

◆ ftxui::Node::Status

struct ftxui::Node::Status

Definition at line 46 of file node.hpp.

Data Fields
int iteration
bool need_iteration

Constructor & Destructor Documentation

◆ Node() [1/4]

Node ( )
default

◆ Node() [2/4]

Node ( Elements  children)

Definition at line 9 of file node.cpp.

◆ Node() [3/4]

Node ( const Node )
delete

◆ Node() [4/4]

Node ( const Node &&  )
delete

◆ ~Node()

~Node ( )
virtualdefault

Member Function Documentation

◆ operator=() [1/2]

Node& operator= ( const Node )
delete

◆ operator=() [2/2]

Node& operator= ( const Node &&  )
delete

◆ ComputeRequirement()

void ComputeRequirement ( )
virtual

Compute how much space an elements needs.

Reimplemented in NodeDecorator.

Definition at line 14 of file node.cpp.

◆ requirement()

Requirement requirement ( )
inline

Definition at line 34 of file node.hpp.

◆ SetBox()

void SetBox ( Box  box)
virtual

Assign a position and a dimension to an element for drawing.

Reimplemented in NodeDecorator.

Definition at line 22 of file node.cpp.

◆ Render()

void Render ( Screen screen)
virtual

Display an element on a ftxui::Screen.

Definition at line 28 of file node.cpp.

◆ Check()

void Check ( Status status)
virtual

Definition at line 34 of file node.cpp.

Field Documentation

◆ children_

Elements children_
protected

Definition at line 53 of file node.hpp.

◆ requirement_

Requirement requirement_
protected

Definition at line 54 of file node.hpp.

◆ box_

Box box_
protected

Definition at line 55 of file node.hpp.


The documentation for this class was generated from the following files: