|
FTXUI 6.1.9
C++ functional terminal UI.
|
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 { LIGHT , DASHED , HEAVY , DOUBLE , ROUNDED , EMPTY } |
| BorderStyleは、ターミナルUIの要素に適用できる様々なボーダースタイルを表す列挙型です。 More... | |
| enum | WidthOrHeight { WIDTH , HEIGHT } |
| enum | Constraint { LESS_THAN , EQUAL , GREATER_THAN } |
Functions | |
| Element | operator| (Element element, Decorator decorator) |
| 要素にデコレーターを適用します。 | |
| Element & | operator|= (Element &e, Decorator d) |
| 要素にデコレーターを適用します。 | |
| Elements | operator| (Elements elements, Decorator decorator) |
| 要素のセットから、すべての要素にデコレーターを適用します。 | |
| Decorator | operator| (Decorator a, Decorator b) |
| 2つのデコレーターを1つに合成します。 | |
| Element | text (std::string text) |
| UTF8エンコードされたユニコードテキストを表示します。 | |
| Element | vtext (std::string text) |
| ユニコードテキストを垂直に表示します。 | |
| Element | separator () |
| Element | separatorLight () |
| Element | separatorDashed () |
| 他の2つの要素の間にLIGHTスタイルで垂直または水平の区切り線を描画します。 | |
| Element | separatorHeavy () |
| Element | separatorDouble () |
| 他の2つの要素の間にHEAVYスタイルで垂直または水平の区切り線を描画します。 | |
| Element | separatorEmpty () |
| 他の2つの要素の間にEMPTYスタイルで垂直または水平の区切り線を描画します。 | |
| Element | separatorStyled (BorderStyle style) |
| 他の2つの要素の間に垂直または水平の区切り線を描画します。 | |
| Element | separator (Pixel) |
| Element | separatorCharacter (std::string) |
| 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 | gauge (float progress) |
| 高精細プログレスバーを描画します。 | |
| Element | gaugeLeft (float progress) |
| 右から左へ進行する高精細プログレスバーを描画します。 | |
| Element | gaugeRight (float progress) |
| 左から右へ進行する高精細プログレスバーを描画します。 | |
| Element | gaugeUp (float progress) |
| 下から上へ進行する高精細プログレスバーを描画します。 | |
| Element | gaugeDown (float progress) |
| 上から下へ進行する高精細プログレスバーを描画します。 | |
| Element | gaugeDirection (float progress, Direction direction) |
| 指定された方向に進行する高精細プログレスバーを描画します。 | |
| Element | border (Element) |
| Element | borderLight (Element) |
| Element | borderDashed (Element) |
| Element | borderHeavy (Element) |
| Element | borderDouble (Element) |
| Element | borderRounded (Element) |
| Element | borderEmpty (Element) |
| Decorator | borderStyled (BorderStyle) |
| Decorator | borderStyled (BorderStyle, Color) |
| Decorator | borderStyled (Color) |
| Decorator | borderWith (const Pixel &) |
| Element | window (Element title, Element content, BorderStyle border=ROUNDED) |
| Element | spinner (int charset_index, size_t image_index) |
| 時間やイベントの効果を表現するのに便利です。これはアスキーアートの「ビデオ」を表示します。 | |
| Element | paragraph (const std::string &the_text) |
| 段落を複数行で描画する要素を返します。 | |
| Element | paragraphAlignLeft (const std::string &the_text) |
| 段落を複数行にわたって左揃えで描画する要素を返します。 | |
| Element | paragraphAlignRight (const std::string &the_text) |
| 段落を複数行にわたって右揃えで描画する要素を返します。 | |
| Element | paragraphAlignCenter (const std::string &the_text) |
| 段落を複数行にわたって中央揃えで描画する要素を返します。 | |
| Element | paragraphAlignJustify (const std::string &the_text) |
| 段落を複数行にわたって両端揃えで描画する要素を返します。 中央に。 | |
| Element | graph (GraphFunction graph_function) |
| GraphFunctionを使用してグラフを描画します。 | |
| Element | emptyElement () |
| Element | canvas (ConstRef< Canvas > canvas) |
| CanvasまたはCanvasへの参照から要素を生成します。 | |
| Element | canvas (int width, int height, std::function< void(Canvas &)> fn) |
| 要求されたサイズのキャンバスを描画する要素を生成します。 | |
| Element | canvas (std::function< void(Canvas &)> fn) |
| キャンバスを描画する要素を生成します。 | |
| Element | bold (Element child) |
| より強調したい要素に、太字フォントを使用します。 | |
| Element | dim (Element child) |
| 強調を抑えたい要素に、明るいフォントを使用します。 | |
| Element | italic (Element child) |
| テキストに斜体を適用します。 | |
| Element | inverted (Element child) |
| 前景色と背景色を反転させるフィルターを追加します。 | |
| Element | underlined (Element child) |
| 指定された要素に下線を追加します。 | |
| Element | underlinedDouble (Element child) |
| テキストに二重下線を適用します。 | |
| Element | blink (Element child) |
| 描画されたテキストは、可視と非可視の間で交互に切り替わります。 | |
| Element | strikethrough (Element child) |
| テキストに打ち消し線を適用します。 | |
| Decorator | color (Color c) |
| 前景色を使用して装飾します。 | |
| Decorator | bgcolor (Color color) |
| 背景色を使用して装飾します。 | |
| Decorator | color (const LinearGradient &gradient) |
| フォアグラウンドカラーに線形グラデーション効果を使用して装飾します。 | |
| Decorator | bgcolor (const LinearGradient &gradient) |
| 背景色に線形グラデーション効果を使用して装飾します。 | |
| Element | color (Color color, Element child) |
| 要素の前景色を設定します。 | |
| Element | bgcolor (Color color, Element child) |
| 要素の背景色を設定します。 | |
| Element | color (const LinearGradient &gradient, Element child) |
| 線形グラデーション効果を持つ要素のフォアグラウンドカラーを設定します。 | |
| Element | bgcolor (const LinearGradient &gradient, Element child) |
| 線形グラデーション効果を持つ要素の背景色を設定します。 | |
| Decorator | focusPosition (int x, int y) |
frame内で使用され、ビューを特定の位置にスクロールさせます。位置はセル数で表されます。 | |
| Decorator | focusPositionRelative (float x, float y) |
frame内で使用され、ビューを特定の位置にスクロールさせます。位置は要求されたサイズの割合で表されます。 | |
| Element | automerge (Element child) |
| 文字が近くの他の文字と自動的にマージされるようにします。 | |
| Decorator | hyperlink (std::string link) |
| ハイパーリンクを使用して装飾します。 ユーザーがクリックするとリンクが開きます。 これは、限られたターミナルエミュレータでのみサポートされています。 リスト: https://github.com/Alhadis/OSC8-Adoption/ | |
| Element | hyperlink (std::string link, Element child) |
| ウェブブラウザを使用してレンダリングされた領域をクリック可能にします。 ユーザーがクリックするとリンクが開きます。 これは、限られたターミナルエミュレータでのみサポートされています。 リスト: https://github.com/Alhadis/OSC8-Adoption/ | |
| Element | selectionStyleReset (Element child) |
| 要素の選択スタイルをリセットします。 | |
| Decorator | selectionColor (Color foreground) |
| 要素が選択されたときの色を設定します。 | |
| Decorator | selectionBackgroundColor (Color foreground) |
| 要素が選択されたときの背景色を設定します。 スタイルは既存のスタイルに重ねて適用されることに注意してください。 | |
| Decorator | selectionForegroundColor (Color foreground) |
| 要素が選択されたときの描画色を設定します。 スタイルは既存のスタイルに重ねて適用されることに注意してください。 | |
| Decorator | selectionStyle (std::function< void(Pixel &)> style) |
| 要素が選択されたときのスタイルを設定します。 | |
| Element | hbox (Elements children) |
| 要素を水平方向に1つずつ表示するコンテナ。 | |
| Element | vbox (Elements children) |
| 要素を縦に一つずつ表示するコンテナ。 | |
| Element | dbox (Elements children_) |
| 複数の要素を重ねて表示します。 | |
| Element | flexbox (Elements children, FlexboxConfig config) |
| 行/列に要素を表示し、一杯になると次の列/行に折り返すことができるコンテナ。 | |
| Element | gridbox (std::vector< Elements > lines) |
| 要素のグリッドを表示するコンテナ。 | |
| Element | hflow (Elements children) |
| 要素を左から右へ行で表示するコンテナ。一杯になると、下の新しい行から開始します。 | |
| Element | vflow (Elements children) |
| 要素を上から下へ行で表示するコンテナ。一杯になると、右側の新しい列から開始します。 | |
| Element | flex (Element child) |
| 子要素をコンテナに残されたスペースに比例して拡大させます。 | |
| Element | flex_grow (Element child) |
| 可能であれば拡大します。 | |
| Element | flex_shrink (Element child) |
| 必要であれば最小化します。 | |
| 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軸上で最小化します。 | |
| Element | notflex (Element child) |
| 要素を柔軟にしないようにします。 | |
| Element | filler () |
| コンテナに残されたスペースに比例して拡大する要素。 | |
| Decorator | size (WidthOrHeight direction, Constraint constraint, int value) |
| 要素のサイズに制約を適用します。 | |
| Element | frame (Element child) |
| 要素を「仮想」領域内に表示できるようにします。そのサイズはコンテナよりも大きくすることができます。 この場合、より小さい部分のみが表示されます。フォーカスされた要素を表示するためにビューはスクロール可能です。 | |
| Element | xframe (Element child) |
frame と同じですが、x軸のみに適用されます。 | |
| Element | yframe (Element child) |
frame と同じですが、y軸のみに適用されます。 | |
| Element | focus (Element child) |
| 子要素を兄弟要素の中でフォーカスされたものとして設定します。 | |
| Element | select (Element child) |
| 子要素を兄弟要素の中でフォーカスされたものとして設定します。 | |
| Element | focusCursorBlock (Element child) |
focus と同じですが、カーソル形状を静止ブロックに設定します。 | |
| Element | focusCursorBlockBlinking (Element child) |
focus と同じですが、カーソル形状を点滅ブロックに設定します。 | |
| Element | focusCursorBar (Element child) |
focus と同じですが、カーソル形状を静止ブロックに設定します。 | |
| Element | focusCursorBarBlinking (Element child) |
focus と同じですが、カーソル形状を点滅バーに設定します。 | |
| Element | focusCursorUnderline (Element child) |
focus と同じですが、カーソル形状を静止下線に設定します。 | |
| Element | focusCursorUnderlineBlinking (Element child) |
focus と同じですが、カーソル形状を点滅下線に設定します。 | |
| Element | vscroll_indicator (Element child) |
| 右側に垂直スクロールバーを表示します。 色はコンテンツに従います。 | |
| Element | hscroll_indicator (Element child) |
| 下部に水平スクロールバーを表示します。 色はコンテンツに従います。 | |
| Decorator | reflect (Box &box) |
| Element | clear_under (Element element) |
| |child|を描画する前に、下にあるピクセルをクリアします。これは、 dboxと組み合わせて使用すると便利です。 | |
| Element | hcenter (Element child) |
| 要素を水平方向に中央揃えします。 | |
| Element | vcenter (Element child) |
| 要素を垂直方向に中央揃えします。 | |
| Element | center (Element child) |
| 要素を水平方向および垂直方向に中央揃えします。 | |
| Element | align_right (Element child) |
| 要素を右側に揃えます。 | |
| Element | nothing (Element element) |
| 何も行わないデコレーションです。 | |
| Dimensions | Fit (Element &, bool extend_beyond_screen=false) |