LabelIssue15214
| 3943 | // LabelIssue15214 |
| 3944 | // |
| 3945 | LabelIssue15214::LabelIssue15214() |
| 3946 | { |
| 3947 | auto size = Director::getInstance()->getVisibleSize(); |
| 3948 | |
| 3949 | // 1 |
| 3950 | Label* label = Label::createWithTTF("TTF with setColor()", "fonts/arial.ttf", 24.0f); |
| 3951 | label->enableUnderline(); |
| 3952 | label->setColor(ax::Color3B::BLUE); |
| 3953 | label->setPosition(size.width / 2, size.height / 5 * 4); |
| 3954 | this->addChild(label); |
| 3955 | |
| 3956 | // 2 |
| 3957 | Label* label2 = Label::createWithSystemFont("System with setColor()", "Verdana", 24.0f); |
| 3958 | label2->enableUnderline(); |
| 3959 | label2->setColor(ax::Color3B::BLUE); |
| 3960 | label2->setPosition(size.width / 2, size.height / 5 * 3); |
| 3961 | this->addChild(label2); |
| 3962 | |
| 3963 | // 3 |
| 3964 | Label* label3 = Label::createWithTTF("TTF with setTextColor()", "fonts/arial.ttf", 24.0f); |
| 3965 | label3->enableUnderline(); |
| 3966 | label3->setTextColor(Color4B::BLUE); |
| 3967 | label3->setPosition(size.width / 2, size.height / 5 * 2); |
| 3968 | this->addChild(label3); |
| 3969 | |
| 3970 | // 4 |
| 3971 | Label* label4 = Label::createWithSystemFont("System with setTextColor()", "Verdana", 24.0f); |
| 3972 | label4->enableUnderline(); |
| 3973 | label4->setTextColor(Color4B::BLUE); |
| 3974 | label4->setPosition(size.width / 2, size.height / 5 * 1); |
| 3975 | this->addChild(label4); |
| 3976 | } |
| 3977 | |
| 3978 | std::string LabelIssue15214::title() const |
| 3979 | { |
nothing calls this directly
no test coverage detected