Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches
◆
setRoot()
void Flint::UIContext::setRoot
(
std::unique_ptr<
UINode
>
root
)
Sets the root node of the UI hierarchy.
Note
Takes absolute ownership of the node tree. Any existing root node, along with active hover and focus states, is immediately dropped and cleared. Assigning a new root automatically propagates this context pointer recursively down the subtree.
Parameters
root
Unique pointer to the new root widget node.
See also
UINode::setContext
Flint
UIContext
Generated by
1.12.0