17 text(
"FTXUI: ユーザーインターフェースを構築するための強力なライブラリ。"),
18 text(
"豊富なコンポーネントセットと宣言的なスタイルをお楽しみください。"),
19 text(
"最小限の労力で美しく応答性の高いUIを作成します。"),
20 text(
"コミュニティに参加して、FTXUIの力を体験してください。"),
30 int selection_change_counter = 0;
31 std::string selection_content =
"";
32 screen.SelectionChange([&] {
33 selection_change_counter++;
34 selection_content = screen.GetSelection();
40 text(
"選択変更: " + std::to_string(selection_change_counter) +
43 paragraph(selection_content) | vscroll_indicator | frame | border |
86 screen.Loop(renderer);
static ButtonOption Animated()
アニメーションカラーを使用するButtonOptionを作成します。
static ScreenInteractive TerminalOutput()
ターミナル出力の幅に一致し、描画されるコンポーネントの高さに一致するScreenInteractiveを作成します。
Component Button(ButtonOption options)
Draw a button. Execute a function when clicked. (ja: ボタンを描画します。クリックされたときに機能を実行します。)
Component Renderer(Component child, std::function< Element()>)
|child|に似ていますが、|render|をComponentRender()イベントとして使用する新しいコンポーネントを返します。
virtual void Render(Screen &screen)
要素をftxui::Screenに表示します。
Element text(std::wstring text)
ユニコードテキストを表示します。
Element vbox(Elements)
要素を縦に一つずつ表示するコンテナ。
Unicode文字とそれに関連付けられたスタイル。
std::shared_ptr< Node > Element
Decorator selectionStyle(std::function< void(Pixel &)> style)
要素が選択されたときのスタイルを設定します。
Element hbox(Elements)
要素を水平方向に1つずつ表示するコンテナ。
Decorator selectionBackgroundColor(Color foreground)
要素が選択されたときの背景色を設定します。 スタイルは既存のスタイルに重ねて適用されることに注意してください。
Element window(Element title, Element content, BorderStyle border=ROUNDED)
Decorator selectionColor(Color foreground)
要素が選択されたときの色を設定します。
Element selectionStyleReset(Element)
要素の選択スタイルをリセットします。
Elements paragraph(std::wstring text)