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

Method setLineWrapMode

src/eepp/ui/uicodeeditor.cpp:1054–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054void UICodeEditor::setLineWrapMode( LineWrapMode mode ) {
1055 auto prevMode = mDocView.getConfig().mode;
1056 mDocView.setLineWrapMode( mode );
1057 if ( prevMode != mode ) {
1058 scrollToCursor();
1059
1060 mLongestLineWidth = 0;
1061 invalidateLongestLineWidth();
1062 }
1063}
1064
1065LineWrapType UICodeEditor::getLineWrapType() const {
1066 return mLineWrapType;

Callers 5

loadFromXmlNodeMethod · 0.45
autoWrapMethod · 0.45
wrapTextMethod · 0.45
autoWrapMethod · 0.45
wrapTextMethod · 0.45

Calls 1

getConfigMethod · 0.80

Tested by

no test coverage detected