diff options
author | Neil <nyamatongwe@gmail.com> | 2021-04-05 16:54:39 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-04-05 16:54:39 +1000 |
commit | b7b1e7a33569236400de14981f6629c4f48421c1 (patch) | |
tree | 38b3389c7b037bedde149fa4a7972312d571c029 /src/ViewStyle.cxx | |
parent | 088d8034e79e7e2e44a114a2dc203bda5518dd49 (diff) | |
download | scintilla-mirror-b7b1e7a33569236400de14981f6629c4f48421c1.tar.gz |
Change IndentView, WhiteSpaceVisibility, and TabDrawMode to enum class.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 6aa459895..f553f4205 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -256,10 +256,10 @@ void ViewStyle::Init(size_t stylesSize_) { CalculateMarginWidthAndMask(); textStart = marginInside ? fixedColumnWidth : leftMarginWidth; zoomLevel = 0; - viewWhitespace = wsInvisible; - tabDrawMode = tdLongArrow; + viewWhitespace = WhiteSpace::invisible; + tabDrawMode = TabDrawMode::longArrow; whitespaceSize = 1; - viewIndentationGuides = ivNone; + viewIndentationGuides = IndentView::none; viewEOL = false; extraFontFlag = 0; extraAscent = 0; @@ -491,13 +491,13 @@ bool ViewStyle::SelectionBackgroundDrawn() const noexcept { } bool ViewStyle::WhitespaceBackgroundDrawn() const noexcept { - return (viewWhitespace != wsInvisible) && (whitespaceColours.back.isSet); + return (viewWhitespace != WhiteSpace::invisible) && (whitespaceColours.back.isSet); } bool ViewStyle::WhiteSpaceVisible(bool inIndent) const noexcept { - return (!inIndent && viewWhitespace == wsVisibleAfterIndent) || - (inIndent && viewWhitespace == wsVisibleOnlyInIndent) || - viewWhitespace == wsVisibleAlways; + return (!inIndent && viewWhitespace == WhiteSpace::visibleAfterIndent) || + (inIndent && viewWhitespace == WhiteSpace::visibleOnlyInIndent) || + viewWhitespace == WhiteSpace::visibleAlways; } ColourDesired ViewStyle::WrapColour() const noexcept { |