From ee1886079d0a5cd350ee8e3379be347943ba93ae Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 22 May 2021 09:25:50 +1000 Subject: Encapsulate whether a margin shows folding. --- src/ViewStyle.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ViewStyle.cxx') 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; -- cgit v1.2.3