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

Method LabelWrapByCharTest

tests/cpp-tests/Source/LabelTest/LabelTest.cpp:2928–2936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2926}
2927
2928LabelWrapByCharTest::LabelWrapByCharTest()
2929{
2930 _label->setLineBreakWithoutSpace(true);
2931 _label->setString("五六七八This \nis a very long sentence一二三四.");
2932 _label->setLineSpacing(5);
2933 _label->setAdditionalKerning(2);
2934 _label->setVerticalAlignment(TextVAlignment::TOP);
2935 _label->setOverflow(Label::Overflow::CLAMP);
2936}
2937
2938std::string LabelWrapByCharTest::title() const
2939{

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