20 auto buttons = Container::Horizontal({
30 auto component =
Renderer(buttons, [&] {
33 text(
"value = " + std::to_string(value)),
42 screen.Loop(component);
static ButtonOption Animated()
アニメーションカラーを使用するButtonOptionを作成します。
static ScreenInteractive FitComponent()
描画されるコンポーネントの幅と高さに一致する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 gauge(float progress)
高精細プログレスバーを描画します。
Element vbox(Elements)
要素を縦に一つずつ表示するコンテナ。