MCPcopy Create free account
hub / github.com/axmolengine/axmol / createWithXML

Method createWithXML

core/ui/UIRichText.cpp:1290–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288}
1289
1290RichText* RichText::createWithXML(std::string_view xml, const ValueMap& defaults, const OpenUrlHandler& handleOpenUrl)
1291{
1292 RichText* widget = new RichText();
1293 if (widget->initWithXML(xml, defaults, handleOpenUrl))
1294 {
1295 widget->autorelease();
1296 return widget;
1297 }
1298 AX_SAFE_DELETE(widget);
1299 return nullptr;
1300}
1301
1302bool RichText::init()
1303{

Callers

nothing calls this directly

Calls 2

autoreleaseMethod · 0.80
initWithXMLMethod · 0.45

Tested by

no test coverage detected