diff options
author | Neil <nyamatongwe@gmail.com> | 2025-06-01 08:38:14 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2025-06-01 08:38:14 +1000 |
commit | a180e477ec3efd9d35a4cf32b63ab7354a03371f (patch) | |
tree | 17ed696a646a5acf4305a0795ae56690a04e08b5 /src/Editor.h | |
parent | 922a70ac051ac097632bc26e56c23fffb65aa43d (diff) | |
download | scintilla-mirror-a180e477ec3efd9d35a4cf32b63ab7354a03371f.tar.gz |
Add SCI_SCROLLVERTICAL API.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Editor.h b/src/Editor.h index 46879cdc4..f8bc18970 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -283,6 +283,12 @@ protected: // ScintillaBase subclass needs access to much of Editor // Wrapping support WrapPending wrapPending; ActionDuration durationWrapOneByte; + bool insideWrapScroll; + struct LineDocSub { + Scintilla::Line lineDoc = 0; + Scintilla::Line subLine = 0; + }; + std::optional<LineDocSub> scrollToAfterWrap; bool convertPastes; @@ -417,7 +423,7 @@ protected: // ScintillaBase subclass needs access to much of Editor Sci::Position FormatRange(Scintilla::Message iMessage, Scintilla::uptr_t wParam, Scintilla::sptr_t lParam); long TextWidth(Scintilla::uptr_t style, const char *text); - virtual void SetVerticalScrollPos() = 0; + virtual void SetVerticalScrollPos(); virtual void SetHorizontalScrollPos() = 0; virtual bool ModifyScrollBars(Sci::Line nMax, Sci::Line nPage) = 0; virtual void ReconfigureScrollBars(); |