aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/Scintilla.iface
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-04-21 16:13:28 +1000
committernyamatongwe <devnull@localhost>2013-04-21 16:13:28 +1000
commit341e163afa67923ca42e083d176c726ea5ed5d3e (patch)
treecd5b0bc6f9bfd31848397972e4644a6ceb0b05ae /include/Scintilla.iface
parentb4c56acc3db4184664ce16ea80cbe6ea8d806bf4 (diff)
downloadscintilla-mirror-341e163afa67923ca42e083d176c726ea5ed5d3e.tar.gz
Implement commonly needed folding methods based on code from SciTE.
Diffstat (limited to 'include/Scintilla.iface')
-rw-r--r--include/Scintilla.iface17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index b2e8608ff..416e628af 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -1110,6 +1110,23 @@ get bool GetFoldExpanded=2230(int line,)
# Switch a header line between expanded and contracted.
fun void ToggleFold=2231(int line,)
+enu FoldAction=SC_FOLDACTION
+val SC_FOLDACTION_CONTRACT=0
+val SC_FOLDACTION_EXPAND=1
+val SC_FOLDACTION_TOGGLE=2
+
+# Expand or contract a fold header.
+fun void FoldLine=2237(int line, int action)
+
+# Expand or contract a fold header and its children.
+fun void FoldChildren=2238(int line, int action)
+
+# Expand a fold header and all children. Use the level argument instead of the line's current level.
+fun void ExpandChildren=2239(int line, int level)
+
+# Expand or contract all fold headers.
+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,)