| 28 | } |
| 29 | |
| 30 | Rml::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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected