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

Method initWithXML

core/ui/UIRichText.cpp:1311–1321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1309}
1310
1311bool RichText::initWithXML(std::string_view origxml, const ValueMap& defaults, const OpenUrlHandler& handleOpenUrl)
1312{
1313 if (Widget::init())
1314 {
1315 setDefaults(defaults);
1316 setOpenUrlHandler(handleOpenUrl);
1317
1318 return this->setString(origxml);
1319 }
1320 return false;
1321}
1322
1323bool RichText::setString(std::string_view text)
1324{

Callers 2

createWithXMLMethod · 0.45

Calls 2

setStringMethod · 0.95
initFunction · 0.50

Tested by

no test coverage detected