FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
component.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  ftxui
 FTXUI ftxui:: 名前空間
 
namespace  ftxui::Container
 

Functions

template<class T , class... Args>
std::shared_ptr< T > Make (Args &&... args)
 
Component operator| (Component component, ElementDecorator decorator)
 
Componentoperator|= (Component &component, ComponentDecorator decorator)
 
Componentoperator|= (Component &component, ElementDecorator decorator)
 
Component Vertical (Components children)
 コンポーネントのリスト。垂直方向に1つずつ描画され、上下の矢印キーまたは'j'/'k'キーを使用して垂直方向にナビゲートされます。
 
Component Vertical (Components children, int *selector)
 コンポーネントのリスト。垂直方向に1つずつ描画され、上下の矢印キーまたは'j'/'k'キーを使用して垂直方向にナビゲートされます。 これは例えばMenuを実装するのに便利です。
 
Component Horizontal (Components children)
 コンポーネントのリスト。水平方向に1つずつ描画され、左右の矢印キーまたは'h'/'l'キーを使用して水平方向にナビゲートされます。
 
Component Horizontal (Components children, int *selector)
 コンポーネントのリスト。水平方向に1つずつ描画され、左右の矢印キーまたは'h'/'l'キーを使用して水平方向にナビゲートされます。
 
Component Tab (Components children, int *selector)
 コンポーネントのリスト。一度に1つだけ描画され、操作されます。|selector|は選択されたコンポーネントのインデックスを提供します。これはタブを実装するのに便利です。
 
Component Stacked (Components children)
 互いの上にスタックされるコンポーネントのリスト。 イベントは、最初のコンポーネントに伝播され、処理されない場合は2番目のコンポーネントに伝播されます。 コンポーネントは与えられた順序とは逆の順序で描画されます。 コンポーネントがフォーカスを取得すると、他の要素の相対的な順序を変更せずに前面に配置されます。
 
Component Button (ButtonOption option)
 Draw a button. Execute a function when clicked. (ja: ボタンを描画します。クリックされたときに機能を実行します。)
 
Component Button (ConstStringRef label, std::function< void()> on_click, ButtonOption option)
 Draw a button. Execute a function when clicked. (ja: ボタンを描画します。クリックされたときに機能を実行します。)
 
Component Checkbox (CheckboxOption option)
 チェック可能な要素を描画します。
 
Component Checkbox (ConstStringRef label, bool *checked, CheckboxOption option)
 チェック可能な要素を描画します。
 
Component Input (InputOption options={})
 
Component Input (StringRef content, InputOption options={})
 
Component Input (StringRef content, StringRef placeholder, InputOption options={})
 
Component Menu (MenuOption option)
 テキストのリスト。フォーカスされた要素が選択されます。
 
Component Menu (ConstStringListRef entries, int *selected, MenuOption option)
 テキストのリスト。フォーカスされた要素が選択されます。
 
Component MenuEntry (MenuEntryOption option)
 特定のメニューエントリ。これらはContainer::Verticalに入れてメニューを形成できます。
 
Component MenuEntry (ConstStringRef label, MenuEntryOption option)
 特定のメニューエントリ。これらはContainer::Verticalに入れてメニューを形成できます。
 
Component Radiobox (RadioboxOption option)
 1つだけ選択できる要素のリスト。
 
Component Radiobox (ConstStringListRef entries, int *selected, RadioboxOption option)
 1つだけ選択できる要素のリスト。
 
Component Dropdown (ConstStringListRef entries, int *selected)
 ドロップダウンメニュー。
 
Component Dropdown (DropdownOption option)
 ドロップダウンメニュー。
 
Component Toggle (ConstStringListRef entries, int *selected)
 要素の水平リスト。ユーザーはこれらを操作できます。
 
template<typename T >
Component Slider (SliderOption< T > options)
 どの方向にも対応するスライダー。
 
Component Slider (ConstStringRef label, Ref< int > value, ConstRef< int > min, ConstRef< int > max, ConstRef< int > increment)
 水平スライダー。
 
