From fc7f7bed53a60d2d3785cf95093d388d39b2af11 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 11 Nov 2015 19:14:30 +1100 Subject: Implemented idle styling. This allows painting without first styling all visible text then styling in the background using idle-time. --- src/Editor.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Editor.h') 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); -- cgit v1.2.3