diff options
author | Neil <nyamatongwe@gmail.com> | 2015-11-11 19:14:30 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-11-11 19:14:30 +1100 |
commit | fc7f7bed53a60d2d3785cf95093d388d39b2af11 (patch) | |
tree | 6b1030593ef0c6e8815c356269b8722d1109017c /src/Editor.h | |
parent | 4a52b4ef384436f5474184588ecacf666369afa0 (diff) | |
download | scintilla-mirror-fc7f7bed53a60d2d3785cf95093d388d39b2af11.tar.gz |
Implemented idle styling. This allows painting without first styling all visible
text then styling in the background using idle-time.
Diffstat (limited to 'src/Editor.h')
-rw-r--r-- | src/Editor.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Editor.h b/src/Editor.h index 7b88cbab0..0d788b5a8 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -234,6 +234,8 @@ protected: // ScintillaBase subclass needs access to much of Editor bool paintingAllText; bool willRedrawAll; WorkNeeded workNeeded; + int idleStyling; + bool needIdleStyling; int modEventMask; @@ -525,6 +527,10 @@ protected: // ScintillaBase subclass needs access to much of Editor int PositionAfterArea(PRectangle rcArea) const; void StyleToPositionInView(Position pos); + int PositionAfterMaxStyling(int posMax, bool scrolling) const; + void StartIdleStyling(bool truncatedLastStyling); + void StyleAreaBounded(PRectangle rcArea, bool scrolling); + void IdleStyling(); virtual void IdleWork(); virtual void QueueIdleWork(WorkNeeded::workItems items, int upTo=0); |