Component Slider (ConstStringRef label, Ref< float > value, ConstRef< float > min=0.f, ConstRef< float > max=100.f, ConstRef< float > increment=5.f)
 
Component Slider (ConstStringRef label, Ref< long > value, ConstRef< long > min=0L, ConstRef< long > max=100L, ConstRef< long > increment=5L)
 
Component ResizableSplit (ResizableSplitOption options)
 2つのコンポーネント間の分割。
 
Component ResizableSplitLeft (Component main, Component back, int *main_size)
 2つのコンポーネント間の水平分割。マウスで設定可能。
 
Component ResizableSplitRight (Component main, Component back, int *main_size)
 2つのコンポーネント間の水平分割。マウスで設定可能。
 
Component ResizableSplitTop (Component main, Component back, int *main_size)
 2つのコンポーネント間の垂直分割。マウスで設定可能。
 
Component ResizableSplitBottom (Component main, Component back, int *main_size)
 2つのコンポーネント間の垂直分割。マウスで設定可能。
 
Component Renderer (Component child, std::function< Element()> render)
 |child|に似ていますが、|render|をComponentRender()イベントとして使用する新しいコンポーネントを返します。
 
Component Renderer (std::function< Element()> render)
 インターフェースを描画するために|render|を使用するコンポーネントを返します。
 
Component Renderer (std::function< Element(bool)> render)
 インターフェースを描画するために|render|を使用するフォーカス可能なコンポーネントを返します。
 
ComponentDecorator Renderer (ElementDecorator decorator)
 コンポーネントがレンダリングするものを装飾することによって、コンポーネントを装飾します。
 
Component CatchEvent (Component child, std::function< bool(Event)>)
 
ComponentDecorator CatchEvent (std::function< bool(Event)> on_event)
 イベントをキャッチするために|on_event|を使用してコンポーネントを装飾します。この関数は、イベントが処理された場合はtrueを返し、それ以外の場合はfalseを返す必要があります。
 
Component Maybe (Component child, const bool *show)
 コンポーネント|child|を装飾します。|show|がtrueの場合にのみ表示されます。
 
Component Maybe (Component child, std::function< bool()> show)
 コンポーネント|child|を装飾します。|show|がtrueを返す場合にのみ表示されます。
 
ComponentDecorator Maybe (const bool *show)
 コンポーネントを装飾します。|show|がtrueの場合にのみ表示されます。
 
ComponentDecorator Maybe (std::function< bool()> show)
 コンポーネントを装飾します。|show|関数がtrueを返す場合にのみ表示されます。
 
Component Modal (Component main, Component modal, const bool *show_modal)
 
ComponentDecorator Modal (Component modal, const bool *show_modal)
 
Component Collapsible (ConstStringRef label, Component child, Ref< bool > show)
 折りたたみ可能なコンポーネント。矢印付きのチェックボックスを表示します。アクティブ化されると、子が 表示されます。
 
Component Hoverable (Component component, bool *hover)
 コンポーネントをラップします。マウスでホバーされているかどうかを知る機能を提供します。
 
Component Hoverable (Component component, std::function< void()> on_enter, std::function< void()> on_leave)
 コンポーネントをラップします。コールバックを使用します。
 
Component Hoverable (Component component, std::function< void(bool)> on_change)
 コンポーネントをラップします。マウスでホバーされているかどうかを知る機能を提供します。
 
ComponentDecorator Hoverable (bool *hover)
 コンポーネントをラップします。マウスでホバーされているかどうかを知る機能を提供します。
 
ComponentDecorator Hoverable (std::function< void()> on_enter, std::function< void()> on_leave)
 コンポーネントをラップします。マウスでホバーされているかどうかを知る機能を提供します。
 
ComponentDecorator Hoverable (std::function< void(bool)> on_change)
 コンポーネントをラップします。マウスでホバーされているかどうかを知る機能を提供します。
 
Component Window (WindowOptions option)
 ドラッグ可能/サイズ変更可能なウィンドウ。複数のウィンドウを使用するには、それらを Container::Stacked({...})コンポーネントを使用してスタックする必要があります。