16 text(
"> " + label +
" "),
17 focusCursor(
text(
" ")),
20 return text(
" " + label +
" ");
26 screen.Loop(Container::Vertical({
28 Instance(
"focusCursorBlock", focusCursorBlock),
29 Instance(
"focusCursorBlockBlinking", focusCursorBlockBlinking),
30 Instance(
"focusCursorBar", focusCursorBar),
31 Instance(
"focusCursorBarBlinking", focusCursorBarBlinking),
32 Instance(
"focusCursorUnderline", focusCursorUnderline),
33 Instance(
"focusCursorUnderlineBlinking", focusCursorUnderlineBlinking),
Component Instance(std::string label, Decorator focusCursor)
static ScreenInteractive Fullscreen()
Component Renderer(Component child, std::function< Element()>)
返回一个新组件,类似于 |child|,但使用 |render| 作为 Component::Render() 事件。
Element text(std::wstring text)
显示一段Unicode文本。
#include "ftxui/component/component_base.hpp" // 用于 ComponentBase
std::function< Element(Element)> Decorator
Element hbox(Elements)
一个按水平顺序逐一显示元素的容器。
std::shared_ptr< ComponentBase > Component