aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-04-24 16:30:16 +1000
committernyamatongwe <devnull@localhost>2013-04-24 16:30:16 +1000
commit3438ec5950c6ff3fcd9d4feb5c831ebbde93d60c (patch)
tree9f3a247ae70c2b8c331439e093b5fdf15bfc2198 /include
parent341e163afa67923ca42e083d176c726ea5ed5d3e (diff)
downloadscintilla-mirror-3438ec5950c6ff3fcd9d4feb5c831ebbde93d60c.tar.gz
Added automatic folding options.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h5
-rw-r--r--include/Scintilla.iface11
2 files changed, 16 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index e94672ebd..79ff07999 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -449,6 +449,11 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam,
#define SCI_EXPANDCHILDREN 2239
#define SCI_FOLDALL 2662
#define SCI_ENSUREVISIBLE 2232
+#define SC_AUTOMATICFOLD_SHOW 0x0001
+#define SC_AUTOMATICFOLD_CLICK 0x0002
+#define SC_AUTOMATICFOLD_CHANGE 0x0004
+#define SCI_SETAUTOMATICFOLD 2663
+#define SCI_GETAUTOMATICFOLD 2664
#define SC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
#define SC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
#define SC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index 416e628af..862a6e3a0 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1130,6 +1130,17 @@ fun void FoldAll=2662(int action,)
# Ensure a particular line is visible by expanding any header line hiding it.
fun void EnsureVisible=2232(int line,)
+enu AutomaticFold=SC_AUTOMATICFOLD_
+val SC_AUTOMATICFOLD_SHOW=0x0001
+val SC_AUTOMATICFOLD_CLICK=0x0002
+val SC_AUTOMATICFOLD_CHANGE=0x0004
+
+# Set automatic folding behaviours.
+set void SetAutomaticFold=2663(int automaticFold,)
+
+# Get automatic folding behaviours.
+get int GetAutomaticFold=2664(,)
+
enu FoldFlag=SC_FOLDFLAG_
val SC_FOLDFLAG_LINEBEFORE_EXPANDED=0x0002
val SC_FOLDFLAG_LINEBEFORE_CONTRACTED=0x0004