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.h | |
parent | 088d8034e79e7e2e44a114a2dc203bda5518dd49 (diff) | |
download | scintilla-mirror-b7b1e7a33569236400de14981f6629c4f48421c1.tar.gz |
Change IndentView, WhiteSpaceVisibility, and TabDrawMode to enum class.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r-- | src/ViewStyle.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h index d33feb485..7f50804c2 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -40,11 +40,11 @@ public: void Realise(Surface &surface, int zoomLevel, int technology, const FontSpecification &fs); }; -enum IndentView {ivNone, ivReal, ivLookForward, ivLookBoth}; +enum class IndentView {none, real, lookForward, lookBoth}; -enum WhiteSpaceVisibility {wsInvisible=0, wsVisibleAlways=1, wsVisibleAfterIndent=2, wsVisibleOnlyInIndent=3}; +enum class WhiteSpace {invisible=0, visibleAlways=1, visibleAfterIndent=2, visibleOnlyInIndent=3}; -enum TabDrawMode {tdLongArrow=0, tdStrikeOut=1}; +enum class TabDrawMode {longArrow=0, strikeOut=1}; typedef std::map<FontSpecification, std::unique_ptr<FontRealised>> FontMap; @@ -123,7 +123,7 @@ public: bool marginInside; ///< true: margin included in text view, false: separate views int textStart; ///< Starting x position of text within the view int zoomLevel; - WhiteSpaceVisibility viewWhitespace; + WhiteSpace viewWhitespace; TabDrawMode tabDrawMode; int whitespaceSize; IndentView viewIndentationGuides; |