| 2779 | } |
| 2780 | |
| 2781 | void 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 | |
| 2795 | bool Label::isWrapEnabled() const |
| 2796 | { |