aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-22 09:25:50 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-22 09:25:50 +1000
commitee1886079d0a5cd350ee8e3379be347943ba93ae (patch)
tree105ef0a0c7a9540ce2a3f90fa7d47fe9334d58c5 /src/ViewStyle.cxx
parentc8235ba0e0292f209a8233613669e2cff8de80da (diff)
downloadscintilla-mirror-ee1886079d0a5cd350ee8e3379be347943ba93ae.tar.gz
Encapsulate whether a margin shows folding.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 518ca3bde..675c7cedf 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -38,6 +38,10 @@ MarginStyle::MarginStyle(int style_, int width_, int mask_) noexcept :
style(style_), width(width_), mask(mask_), sensitive(false), cursor(SC_CURSORREVERSEARROW) {
}
+bool MarginStyle::ShowsFolding() const noexcept {
+ return (mask & SC_MASK_FOLDERS) != 0;
+}
+
FontRealised::FontRealised() noexcept = default;
FontRealised::~FontRealised() = default;