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

Method LabelShrinkByCharTest

tests/cpp-tests/Source/LabelTest/LabelTest.cpp:2992–3000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2990}
2991
2992LabelShrinkByCharTest::LabelShrinkByCharTest()
2993{
2994 _label->setLineSpacing(5);
2995 _label->setAdditionalKerning(2);
2996 _label->setLineBreakWithoutSpace(true);
2997 _label->setString("This is Hello World hehe I love 一二三");
2998 _label->setVerticalAlignment(TextVAlignment::CENTER);
2999 _label->setOverflow(Label::Overflow::SHRINK);
3000}
3001
3002std::string LabelShrinkByCharTest::title() const
3003{

Callers

nothing calls this directly

Calls 6

setLineSpacingMethod · 0.80
setAdditionalKerningMethod · 0.80
setVerticalAlignmentMethod · 0.80
setStringMethod · 0.45
setOverflowMethod · 0.45

Tested by

no test coverage detected