19 Component vlist = Container::Vertical(std::move(children));
29 return std::make_shared<ComponentBase>();
56 App::FitComponent().Loop(component);
Component Inner(std::vector< Component > children)
Component Renderer(Component child, std::function< Element()>)
回傳一個新的 Component,類似 |child|,但使用 |render| 作為 Component::Render() 事件。
Element text(std::string_view text)
顯示一段 UTF8 編碼的 Unicode 文字。
Element hbox(Elements children)
一個逐一水平顯示元素的容器。
Component Collapsible(ConstStringRef label, Component child, Ref< bool > show=false)
可折疊元件。它顯示一個帶有箭頭的核取方塊。一旦啟用,子元件就會顯示。
std::shared_ptr< ComponentBase > Component