| 339 | } |
| 340 | |
| 341 | void UITextView::autoWrap() { |
| 342 | mTextCache.setLineWrapMode( mFlags & UI_WORD_WRAP ? LineWrapMode::Word : LineWrapMode::NoWrap ); |
| 343 | |
| 344 | if ( mFlags & UI_WORD_WRAP ) { |
| 345 | wrapText( mSize.getWidth() - mPaddingPx.Left - mPaddingPx.Right ); |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | void UITextView::wrapText( const Uint32& maxWidth ) { |
| 350 | if ( mFlags & UI_WORD_WRAP ) { |
nothing calls this directly
no test coverage detected