mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-10-02 17:39:03 +08:00
Add hflow.
This commit is contained in:
@@ -33,9 +33,10 @@ Element bgcolor(Color, Element);
|
||||
|
||||
// --- Layout ---
|
||||
// Horizontal, Vertical or stacked set of elements.
|
||||
Element vbox(Elements);
|
||||
Element hbox(Elements);
|
||||
Element vbox(Elements);
|
||||
Element dbox(Elements);
|
||||
Element hflow(Elements);
|
||||
|
||||
// -- Flexibility ---
|
||||
// Define how to share the remaining space when not all of it is used inside a
|
||||
@@ -73,6 +74,7 @@ Decorator operator|(Decorator, Decorator);
|
||||
TAKE_ANY_ARGS(vbox)
|
||||
TAKE_ANY_ARGS(hbox)
|
||||
TAKE_ANY_ARGS(dbox)
|
||||
TAKE_ANY_ARGS(hflow)
|
||||
|
||||
}; // namespace ftxui
|
||||
|
||||
|
@@ -33,6 +33,7 @@ class Screen {
|
||||
// Constructor using the terminal.
|
||||
static Screen TerminalFullscreen();
|
||||
static Screen TerminalOutput(std::unique_ptr<Node>& element);
|
||||
static Screen FitDocument(std::unique_ptr<Node>& element);
|
||||
|
||||
// Node write into the screen using Screen::at.
|
||||
wchar_t& at(size_t x, size_t y);
|
||||
|
Reference in New Issue
Block a user