#include <LabelTestNew.h>
◆ LabelRichText()
| LabelRichText::LabelRichText |
( |
| ) |
|
在文件 LabelTestNew.cpp 第 3009 行定义.
3013 auto richText2 = RichText::createWithXML(
"Mixing <b>UIRichText</b> with non <i>UIWidget</i> code. For more samples, see the UIRichTextTest.cpp file");
3016 richText2->ignoreContentAdaptWithSize(
false);
3017 richText2->setContentSize(Size(400.0f, 400.0f));
3018 richText2->setPosition(center);
3020 addChild(richText2);
static cocos2d::Vec2 center()
引用了 VisibleRect::center().
◆ CREATE_FUNC()
◆ subtitle()
| std::string LabelRichText::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string LabelRichText::title |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/LabelTest/LabelTestNew.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/LabelTest/LabelTestNew.cpp