18 Component vlist = Container::Vertical(std::move(children));
28 return std::make_shared<ComponentBase>();
Component Inner(std::vector< Component > children)
Element Render()
繪製組件。 建構一個 ftxui::Element,用於在表示此 ftxui::ComponentBase 的 ftxui::Screen 上繪製。請覆寫 OnRender() 以修改渲染。
static ScreenInteractive FitComponent()
void Loop(Component)
Execute the main loop.
Component Renderer(Component child, std::function< Element()>)
回傳一個新的元件,類似於 |child|,但使用 |render| 作為 Component::Render() 事件。
Element text(std::wstring text)
顯示一段 Unicode 文字。
Element hbox(Elements)
一個逐一水平顯示元素的容器。
Component Collapsible(ConstStringRef label, Component child, Ref< bool > show=false)
可折疊元件。它顯示一個帶有箭頭的核取方塊。一旦啟用,子元件就會顯示。
std::shared_ptr< ComponentBase > Component