| 3417 | // |
| 3418 | |
| 3419 | LabelRichText::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 | |
| 3435 | std::string LabelRichText::title() const |
| 3436 | { |
nothing calls this directly
no test coverage detected