3#ifndef FTXUI_DOM_ELEMENTS_HPP
4#define FTXUI_DOM_ELEMENTS_HPP
63 Color unselected_color,
64 Color selected_color);
67 Color unselected_color,
68 Color selected_color);
199#include "ftxui/dom/take_any_args.hpp"
アダプター。不変オブジェクトを所有または参照します。
Decorator bgcolor(Color)
背景色を使用して装飾します。
Element focusCursorBarBlinking(Element)
focus と同じですが、カーソル形状を点滅バーに設定します。
Element xflex(Element)
必要に応じてX軸上で拡大・縮小します。
Element gaugeDirection(float progress, Direction direction)
指定された方向に進行する高精細プログレスバーを描画します。
Decorator focusPositionRelative(float x, float y)
frame内で使用され、ビューを特定の位置にスクロールさせます。位置は要求されたサイズの割合で表されます。
Element separatorStyled(BorderStyle)
他の2つの要素の間に垂直または水平の区切り線を描画します。
Element xflex_grow(Element)
可能であればX軸上で拡大します。
Element underlinedDouble(Element)
テキストに二重下線を適用します。
Element clear_under(Element element)
|child|を描画する前に、下にあるピクセルをクリアします。これは、 dboxと組み合わせて使用すると便利です。
Element separatorEmpty()
他の2つの要素の間にEMPTYスタイルで垂直または水平の区切り線を描画します。
Element vscroll_indicator(Element)
右側に垂直スクロールバーを表示します。 色はコンテンツに従います。
Element nothing(Element element)
何も行わないデコレーションです。
Direction
Directionは、東西南北の4つの基本方向を表す列挙型です。
Element flex(Element)
子要素をコンテナに残されたスペースに比例して拡大させます。
Element paragraphAlignRight(const std::string &text)
段落を複数行にわたって右揃えで描画する要素を返します。
Element gaugeRight(float progress)
左から右へ進行する高精細プログレスバーを描画します。
Element focusCursorUnderlineBlinking(Element)
focus と同じですが、カーソル形状を点滅下線に設定します。
Element bold(Element)
より強調したい要素に、太字フォントを使用します。
Element spinner(int charset_index, size_t image_index)
時間やイベントの効果を表現するのに便利です。これはアスキーアートの「ビデオ」を表示します。
Element yflex(Element)
必要に応じてY軸上で拡大・縮小します。
Element flex_shrink(Element)
必要であれば最小化します。
Element focusCursorBar(Element)
focus と同じですが、カーソル形状を静止ブロックに設定します。
Element focusCursorBlock(Element)
focus と同じですが、カーソル形状を静止ブロックに設定します。
Element underlined(Element)
指定された要素に下線を追加します。
Element center(Element)
要素を水平方向および垂直方向に中央揃えします。
Element focusCursorUnderline(Element)
focus と同じですが、カーソル形状を静止下線に設定します。
Element inverted(Element)
前景色と背景色を反転させるフィルターを追加します。
Element paragraphAlignCenter(const std::string &text)
段落を複数行にわたって中央揃えで描画する要素を返します。
Element gaugeUp(float progress)
下から上へ進行する高精細プログレスバーを描画します。
Element text(std::wstring text)
ユニコードテキストを表示します。
Element align_right(Element)
要素を右側に揃えます。
Decorator focusPosition(int x, int y)
frame内で使用され、ビューを特定の位置にスクロールさせます。位置はセル数で表されます。
Element yflex_grow(Element)
可能であればY軸上で拡大します。
Element hscroll_indicator(Element)
下部に水平スクロールバーを表示します。 色はコンテンツに従います。
Element flex_grow(Element)
可能であれば拡大します。
Element separatorDashed()
他の2つの要素の間にLIGHTスタイルで垂直または水平の区切り線を描画します。
Element notflex(Element)
要素を柔軟にしないようにします。
Element strikethrough(Element)
テキストに打ち消し線を適用します。
Element italic(Element)
テキストに斜体を適用します。
Element dbox(Elements)
複数の要素を重ねて表示します。
Element xflex_shrink(Element)
必要であればX軸上で最小化します。
Element gaugeLeft(float progress)
右から左へ進行する高精細プログレスバーを描画します。
Element vtext(std::wstring text)
ユニコードテキストを垂直に表示します。
Element focus(Element)
子要素を兄弟要素の中でフォーカスされたものとして設定します。
Element paragraphAlignLeft(const std::string &text)
段落を複数行にわたって左揃えで描画する要素を返します。
Element filler()
コンテナに残されたスペースに比例して拡大する要素。
Element dim(Element)
強調を抑えたい要素に、明るいフォントを使用します。
Element automerge(Element child)
文字が近くの他の文字と自動的にマージされるようにします。
Decorator hyperlink(std::string link)
ハイパーリンクを使用して装飾します。 ユーザーがクリックするとリンクが開きます。 これは、限られたターミナルエミュレータでのみサポートされています。 リスト: https://github....
Element blink(Element)
描画されたテキストは、可視と非可視の間で交互に切り替わります。
Element vcenter(Element)
要素を垂直方向に中央揃えします。
Element separatorDouble()
他の2つの要素の間にHEAVYスタイルで垂直または水平の区切り線を描画します。
Element focusCursorBlockBlinking(Element)
focus と同じですが、カーソル形状を点滅ブロックに設定します。
Element gauge(float progress)
高精細プログレスバーを描画します。
Element paragraphAlignJustify(const std::string &text)
段落を複数行にわたって両端揃えで描画する要素を返します。 中央に。
Decorator color(Color)
前景色を使用して装飾します。
Element yflex_shrink(Element)
必要であればY軸上で最小化します。
Element hcenter(Element)
要素を水平方向に中央揃えします。
Element vbox(Elements)
要素を縦に一つずつ表示するコンテナ。
BorderStyle
BorderStyleは、ターミナルUIの要素に適用できる様々なボーダースタイルを表す列挙型です。
Element gaugeDown(float progress)
上から下へ進行する高精細プログレスバーを描画します。
Canvasは、描画操作に関連付けられた描画可能なバッファです。
FlexboxConfigは、flexboxコンテナのレイアウトプロパティを定義する構成構造体です。
線形グラデーションカラー効果の設定を表すクラスです。
Colorは、ターミナルユーザーインターフェースにおける色を表すクラスです。
Dimensionsは、ターミナルのサイズを表す構造体です。
Unicode文字とそれに関連付けられたスタイル。
FTXUI ftxui::Dimension::名前空間
Dimensions Fit(Element &, bool extend_beyond_screen=false)
std::function< Element(Element)> Decorator
Element flexbox(Elements, FlexboxConfig config=FlexboxConfig())
行/列に要素を表示し、一杯になると次の列/行に折り返すことができるコンテナ。
Element separatorVSelector(float up, float down, Color unselected_color, Color selected_color)
std::shared_ptr< Node > Element
Element xframe(Element)
frame と同じですが、x軸のみに適用されます。
Element hflow(Elements)
要素を左から右へ行で表示するコンテナ。一杯になると、下の新しい行から開始します。
Decorator selectionStyle(std::function< void(Pixel &)> style)
要素が選択されたときのスタイルを設定します。
Element borderEmpty(Element)
Element separatorHSelector(float left, float right, Color unselected_color, Color selected_color)
Element hbox(Elements)
要素を水平方向に1つずつ表示するコンテナ。
Element canvas(ConstRef< Canvas >)
CanvasまたはCanvasへの参照から要素を生成します。
std::vector< Element > Elements
Decorator selectionForegroundColor(Color foreground)
要素が選択されたときの描画色を設定します。 スタイルは既存のスタイルに重ねて適用されることに注意してください。
Element separatorCharacter(std::string)
Decorator selectionBackgroundColor(Color foreground)
要素が選択されたときの背景色を設定します。 スタイルは既存のスタイルに重ねて適用されることに注意してください。
Element borderHeavy(Element)
Element borderRounded(Element)
Element yframe(Element)
frame と同じですが、y軸のみに適用されます。
Element window(Element title, Element content, BorderStyle border=ROUNDED)
Decorator selectionColor(Color foreground)
要素が選択されたときの色を設定します。
Decorator borderStyled(BorderStyle)
Component operator|(Component component, ElementDecorator decorator)
Element select(Element e)
子要素を兄弟要素の中でフォーカスされたものとして設定します。
Element borderDashed(Element)
Element selectionStyleReset(Element)
要素の選択スタイルをリセットします。
Element borderDouble(Element)
Decorator reflect(Box &box)
std::function< std::vector< int >(int, int)> GraphFunction
Element gridbox(std::vector< Elements > lines)
要素のグリッドを表示するコンテナ。
Decorator borderWith(const Pixel &)
Elements paragraph(std::wstring text)
Element frame(Element)
要素を「仮想」領域内に表示できるようにします。そのサイズはコンテナよりも大きくすることができます。 この場合、より小さい部分のみが表示されます。フォーカスされた要素を表示するためにビューはスクロール可能...
Component & operator|=(Component &component, ComponentDecorator decorator)
Element vflow(Elements)
要素を上から下へ行で表示するコンテナ。一杯になると、右側の新しい列から開始します。
Element graph(GraphFunction)
GraphFunctionを使用してグラフを描画します。
Element borderLight(Element)