aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-01-02 18:02:04 +1100
committernyamatongwe <devnull@localhost>2011-01-02 18:02:04 +1100
commitdca63476b59be3391d9dc7a1dd3d7384b553e70e (patch)
tree8ce083dd14b7d392bcdb55b01cd428be989c4a50 /include
parenta317b8d0d40cabfcf5cafb64a632a2c961bfb43c (diff)
downloadscintilla-mirror-dca63476b59be3391d9dc7a1dd3d7384b553e70e.tar.gz
Send SCN_UPDATEUI notification when view scrolled. Satisfies feature request #3125977.
Also includes an updated field in notification so that updates of no interest can be easily ignored.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h5
-rw-r--r--include/Scintilla.iface5
2 files changed, 10 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index 0e1159b53..c0bb32332 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -832,6 +832,10 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SC_MOD_CONTAINER 0x40000
#define SC_MOD_LEXERSTATE 0x80000
#define SC_MODEVENTMASKALL 0xFFFFF
+#define SC_UPDATE_CONTENT 0x1
+#define SC_UPDATE_SELECTION 0x2
+#define SC_UPDATE_V_SCROLL 0x4
+#define SC_UPDATE_H_SCROLL 0x8
#define SCEN_CHANGE 768
#define SCEN_SETFOCUS 512
#define SCEN_KILLFOCUS 256
@@ -971,6 +975,7 @@ struct SCNotification {
int y; /* SCN_DWELLSTART, SCN_DWELLEND */
int token; /* SCN_MODIFIED with SC_MOD_CONTAINER */
int annotationLinesAdded; /* SC_MOD_CHANGEANNOTATION */
+ int updated; /* SCN_UPDATEUI */
};
#ifdef SCI_NAMESPACE
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index 405fc0552..1a81aca98 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -2193,6 +2193,11 @@ val SC_MOD_CONTAINER=0x40000
val SC_MOD_LEXERSTATE=0x80000
val SC_MODEVENTMASKALL=0xFFFFF
+val SC_UPDATE_CONTENT=0x1
+val SC_UPDATE_SELECTION=0x2
+val SC_UPDATE_V_SCROLL=0x4
+val SC_UPDATE_H_SCROLL=0x8
+
# For compatibility, these go through the COMMAND notification rather than NOTIFY
# and should have had exactly the same values as the EN_* constants.
# Unfortunately the SETFOCUS and KILLFOCUS are flipped over from EN_*