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

Method LabelShrinkByWordTest

tests/cpp-tests/Source/LabelTest/LabelTest.cpp:2973–2980  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2971/////////////////////////////////////////////////
2972
2973LabelShrinkByWordTest::LabelShrinkByWordTest()
2974{
2975 _label->setLineSpacing(5);
2976 _label->setAdditionalKerning(2);
2977 _label->setString("This is Hello World hehe I love 一二三");
2978 _label->setVerticalAlignment(TextVAlignment::TOP);
2979 _label->setOverflow(Label::Overflow::SHRINK);
2980}
2981
2982std::string LabelShrinkByWordTest::title() const
2983{

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected