#include <memory>
#include <string>
int main() {
std::string content_1;
std::string content_2;
auto textarea_1 =
Input(&content_1);
auto textarea_2 =
Input(&content_2);
}) |
});
screen.Loop(component);
}
static ScreenInteractive Fullscreen()
Decorator size(WidthOrHeight, Constraint, int value)
Apply a constraint on the size of an element.
Element flex(Element)
Make a child element to expand proportionally to the space left in a container.
Component Renderer(Component child, std::function< Element()>)
Return a new Component, similar to |child|, but using |render| as the Component::Render() event.
Element text(std::wstring text)
Display a piece of unicode text.
Component Input(InputOption options={})
An input box for editing text.
Element separator()
Draw a vertical or horizontal separation in between two other elements.
Component ResizableSplitLeft(Component main, Component back, int *main_size)
An horizontal split in between two components, configurable using the mouse.
Element border(Element)
Draw a border around the element.
Element vbox(Elements)
A container displaying elements vertically one by one.