mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-17 00:18:11 +08:00
Update document WIP.
This commit is contained in:

committed by
Arthur Sonzogni

parent
177df31d41
commit
75c424cea9
@@ -21,7 +21,7 @@ using GraphFunction = std::function<std::vector<int>(int, int)>;
|
||||
|
||||
// Pipe elements into decorator togethers.
|
||||
// For instance the next lines are equivalents:
|
||||
// -> text("ftxui") | bold | underlined
|
||||
// -> text("ftxui") | bold | underlined
|
||||
// -> underlined(bold(text(L"FTXUI")))
|
||||
Element operator|(Element, Decorator);
|
||||
Elements operator|(Elements, Decorator);
|
||||
@@ -61,9 +61,9 @@ Element hflow(Elements);
|
||||
// -- Flexibility ---
|
||||
// Define how to share the remaining space when not all of it is used inside a
|
||||
// container.
|
||||
Element flex(Element); // Expand/Minimize if possible/needed.
|
||||
Element flex_grow(Element); // Expand element if possible.
|
||||
Element flex_shrink(Element); // Minimize element if needed.
|
||||
Element flex(Element); // Expand/Minimize if possible/needed.
|
||||
Element flex_grow(Element); // Expand element if possible.
|
||||
Element flex_shrink(Element); // Minimize element if needed.
|
||||
|
||||
Element xflex(Element); // Expand/Minimize if possible/needed.
|
||||
Element xflex_grow(Element); // Expand element if possible.
|
||||
@@ -73,8 +73,8 @@ Element yflex(Element); // Expand/Minimize if possible/needed.
|
||||
Element yflex_grow(Element); // Expand element if possible.
|
||||
Element yflex_shrink(Element); // Minimize element if needed.
|
||||
|
||||
Element notflex(Element); // Reset the flex attribute.
|
||||
Element filler(); // A blank expandable element.
|
||||
Element notflex(Element); // Reset the flex attribute.
|
||||
Element filler(); // A blank expandable element.
|
||||
|
||||
// -- Size override;
|
||||
enum Direction { WIDTH, HEIGHT };
|
||||
|
@@ -14,6 +14,7 @@
|
||||
|
||||
namespace ftxui {
|
||||
|
||||
class Node;
|
||||
using Element = std::shared_ptr<Node>;
|
||||
using Elements = std::vector<std::shared_ptr<Node>>;
|
||||
|
||||
|
Reference in New Issue
Block a user