12 bool checked[3] = {
false,
false,
false};
17 Add(Container::Vertical({
21 Slider(
"スライダー", &slider, 0.f, 100.f),
29 int window_1_left = 20;
30 int window_1_top = 10;
31 int window_1_width = 40;
32 int window_1_height = 20;
37 .left = &window_1_left,
39 .width = &window_1_width,
40 .height = &window_1_height,
61 auto window_5 =
Window({});
63 auto window_container = Container::Stacked({
72 return text(
"ウィンドウ1: " +
73 std::to_string(window_1_width) +
"x" +
74 std::to_string(window_1_height) +
" + " +
75 std::to_string(window_1_left) +
"," +
76 std::to_string(window_1_top));
79 auto layout = Container::Vertical({
Component DummyWindowContent()
void Add(Component children)
子を追加します。 @param child 添付する子。
static ScreenInteractive Fullscreen()
ftxui::Elementとして自身のレンダリングを実装します。ftxui::Eventに応答してキーボードナビゲーションを実装します。
Component Renderer(Component child, std::function< Element()>)
|child|に似ていますが、|render|をComponentRender()イベントとして使用する新しいコンポーネントを返します。
Component Window(WindowOptions option)
ドラッグ可能/サイズ変更可能なウィンドウ。複数のウィンドウを使用するには、それらを Container::Stacked({...})コンポーネントを使用してスタックする必要があります。
Component Checkbox(CheckboxOption options)
チェック可能な要素を描画します。
Element text(std::wstring text)
ユニコードテキストを表示します。
std::shared_ptr< T > Make(Args &&... args)
Component Slider(SliderOption< T > options)
どの方向にも対応するスライダー。
std::shared_ptr< ComponentBase > Component