diff options
author | Neil <nyamatongwe@gmail.com> | 2018-10-11 09:29:05 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-10-11 09:29:05 +1100 |
commit | 083b30ff1783f7b6c803d2c5489ddcd5d0dce14f (patch) | |
tree | d28d0b4042348afcde28455406ca3cb69d11ab12 /include | |
parent | 00f3a3ba52bb03872758a300719622161b469faa (diff) | |
download | scintilla-mirror-083b30ff1783f7b6c803d2c5489ddcd5d0dce14f.tar.gz |
Backport: Add SCI_SETCOMMANDEVENTS API to allow turning off command events.
This can reduce the time taken to fold a document by half.
Backport of changeset 7110:09c647755bed.
Diffstat (limited to 'include')
-rw-r--r-- | include/Scintilla.h | 2 | ||||
-rw-r--r-- | include/Scintilla.iface | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index 305e64c88..298103cea 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -699,6 +699,8 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_RELEASEDOCUMENT 2377 #define SCI_GETDOCUMENTOPTIONS 2379 #define SCI_GETMODEVENTMASK 2378 +#define SCI_SETCOMMANDEVENTS 2717 +#define SCI_GETCOMMANDEVENTS 2718 #define SCI_SETFOCUS 2380 #define SCI_GETFOCUS 2381 #define SC_STATUS_OK 0 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index a966d6bf4..0281f92f5 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -1806,6 +1806,12 @@ get int GetDocumentOptions=2379(,) # Get which document modification events are sent to the container. get int GetModEventMask=2378(,) +# Set whether command events are sent to the container. +set void SetCommandEvents=2717(bool commandEvents,) + +# Get whether command events are sent to the container. +get bool GetCommandEvents=2718(,) + # Change internal focus flag. set void SetFocus=2380(bool focus,) # Get internal focus flag. |