Update document WIP.

This commit is contained in:
ArthurSonzogni
2020-05-25 01:34:13 +02:00
committed by Arthur Sonzogni
parent 177df31d41
commit 75c424cea9
55 changed files with 3244 additions and 152 deletions

View File

@@ -129,6 +129,18 @@ class VBox : public Node {
}
};
/// @brief A container displaying elements vertically one by one.
/// @param children The elements in the container
/// @return The container.
///
/// #### Example
///
/// ```cpp
/// vbox({
/// text(L"Up"),
/// text(L"Down"),
/// });
/// ```
Element vbox(Elements children) {
return std::make_shared<VBox>(std::move(children));
}