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 | 23460f666bf34479850000eed40ba0ea38ca6665 (patch) | |
| tree | 1c199ed2a3adb52f3cb6790b39532235e66e38f2 /include | |
| parent | 3684fe443af3fcc0e5ad8ab674203a58c4ccaac3 (diff) | |
| download | scintilla-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 'include')
| -rw-r--r-- | include/Scintilla.h | 6 | ||||
| -rw-r--r-- | include/Scintilla.iface | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index e3443409b..c985cea77 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -506,6 +506,12 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_WORDSTARTPOSITION 2266 #define SCI_WORDENDPOSITION 2267 #define SCI_ISRANGEWORD 2691 +#define SC_IDLESTYLING_NONE 0 +#define SC_IDLESTYLING_TOVISIBLE 1 +#define SC_IDLESTYLING_AFTERVISIBLE 2 +#define SC_IDLESTYLING_ALL 3 +#define SCI_SETIDLESTYLING 2692 +#define SCI_GETIDLESTYLING 2693 #define SC_WRAP_NONE 0 #define SC_WRAP_WORD 1 #define SC_WRAP_CHAR 2 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index ad50a2aaf..04fd767cd 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1260,6 +1260,18 @@ fun int WordEndPosition=2267(position pos, bool onlyWordCharacters) # Is the range start..end considered a word? fun bool IsRangeWord=2691(position start, position end) +enu IdleStyling=SC_IDLESTYLING_ +val SC_IDLESTYLING_NONE=0 +val SC_IDLESTYLING_TOVISIBLE=1 +val SC_IDLESTYLING_AFTERVISIBLE=2 +val SC_IDLESTYLING_ALL=3 + +# Sets limits to idle styling. +set void SetIdleStyling=2692(int idleStyling,) + +# Retrieve the limits to idle styling. +get int GetIdleStyling=2693(,) + enu Wrap=SC_WRAP_ val SC_WRAP_NONE=0 val SC_WRAP_WORD=1 |
