27 inline std::shared_ptr<Layout>
VStack(std::initializer_list<std::shared_ptr<Layout>> children = {})
30 l->setStyleTag(
"VStack");
31 for (
auto &c : children)
41 inline std::shared_ptr<Layout>
HStack(std::initializer_list<std::shared_ptr<Layout>> children = {})
44 l->setStyleTag(
"HStack");
45 for (
auto &c : children)
53 inline std::shared_ptr<Layout>
Box(std::initializer_list<std::shared_ptr<Layout>> children = {})
56 l->setStyleTag(
"Box");
57 for (
auto &c : children)
66 inline std::shared_ptr<Layout>
Grid(std::initializer_list<std::shared_ptr<Layout>> children = {})
69 l->setStyleTag(
"Grid");
70 for (
auto &c : children)
91 setBlocksRaycast(
true);
92 setInteractive(
false);
Centralized standard library includes used throughout ZenitUI.
The node class: tree structure, layout pass, style resolution, input dispatch, render orchestration,...
void setStyleTag(const std::string &t)
Set the node's style tag.
TLayout(Args &&...args)
Definition Layout.hpp:1401
static std::shared_ptr< Panel > create(Args &&...args)
Definition Layout.hpp:1410
@ Vertical
Children flow top-to-bottom (column flex semantics).
Definition UIEnums.hpp:31
@ Stack
Children overlap each other; Z-order controls paint order.
Definition UIEnums.hpp:30
@ Grid
2D CSS-style grid layout (grid-template-columns / grid-template-rows).
Definition UIEnums.hpp:33
@ Horizontal
Children flow left-to-right (row flex semantics).
Definition UIEnums.hpp:32