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

Method LabelRichText

tests/cpp-tests/Source/LabelTest/LabelTest.cpp:3419–3433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3417//
3418
3419LabelRichText::LabelRichText()
3420{
3421 auto center = VisibleRect::center();
3422
3423 auto richText2 = RichText::createWithXML(
3424 "Mixing <b>UIRichText</b> with non <i>UIWidget</i> code. For more samples, see the UIRichTextTest.cpp file");
3425 if (richText2)
3426 {
3427 richText2->ignoreContentAdaptWithSize(false);
3428 richText2->setContentSize(Size(400.0f, 400.0f));
3429 richText2->setPosition(center);
3430
3431 addChild(richText2);
3432 }
3433}
3434
3435std::string LabelRichText::title() const
3436{

Callers

nothing calls this directly

Calls 4

SizeFunction · 0.50
setContentSizeMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected