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

Method LabelCharMapFontTest

tests/cpp-tests/Source/LabelTest/LabelTest.cpp:3367–3383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3365}
3366
3367LabelCharMapFontTest::LabelCharMapFontTest()
3368{
3369 _label->setLineSpacing(5);
3370 _label->setVerticalAlignment(TextVAlignment::CENTER);
3371 _label->setOverflow(Label::Overflow::NONE);
3372 _label->setCharMap("fonts/tuffy_bold_italic-charmap.plist");
3373 _label->setString("Hello World, This is a char map test.");
3374 _label->setScale(0.5f);
3375
3376 auto stepper = (ControlStepper*)this->getChildByName("stepper");
3377 stepper->setEnabled(true);
3378
3379 auto checkbox = (CheckBox*)(this->getChildByName("toggleType"));
3380 checkbox->setEnabled(false);
3381
3382 this->updateDrawNodeSize(_label->getContentSize());
3383}
3384
3385std::string LabelCharMapFontTest::title() const
3386{

Callers

nothing calls this directly

Calls 10

setLineSpacingMethod · 0.80
setVerticalAlignmentMethod · 0.80
setCharMapMethod · 0.80
updateDrawNodeSizeMethod · 0.80
setOverflowMethod · 0.45
setStringMethod · 0.45
setScaleMethod · 0.45
getChildByNameMethod · 0.45
setEnabledMethod · 0.45
getContentSizeMethod · 0.45

Tested by

no test coverage detected