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

Method create_custom_element

src/ui/ui_elements.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30Rml::ElementPtr recompui::create_custom_element(Rml::Element* parent, std::string tag) {
31 auto instancer = recompui::get_custom_element_instancer(tag);
32 const Rml::XMLAttributes attributes = {};
33 if (Rml::ElementPtr element = instancer->InstanceElement(parent, tag, attributes))
34 {
35 element->SetInstancer(instancer);
36 element->SetAttributes(attributes);
37
38 return element;
39 }
40
41 return nullptr;
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected