diff options
author | Neil <nyamatongwe@gmail.com> | 2023-01-19 13:28:57 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2023-01-19 13:28:57 +1100 |
commit | 66f54388680a2617144e2bd3b4610f431c37fc02 (patch) | |
tree | 1bae29e1f6e25854fe5916782206a960c129a524 /src/PerLine.h | |
parent | 6039080cfba2b9344fa9cde2ba5688d2db590d66 (diff) | |
download | scintilla-mirror-66f54388680a2617144e2bd3b4610f431c37fc02.tar.gz |
Feature [feature-requests:#1444] Move GetFoldParent from Document to LineLevels
as better modularity. Add LineLevels::GetFoldLevel for better type safety.
Simplify bounds checks in GetLevel and GetFoldLevel.
Diffstat (limited to 'src/PerLine.h')
-rw-r--r-- | src/PerLine.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/PerLine.h b/src/PerLine.h index 5b57dcaa9..27009d5ad 100644 --- a/src/PerLine.h +++ b/src/PerLine.h @@ -75,6 +75,8 @@ public: void ClearLevels(); int SetLevel(Sci::Line line, int level, Sci::Line lines); int GetLevel(Sci::Line line) const noexcept; + FoldLevel GetFoldLevel(Sci::Line line) const noexcept; + Sci::Line GetFoldParent(Sci::Line line) const noexcept; }; class LineState : public PerLine { |