MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / get_custom_element_instancer

Method get_custom_element_instancer

src/ui/ui_elements.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21Rml::ElementInstancer* recompui::get_custom_element_instancer(std::string tag) {
22 for (auto& element_config : custom_elements) {
23 if (tag == element_config.tag) {
24 return element_config.instancer.get();
25 }
26 }
27 return nullptr;
28}
29
30Rml::ElementPtr recompui::create_custom_element(Rml::Element* parent, std::string tag) {
31 auto instancer = recompui::get_custom_element_instancer(tag);

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected