aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-11-11 19:14:30 +1100
committerNeil <nyamatongwe@gmail.com>2015-11-11 19:14:30 +1100
commit23460f666bf34479850000eed40ba0ea38ca6665 (patch)
tree1c199ed2a3adb52f3cb6790b39532235e66e38f2 /src/Editor.h
parent3684fe443af3fcc0e5ad8ab674203a58c4ccaac3 (diff)
downloadscintilla-mirror-23460f666bf34479850000eed40ba0ea38ca6665.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.h6
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);