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

Method autoWrap

src/eepp/ui/uitextview.cpp:341–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void 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
349void UITextView::wrapText( const Uint32& maxWidth ) {
350 if ( mFlags & UI_WORD_WRAP ) {

Callers

nothing calls this directly

Calls 2

setLineWrapModeMethod · 0.45
getWidthMethod · 0.45

Tested by

no test coverage detected