Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ findById()

UINode * Flint::UIContext::findById ( const std::string & id) const
nodiscard

Performs a linear tree-search traversal to locate a specific element matching the provided identifier token.

Note
Runs at O(N) traversal costs across layout branches. For highly active frame loops, cache the extracted widget pointer output locally inside the state initializer.
Parameters
idThe descriptive identifier search key string assigned via setID().
Returns
Pointer to the targeted object element, or nullptr if no matching ID block is found.