#include <LabelTestNew.h>
◆ LabelTTFLongLineWrapping()
| LabelTTFLongLineWrapping::LabelTTFLongLineWrapping |
( |
| ) |
|
在文件 LabelTestNew.cpp 第 936 行定义.
938 auto size = Director::getInstance()->getWinSize();
941 TTFConfig ttfConfig(
"fonts/arial.ttf", 14);
942 auto label1 = Label::createWithTTF(ttfConfig,
LongSentencesExample, TextHAlignment::CENTER,size.width);
943 label1->setPosition( Vec2(size.width/2, size.height/2) );
944 label1->setAnchorPoint(Vec2(0.5f, 1.0f));
#define LongSentencesExample
BitmapFontMultiLineAlignmentNew
引用了 LongSentencesExample.
◆ CREATE_FUNC()
◆ subtitle()
| std::string LabelTTFLongLineWrapping::subtitle |
( |
| ) |
const |
|
overridevirtual |
◆ title()
| std::string LabelTTFLongLineWrapping::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