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

Method wrapText

src/eepp/ui/uitooltip.cpp:653–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653void UITooltip::wrapText( const Uint32& maxWidth ) {
654 if ( mFlags & UI_WORD_WRAP ) {
655 mTextCache->setString( mStringBuffer );
656 }
657
658 mTextCache->setLineWrapMode( LineWrapMode::Word );
659 mTextCache->setMaxWrapWidth( maxWidth );
660 invalidateDraw();
661}
662
663void UITooltip::setWordWrap( bool set ) {
664 if ( set != isWordWrap() ) {

Callers

nothing calls this directly

Calls 3

setMaxWrapWidthMethod · 0.80
setStringMethod · 0.45
setLineWrapModeMethod · 0.45

Tested by

no test coverage detected