MCPcopy Create free account
hub / github.com/SpartanJ/eepp / wrapText

Method wrapText

src/eepp/ui/uitextview.cpp:349–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void UITextView::wrapText( const Uint32& maxWidth ) {
350 if ( mFlags & UI_WORD_WRAP ) {
351 mTextCache.setString( mString );
352 }
353
354 mTextCache.setLineWrapMode( LineWrapMode::Word );
355 mTextCache.setMaxWrapWidth( maxWidth );
356 invalidateDraw();
357}
358
359void UITextView::onAutoSize() {
360 bool sizeChanged = false;

Callers

nothing calls this directly

Calls 3

setMaxWrapWidthMethod · 0.80
setStringMethod · 0.45
setLineWrapModeMethod · 0.45

Tested by

no test coverage detected