FTXUI 7.0.3
C++ functional terminal UI.
Loading...
Searching...
No Matches
elements.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  ftxui
 FTXUI ftxui::名前空間
 
namespace  ftxui::Dimension
 スクリーンがどのように見えるべきかを定義します。
 

Typedefs

using Element = std::shared_ptr<Node>
 
using Elements = std::vector<Element>
 
using Decorator = std::function<Element(Element)>
 
using GraphFunction = std::function<std::vector<int>(int, int)>
 

Enumerations

enum  BorderStyle : uint8_t {
  LIGHT ,
  DASHED ,
  HEAVY ,
  DOUBLE ,
  ROUNDED ,
  EMPTY
}
 BorderStyleは、ターミナルUIの要素に適用できる様々なボーダースタイルを表す列挙型です。 More...
 
enum  WidthOrHeight : uint8_t {
  WIDTH ,
  HEIGHT
}
 
enum  Constraint : uint8_t {
  LESS_THAN ,
  EQUAL ,
  GREATER_THAN
}
 

Functions

struct FTXUI_EXPORT (DOM) Canvas
 Canvasは、描画操作に関連付けられた描画可能なバッファです。
 
 FTXUI_EXPORT (DOM) Element &operator|
 
FTXUI_EXPORT(DOM) Element separatorCharacter(std Element separatorHSelector (float left, float right, Color unselected_color, Color selected_color)
 
Element separatorVSelector (float up, float down, Color unselected_color, Color selected_color)
 
Element gaugeCharset (float progress, std::vector< std::string > charset, Direction direction)
 カスタム文字セットを使って高精細なプログレスバーを描画する。
 
Element window (Element title, Element content, BorderStyle border)
 要素の周囲にタイトルとボーダーを持つウィンドウを描画します。
 
Element canvas (int width, int height, std::function< void(Canvas &)> fn)
 要求されたサイズのキャンバスを描画する要素を生成します。
 
Element flexbox (Elements children, FlexboxConfig config)
 行/列に要素を表示し、一杯になると次の列/行に折り返すことができるコンテナ。
 
FTXUI_EXPORT(DOM) Element gridbox(std Element hflow (Elements children)
 要素を左から右へ行で表示するコンテナ。一杯になると、下の新しい行から開始します。
 
Element vflow (Elements children)
 要素を上から下へ行で表示するコンテナ。一杯になると、右側の新しい列から開始します。
 
Element xflex (Element child)
 必要に応じてX軸上で拡大・縮小します。
 
Element xflex_grow (Element child)
 可能であればX軸上で拡大します。
 
Element xflex_shrink (Element child)
 必要であればX軸上で最小化します。
 
Element yflex (Element child)
 必要に応じてY軸上で拡大・縮小します。
 
Element yflex_grow (Element child)
 可能であればY軸上で拡大します。
 
Element yflex_shrink (Element child)
 必要であればY軸上で最小化します。
 
 FTXUI_EXPORT (DOM) Dimensions Fit(Element &
 

Variables

Direction direction
 
 Color
 透明な色を構築します。
 
size_t image_index
 
int y
 
int shrink
 
 Constraint
 
int value
 
bool extend_beyond_screen = false)