4#ifndef FTXUI_DOM_ELEMENTS_HPP
5#define FTXUI_DOM_ELEMENTS_HPP
68 Color unselected_color,
69 Color selected_color);
73 Color unselected_color,
74 Color selected_color);
86 std::vector<std::
string> charset,
111Element canvas(
int width,
int height, std::function<
void(Canvas&)>);
235#include "ftxui/dom/take_any_args.hpp"
アダプター。不変オブジェクトを所有または参照します。
#define FTXUI_EXPORT(component)
Element text(std::string_view text)
UTF8エンコードされたユニコードテキストを表示します。
Element focusCursorBarBlinking(Element child)
focus と同じですが、カーソル形状を点滅バーに設定します。
Element separatorStyled(BorderStyle style)
他の2つの要素の間に垂直または水平の区切り線を描画します。
Element clear_under(Element element)
|child|を描画する前に、その下のセルをクリアする。これは dboxとの組み合わせで有用。
Element separatorEmpty()
他の2つの要素の間にEMPTYスタイルで垂直または水平の区切り線を描画します。
Element vscroll_indicator(Element child)
右側に垂直スクロールバーを表示します。 色はコンテンツに従います。
Element nothing(Element element)
何も行わないデコレーションです。
Decorator size(WidthOrHeight direction, Constraint constraint, int value)
要素のサイズに制約を適用する。
Element focusCursorUnderlineBlinking(Element child)
focus と同じですが、カーソル形状を点滅下線に設定します。
Element focusCursorBar(Element child)
focus と同じですが、カーソル形状を静止ブロックに設定します。
Element focusCursorBlock(Element child)
focus と同じですが、カーソル形状を静止ブロックに設定します。
Element vtext(std::string_view text)
ユニコードテキストを垂直に表示します。
BorderStyle
BorderStyleは、ターミナルUIの要素に適用できる様々なボーダースタイルを表す列挙型です。
Element center(Element child)
要素を水平方向および垂直方向に中央揃えします。
Direction
Directionは、東西南北の4つの基本方向を表す列挙型です。
Element focusCursorUnderline(Element child)
focus と同じですが、カーソル形状を静止下線に設定します。
Element gaugeCharset(float progress, std::vector< std::string > charset, Direction direction=Direction::Right)
カスタム文字セットを使って高精細なプログレスバーを描画する。
Element align_right(Element child)
要素を右側に揃えます。
Element hscroll_indicator(Element child)
下部に水平スクロールバーを表示します。 色はコンテンツに従います。
Element separatorDashed()
他の2つの要素の間にLIGHTスタイルで垂直または水平の区切り線を描画します。
Element focus(Element child)
子要素を兄弟要素の中でフォーカスされたものとして設定します。
Element vcenter(Element child)
要素を垂直方向に中央揃えします。
Element separatorDouble()
他の2つの要素の間にHEAVYスタイルで垂直または水平の区切り線を描画します。
Element focusCursorBlockBlinking(Element child)
focus と同じですが、カーソル形状を点滅ブロックに設定します。
Element hcenter(Element child)
要素を水平方向に中央揃えします。
FTXUI ftxui::Dimension::名前空間
bool extend_beyond_screen
Decorator yflex_shrink_factor(int shrink)
std::shared_ptr< Node > Element
Element xframe(Element child)
frame と同じですが、x軸のみに適用されます。
Decorator xflex_grow_factor(int grow)
Decorator yflex_grow_factor(int grow)
std::vector< Element > Elements
Decorator yflex_factor(int grow, int shrink)
Component operator|(Component component, ComponentDecorator decorator)
std::function< Element(Element)> Decorator
Decorator flex_shrink_factor(int shrink)
Element yframe(Element child)
frame と同じですが、y軸のみに適用されます。
Decorator flex_grow_factor(int grow)
Decorator reflect(Box &box)
std::function< std::vector< int >(int, int)> GraphFunction
Decorator xflex_shrink_factor(int shrink)
Decorator xflex_factor(int grow, int shrink)
Decorator flex_factor(int grow, int shrink)
Element frame(Element child)
要素を「仮想」領域内に表示できるようにします。そのサイズはコンテナよりも大きくすることができます。 この場合、より小さい部分のみが表示されます。フォーカスされた要素を表示するためにビューはスクロール可能...
Component & operator|=(Component &component, ComponentDecorator decorator)
Element select(Element e)
childをその兄弟の中でフォーカスされた要素に設定する。