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
rootUnique pointer to the new root widget node.
See also
UINode::setContext