mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-23 13:28:08 +08:00
Add "frame" : scrollable area.
This commit is contained in:
@@ -22,19 +22,10 @@ class MyComponent : public Component {
|
||||
box_3_.label = L"Use WebAssembly";
|
||||
box_3_.state = true;
|
||||
}
|
||||
|
||||
Element Render() {
|
||||
return
|
||||
window(text(L" Checkbox "),
|
||||
hbox(
|
||||
container_.Render()
|
||||
)
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
auto screen = ScreenInteractive::FixedSize(30,5);
|
||||
auto screen = ScreenInteractive::TerminalOutput();
|
||||
MyComponent component;
|
||||
screen.Loop(&component);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user