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

Method enableWrap

core/2d/Label.cpp:2781–2793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2779}
2780
2781void Label::enableWrap(bool enable)
2782{
2783 if (enable == _enableWrap || _overflow == Overflow::RESIZE_HEIGHT)
2784 {
2785 return;
2786 }
2787
2788 this->_enableWrap = enable;
2789
2790 this->rescaleWithOriginalFontSize();
2791
2792 _contentDirty = true;
2793}
2794
2795bool Label::isWrapEnabled() const
2796{

Callers 5

setOverflowMethod · 0.95
initInactiveLabelsMethod · 0.80
placeInactiveLabelsMethod · 0.80
initWrapOptionMethod · 0.80
setSingleLineMethod · 0.80

Calls 1

Tested by 1

initWrapOptionMethod · 0.64