diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-22 09:25:50 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-22 09:25:50 +1000 |
commit | ee1886079d0a5cd350ee8e3379be347943ba93ae (patch) | |
tree | 105ef0a0c7a9540ce2a3f90fa7d47fe9334d58c5 /src/ViewStyle.cxx | |
parent | c8235ba0e0292f209a8233613669e2cff8de80da (diff) | |
download | scintilla-mirror-ee1886079d0a5cd350ee8e3379be347943ba93ae.tar.gz |
Encapsulate whether a margin shows folding.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 4 |
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; |