aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/Scintilla.iface237
1 files changed, 119 insertions, 118 deletions
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index a1c480d94..3e9c0f20d 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -50,7 +50,8 @@
## void
## int
## bool -> integer, 1=true, 0=false
-## position -> integer position in a document
+## position -> intptr_t position in a document
+## line -> intptr_t line in a document
## colour -> colour integer containing red, green and blue bytes.
## string -> pointer to const character
## stringresult -> pointer to character, NULL-> return size of result
@@ -90,28 +91,28 @@ val SCI_OPTIONAL_START=3000
val SCI_LEXER_START=4000
# Add text to the document at current position.
-fun void AddText=2001(int length, string text)
+fun void AddText=2001(position length, string text)
# Add array of cells to document.
-fun void AddStyledText=2002(int length, cells c)
+fun void AddStyledText=2002(position length, cells c)
# Insert string at a position.
fun void InsertText=2003(position pos, string text)
# Change the text that is being inserted in response to SC_MOD_INSERTCHECK
-fun void ChangeInsertion=2672(int length, string text)
+fun void ChangeInsertion=2672(position length, string text)
# Delete all text in the document.
fun void ClearAll=2004(,)
# Delete a range of text in the document.
-fun void DeleteRange=2645(position start, int lengthDelete)
+fun void DeleteRange=2645(position start, position lengthDelete)
# Set all style bytes to 0, remove all folding information.
fun void ClearDocumentStyle=2005(,)
# Returns the number of bytes in the document.
-get int GetLength=2006(,)
+get position GetLength=2006(,)
# Returns the character byte at the position.
get int GetCharAt=2007(position pos,)
@@ -141,7 +142,7 @@ fun void SetSavePoint=2014(,)
# Retrieve a buffer of cells.
# Returns the number of bytes in the buffer not including terminating NULs.
-fun int GetStyledText=2015(, textrange tr)
+fun position GetStyledText=2015(, textrange tr)
# Are there any redoable actions in the undo history?
fun bool CanRedo=2016(,)
@@ -187,7 +188,7 @@ fun position PositionFromPoint=2022(int x, int y)
fun position PositionFromPointClose=2023(int x, int y)
# Set caret to start of a line and ensure it is visible.
-fun void GotoLine=2024(int line,)
+fun void GotoLine=2024(line line,)
# Set caret to a position and ensure it is visible.
fun void GotoPos=2025(position caret,)
@@ -199,7 +200,7 @@ set void SetAnchor=2026(position anchor,)
# Retrieve the text of the line containing the caret.
# Returns the index of the caret on the line.
# Result is NUL-terminated.
-fun int GetCurLine=2027(int length, stringresult text)
+fun position GetCurLine=2027(position length, stringresult text)
# Retrieve the position of the last correctly styled character.
get position GetEndStyled=2028(,)
@@ -224,7 +225,7 @@ fun void StartStyling=2032(position start, int unused)
# Change style from current styling position for length characters to a style
# and move the current styling position to after this newly styled segment.
-fun void SetStyling=2033(int length, int style)
+fun void SetStyling=2033(position length, int style)
# Is drawing done first into a buffer or direct to the screen?
get bool GetBufferedDraw=2034(,)
@@ -240,13 +241,13 @@ set void SetTabWidth=2036(int tabWidth,)
get int GetTabWidth=2121(,)
# Clear explicit tabstops on a line.
-fun void ClearTabStops=2675(int line,)
+fun void ClearTabStops=2675(line line,)
# Add an explicit tab stop for a line.
-fun void AddTabStop=2676(int line, int x)
+fun void AddTabStop=2676(line line, int x)
# Find the next explicit tab stop position on a line after a position.
-fun int GetNextTabStop=2677(int line, int x)
+fun int GetNextTabStop=2677(line line, int x)
# The SC_CP_UTF8 value can be used to enter Unicode mode.
# This is the same value as CP_UTF8 in Windows
@@ -336,29 +337,29 @@ set void MarkerSetBackSelected=2292(int markerNumber, colour back)
fun void MarkerEnableHighlight=2293(bool enabled,)
# Add a marker to a line, returning an ID which can be used to find or delete the marker.
-fun int MarkerAdd=2043(int line, int markerNumber)
+fun int MarkerAdd=2043(line line, int markerNumber)
# Delete a marker from a line.
-fun void MarkerDelete=2044(int line, int markerNumber)
+fun void MarkerDelete=2044(line line, int markerNumber)
# Delete all markers with a particular number from all lines.
fun void MarkerDeleteAll=2045(int markerNumber,)
# Get a bit mask of all the markers set on a line.
-fun int MarkerGet=2046(int line,)
+fun int MarkerGet=2046(line line,)
# Find the next line at or after lineStart that includes a marker in mask.
# Return -1 when no more lines.
-fun int MarkerNext=2047(int lineStart, int markerMask)
+fun line MarkerNext=2047(line lineStart, int markerMask)
# Find the previous line before lineStart that includes a marker in mask.
-fun int MarkerPrevious=2048(int lineStart, int markerMask)
+fun line MarkerPrevious=2048(line lineStart, int markerMask)
# Define a marker from a pixmap.
fun void MarkerDefinePixmap=2049(int markerNumber, string pixmap)
# Add a set of markers to a line.
-fun void MarkerAddSet=2466(int line, int markerSet)
+fun void MarkerAddSet=2466(line line, int markerSet)
# Set the alpha used for a marker that is drawn in the text area, not the margin.
set void MarkerSetAlpha=2476(int markerNumber, int alpha)
@@ -592,7 +593,7 @@ fun void ClearCmdKey=2071(keymod keyDefinition,)
fun void ClearAllCmdKeys=2072(,)
# Set the styles for a segment of the document.
-fun void SetStylingEx=2073(int length, string styles)
+fun void SetStylingEx=2073(position length, string styles)
# Set a style to be visible or not.
set void StyleSetVisible=2074(int style, bool visible)
@@ -712,10 +713,10 @@ set void SetWhitespaceSize=2086(int size,)
get int GetWhitespaceSize=2087(,)
# Used to hold extra styling information for each line.
-set void SetLineState=2092(int line, int state)
+set void SetLineState=2092(line line, int state)
# Retrieve the extra styling information for a line.
-get int GetLineState=2093(int line,)
+get int GetLineState=2093(line line,)
# Retrieve the last line number that has line state.
get int GetMaxLineState=2094(,)
@@ -747,7 +748,7 @@ set void StyleSetChangeable=2099(int style, bool changeable)
# Display a auto-completion list.
# The lengthEntered parameter indicates how many characters before
# the caret should be used to provide context.
-fun void AutoCShow=2100(int lengthEntered, string itemList)
+fun void AutoCShow=2100(position lengthEntered, string itemList)
# Remove the auto-completion list from the screen.
fun void AutoCCancel=2101(,)
@@ -855,22 +856,22 @@ set void SetUseTabs=2124(bool useTabs,)
get bool GetUseTabs=2125(,)
# Change the indentation of a line to a number of columns.
-set void SetLineIndentation=2126(int line, int indentation)
+set void SetLineIndentation=2126(line line, int indentation)
# Retrieve the number of columns that a line is indented.
-get int GetLineIndentation=2127(int line,)
+get int GetLineIndentation=2127(line line,)
# Retrieve the position before the first non indentation character on a line.
-get position GetLineIndentPosition=2128(int line,)
+get position GetLineIndentPosition=2128(line line,)
# Retrieve the column number of a position, taking tab width into account.
-get int GetColumn=2129(position pos,)
+get position GetColumn=2129(position pos,)
# Count characters between two positions.
-fun int CountCharacters=2633(position start, position end)
+fun position CountCharacters=2633(position start, position end)
# Count code units between two positions.
-fun int CountCodeUnits=2715(position start, position end)
+fun position CountCodeUnits=2715(position start, position end)
# Show or hide the horizontal scroll bar.
set void SetHScrollBar=2130(bool visible,)
@@ -891,13 +892,13 @@ get int GetIndentationGuides=2133(,)
# Set the highlighted indentation guide column.
# 0 = no highlighted guide.
-set void SetHighlightGuide=2134(int column,)
+set void SetHighlightGuide=2134(position column,)
# Get the highlighted indentation guide column.
-get int GetHighlightGuide=2135(,)
+get position GetHighlightGuide=2135(,)
# Get the position after the last visible characters on a line.
-get position GetLineEndPosition=2136(int line,)
+get position GetLineEndPosition=2136(line line,)
# Get the code page used to interpret the bytes of the document as characters.
get int GetCodePage=2137(,)
@@ -968,14 +969,14 @@ fun position FindText=2150(int searchFlags, findtext ft)
fun position FormatRange=2151(bool draw, formatrange fr)
# Retrieve the display line at the top of the display.
-get int GetFirstVisibleLine=2152(,)
+get line GetFirstVisibleLine=2152(,)
# Retrieve the contents of a line.
# Returns the length of the line.
-fun int GetLine=2153(int line, stringresult text)
+fun position GetLine=2153(line line, stringresult text)
# Returns the number of lines in the document. There is always at least one.
-get int GetLineCount=2154(,)
+get line GetLineCount=2154(,)
# Sets the size in pixels of the left margin.
set void SetMarginLeft=2155(, int pixelWidth)
@@ -998,11 +999,11 @@ fun void SetSel=2160(position anchor, position caret)
# Retrieve the selected text.
# Return the length of the text.
# Result is NUL-terminated.
-fun int GetSelText=2161(, stringresult text)
+fun position GetSelText=2161(, stringresult text)
# Retrieve a range of text.
# Return the length of the text.
-fun int GetTextRange=2162(, textrange tr)
+fun position GetTextRange=2162(, textrange tr)
# Draw the selection either highlighted or in normal (non-highlighted) style.
fun void HideSelection=2163(bool hide,)
@@ -1014,13 +1015,13 @@ fun int PointXFromPosition=2164(, position pos)
fun int PointYFromPosition=2165(, position pos)
# Retrieve the line containing a position.
-fun int LineFromPosition=2166(position pos,)
+fun line LineFromPosition=2166(position pos,)
# Retrieve the position at the start of a line.
-fun position PositionFromLine=2167(int line,)
+fun position PositionFromLine=2167(line line,)
# Scroll horizontally and vertically.
-fun void LineScroll=2168(int columns, int lines)
+fun void LineScroll=2168(int columns, line lines)
# Ensure the caret is visible.
fun void ScrollCaret=2169(,)
@@ -1069,10 +1070,10 @@ fun void SetText=2181(, string text)
# Retrieve all the text in the document.
# Returns number of characters retrieved.
# Result is NUL-terminated.
-fun int GetText=2182(int length, stringresult text)
+fun position GetText=2182(position length, stringresult text)
# Retrieve the number of characters in the document.
-get int GetTextLength=2183(,)
+get position GetTextLength=2183(,)
# Retrieve a pointer to a function that processes messages for this Scintilla.
get int GetDirectFunction=2184(,)
@@ -1111,7 +1112,7 @@ get position GetTargetEnd=2193(,)
fun void SetTargetRange=2686(position start, position end)
# Retrieve the text in the target.
-get int GetTargetText=2687(, stringresult text)
+get position GetTargetText=2687(, stringresult text)
# Make the target range start and end be the same as the selection range start and end.
fun void TargetFromSelection=2287(,)
@@ -1122,7 +1123,7 @@ fun void TargetWholeDocument=2690(,)
# Replace the target text with the argument text.
# Text is counted so it can contain NULs.
# Returns the length of the replacement text.
-fun int ReplaceTarget=2194(int length, string text)
+fun position ReplaceTarget=2194(position length, string text)
# Replace the target text with the argument text after \d processing.
# Text is counted so it can contain NULs.
@@ -1130,12 +1131,12 @@ fun int ReplaceTarget=2194(int length, string text)
# matched in the last search operation which were surrounded by \( and \).
# Returns the length of the replacement text including any change
# caused by processing the \d patterns.
-fun int ReplaceTargetRE=2195(int length, string text)
+fun position ReplaceTargetRE=2195(position length, string text)
# Search for a counted string in the target and set the target to the found
# range. Text is counted so it can contain NULs.
-# Returns length of range or -1 for failure in which case target is not moved.
-fun int SearchInTarget=2197(int length, string text)
+# Returns start of found range or -1 for failure in which case target is not moved.
+fun position SearchInTarget=2197(position length, string text)
# Set the search flags used by SearchInTarget.
set void SetSearchFlags=2198(int searchFlags,)
@@ -1156,7 +1157,7 @@ fun bool CallTipActive=2202(,)
fun position CallTipPosStart=2203(,)
# Set the start position in order to change when backspacing removes the calltip.
-set void CallTipSetPosStart=2214(int posStart,)
+set void CallTipSetPosStart=2214(position posStart,)
# Highlight a segment of the definition.
fun void CallTipSetHlt=2204(int highlightStart, int highlightEnd)
@@ -1177,13 +1178,13 @@ set void CallTipUseStyle=2212(int tabSize,)
set void CallTipSetPosition=2213(bool above,)
# Find the display line of a document line taking hidden lines into account.
-fun int VisibleFromDocLine=2220(int docLine,)
+fun line VisibleFromDocLine=2220(line docLine,)
# Find the document line of a display line taking hidden lines into account.
-fun int DocLineFromVisible=2221(int displayLine,)
+fun line DocLineFromVisible=2221(line displayLine,)
# The number of display lines needed to wrap a document line
-fun int WrapCount=2235(int docLine,)
+fun line WrapCount=2235(line docLine,)
enu FoldLevel=SC_FOLDLEVEL
val SC_FOLDLEVELBASE=0x400
@@ -1194,40 +1195,40 @@ val SC_FOLDLEVELNUMBERMASK=0x0FFF
# Set the fold level of a line.
# This encodes an integer level along with flags indicating whether the
# line is a header and whether it is effectively white space.
-set void SetFoldLevel=2222(int line, int level)
+set void SetFoldLevel=2222(line line, int level)
# Retrieve the fold level of a line.
-get int GetFoldLevel=2223(int line,)
+get int GetFoldLevel=2223(line line,)
# Find the last child line of a header line.
-get int GetLastChild=2224(int line, int level)
+get line GetLastChild=2224(line line, int level)
# Find the parent line of a child line.
-get int GetFoldParent=2225(int line,)
+get line GetFoldParent=2225(line line,)
# Make a range of lines visible.
-fun void ShowLines=2226(int lineStart, int lineEnd)
+fun void ShowLines=2226(line lineStart, line lineEnd)
# Make a range of lines invisible.
-fun void HideLines=2227(int lineStart, int lineEnd)
+fun void HideLines=2227(line lineStart, line lineEnd)
# Is a line visible?
-get bool GetLineVisible=2228(int line,)
+get bool GetLineVisible=2228(line line,)
# Are all lines visible?
get bool GetAllLinesVisible=2236(,)
# Show the children of a header line.
-set void SetFoldExpanded=2229(int line, bool expanded)
+set void SetFoldExpanded=2229(line line, bool expanded)
# Is a header line expanded?
-get bool GetFoldExpanded=2230(int line,)
+get bool GetFoldExpanded=2230(line line,)
# Switch a header line between expanded and contracted.
-fun void ToggleFold=2231(int line,)
+fun void ToggleFold=2231(line line,)
# Switch a header line between expanded and contracted and show some text after the line.
-fun void ToggleFoldShowText=2700(int line, string text)
+fun void ToggleFoldShowText=2700(line line, string text)
enu FoldDisplayTextStyle=SC_FOLDDISPLAYTEXT_
val SC_FOLDDISPLAYTEXT_HIDDEN=0
@@ -1252,19 +1253,19 @@ val SC_FOLDACTION_EXPAND=1
val SC_FOLDACTION_TOGGLE=2
# Expand or contract a fold header.
-fun void FoldLine=2237(int line, int action)
+fun void FoldLine=2237(line line, int action)
# Expand or contract a fold header and its children.
-fun void FoldChildren=2238(int line, int action)
+fun void FoldChildren=2238(line 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)
+fun void ExpandChildren=2239(line 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,)
+fun void EnsureVisible=2232(line line,)
enu AutomaticFold=SC_AUTOMATICFOLD_
val SC_AUTOMATICFOLD_SHOW=0x0001
@@ -1290,7 +1291,7 @@ set void SetFoldFlags=2233(int flags,)
# Ensure a particular line is visible by expanding any header line hiding it.
# Use the currently set visibility policy to determine which range to display.
-fun void EnsureVisibleEnforcePolicy=2234(int line,)
+fun void EnsureVisibleEnforcePolicy=2234(line line,)
# Sets whether a tab pressed when caret is within indentation indents.
set void SetTabIndents=2260(bool tabIndents,)
@@ -1313,10 +1314,10 @@ set void SetMouseDwellTime=2264(int periodMilliseconds,)
get int GetMouseDwellTime=2265(,)
# Get position of start of word.
-fun int WordStartPosition=2266(position pos, bool onlyWordCharacters)
+fun position WordStartPosition=2266(position pos, bool onlyWordCharacters)
# Get position of end of word.
-fun int WordEndPosition=2267(position pos, bool onlyWordCharacters)
+fun position WordEndPosition=2267(position pos, bool onlyWordCharacters)
# Is the range start..end considered a word?
fun bool IsRangeWord=2691(position start, position end)
@@ -1425,7 +1426,7 @@ set void SetEndAtLastLine=2277(bool endAtLastLine,)
get bool GetEndAtLastLine=2278(,)
# Retrieve the height of a particular line of text in pixels.
-fun int TextHeight=2279(int line,)
+fun int TextHeight=2279(line line,)
# Show or hide the vertical scroll bar.
set void SetVScrollBar=2280(bool visible,)
@@ -1434,7 +1435,7 @@ set void SetVScrollBar=2280(bool visible,)
get bool GetVScrollBar=2281(,)
# Append a string to the end of the document without changing the selection.
-fun void AppendText=2282(int length, string text)
+fun void AppendText=2282(position length, string text)
# Is drawing done in two phases with backgrounds drawn before foregrounds?
get bool GetTwoPhaseDraw=2283(,)
@@ -1473,7 +1474,7 @@ set void SetFontQuality=2611(int fontQuality,)
get int GetFontQuality=2612(,)
# Scroll so that a display line is at the top of the display.
-set void SetFirstVisibleLine=2613(int displayLine,)
+set void SetFirstVisibleLine=2613(line displayLine,)
enu MultiPaste=SC_MULTIPASTE_
val SC_MULTIPASTE_ONCE=0
@@ -1706,7 +1707,7 @@ fun void LineCopy=2455(,)
fun void MoveCaretInsideView=2401(,)
# How many characters are on a line, including end of line characters?
-fun int LineLength=2350(int line,)
+fun position LineLength=2350(line line,)
# Highlight the characters at two positions.
fun void BraceHighlight=2351(position posA, position posB)
@@ -1746,11 +1747,11 @@ val EDGE_BACKGROUND=2
val EDGE_MULTILINE=3
# Retrieve the column number which text should be kept within.
-get int GetEdgeColumn=2360(,)
+get position GetEdgeColumn=2360(,)
# Set the column number of the edge.
# If text goes past the edge then it is highlighted.
-set void SetEdgeColumn=2361(int column,)
+set void SetEdgeColumn=2361(position column,)
# Retrieve the edge highlight mode.
get int GetEdgeMode=2362(,)
@@ -1766,7 +1767,7 @@ get colour GetEdgeColour=2364(,)
set void SetEdgeColour=2365(colour edgeColour,)
# Add a new vertical edge to the view.
-fun void MultiEdgeAddLine=2694(int column, colour edgeColour)
+fun void MultiEdgeAddLine=2694(position column, colour edgeColour)
# Clear all vertical edges.
fun void MultiEdgeClearAll=2695(,)
@@ -1776,14 +1777,14 @@ fun void SearchAnchor=2366(,)
# Find some text starting at the search anchor.
# Does not ensure the selection is visible.
-fun int SearchNext=2367(int searchFlags, string text)
+fun position SearchNext=2367(int searchFlags, string text)
# Find some text starting at the search anchor and moving backwards.
# Does not ensure the selection is visible.
-fun int SearchPrev=2368(int searchFlags, string text)
+fun position SearchPrev=2368(int searchFlags, string text)
# Retrieves the number of lines completely visible.
-get int LinesOnScreen=2370(,)
+get line LinesOnScreen=2370(,)
enu PopUp=SC_POPUP_
val SC_POPUP_NEVER=0
@@ -1810,7 +1811,7 @@ val SC_DOCUMENTOPTION_TEXT_LARGE=0x100
# Create a new document object.
# Starts with reference count of 1 and not selected into editor.
-fun int CreateDocument=2375(int bytes, int documentOptions)
+fun int CreateDocument=2375(position bytes, int documentOptions)
# Extend life of document.
fun void AddRefDocument=2376(, int doc)
# Release a reference to the document, deleting document if it fades to black.
@@ -1989,18 +1990,18 @@ fun position PositionAfter=2418(position pos,)
# Given a valid document position, return a position that differs in a number
# of characters. Returned value is always between 0 and last position in document.
-fun position PositionRelative=2670(position pos, int relative)
+fun position PositionRelative=2670(position pos, position relative)
# Given a valid document position, return a position that differs in a number
# of UTF-16 code units. Returned value is always between 0 and last position in document.
# The result may point half way (2 bytes) inside a non-BMP character.
-fun position PositionRelativeCodeUnits=2716(position pos, int relative)
+fun position PositionRelativeCodeUnits=2716(position pos, position relative)
# Copy a range of text to the clipboard. Positions are clipped into the document.
fun void CopyRange=2419(position start, position end)
# Copy argument text to the clipboard.
-fun void CopyText=2420(int length, string text)
+fun void CopyText=2420(position length, string text)
enu SelectionMode=SC_SEL_
val SC_SEL_STREAM=0
@@ -2019,10 +2020,10 @@ get int GetSelectionMode=2423(,)
get bool GetMoveExtendsSelection=2706(,)
# Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
-fun position GetLineSelStartPosition=2424(int line,)
+fun position GetLineSelStartPosition=2424(line line,)
# Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
-fun position GetLineSelEndPosition=2425(int line,)
+fun position GetLineSelEndPosition=2425(line line,)
## RectExtended rectangular selection moves
# Move caret down one line, extending rectangular selection to new caret position.
@@ -2137,24 +2138,24 @@ set void AutoCSetOrder=2660(int order,)
get int AutoCGetOrder=2661(,)
# Enlarge the document to a particular size of text bytes.
-fun void Allocate=2446(int bytes,)
+fun void Allocate=2446(position bytes,)
# Returns the target converted to UTF8.
# Return the length in bytes.
-fun int TargetAsUTF8=2447(, stringresult s)
+fun position TargetAsUTF8=2447(, stringresult s)
# Set the length of the utf8 argument for calling EncodedFromUTF8.
# Set to -1 and the string will be measured to the first nul.
-fun void SetLengthForEncode=2448(int bytes,)
+fun void SetLengthForEncode=2448(position bytes,)
# Translates a UTF8 string into the document encoding.
# Return the length of the result in bytes.
# On error return 0.
-fun int EncodedFromUTF8=2449(string utf8, stringresult encoded)
+fun position EncodedFromUTF8=2449(string utf8, stringresult encoded)
# Find the position of a column on a line taking into account tabs and
# multi-byte characters. If beyond end of line, return line end position.
-fun int FindColumn=2456(int line, int column)
+fun position FindColumn=2456(line line, position column)
# Can the caret preferred x position only be changed by explicit movement commands?
get int GetCaretSticky=2457(,)
@@ -2217,10 +2218,10 @@ set void SetIndicatorValue=2502(int value,)
get int GetIndicatorValue=2503(,)
# Turn a indicator on over a range.
-fun void IndicatorFillRange=2504(position start, int lengthFill)
+fun void IndicatorFillRange=2504(position start, position lengthFill)
# Turn a indicator off over a range.
-fun void IndicatorClearRange=2505(position start, int lengthClear)
+fun void IndicatorClearRange=2505(position start, position lengthClear)
# Are any indicators present at pos?
fun int IndicatorAllOnFor=2506(position pos,)
@@ -2250,7 +2251,7 @@ get int GetCharacterPointer=2520(,)
# Return a read-only pointer to a range of characters in the document.
# May move the gap so that the range is contiguous, but will only move up
# to lengthRange bytes.
-get int GetRangePointer=2643(position start, int lengthRange)
+get int GetRangePointer=2643(position start, position lengthRange)
# Return a position which, to avoid performance costs, should not be within
# the range of a call to GetRangePointer.
@@ -2284,22 +2285,22 @@ get int GetExtraDescent=2528(,)
fun int MarkerSymbolDefined=2529(int markerNumber,)
# Set the text in the text margin for a line
-set void MarginSetText=2530(int line, string text)
+set void MarginSetText=2530(line line, string text)
# Get the text in the text margin for a line
-get int MarginGetText=2531(int line, stringresult text)
+get int MarginGetText=2531(line line, stringresult text)
# Set the style number for the text margin for a line
-set void MarginSetStyle=2532(int line, int style)
+set void MarginSetStyle=2532(line line, int style)
# Get the style number for the text margin for a line
-get int MarginGetStyle=2533(int line,)
+get int MarginGetStyle=2533(line line,)
# Set the style in the text margin for a line
-set void MarginSetStyles=2534(int line, string styles)
+set void MarginSetStyles=2534(line line, string styles)
# Get the styles in the text margin for a line
-get int MarginGetStyles=2535(int line, stringresult styles)
+get int MarginGetStyles=2535(line line, stringresult styles)
# Clear the margin text on all lines
fun void MarginTextClearAll=2536(,)
@@ -2321,25 +2322,25 @@ set void SetMarginOptions=2539(int marginOptions,)
get int GetMarginOptions=2557(,)
# Set the annotation text for a line
-set void AnnotationSetText=2540(int line, string text)
+set void AnnotationSetText=2540(line line, string text)
# Get the annotation text for a line
-get int AnnotationGetText=2541(int line, stringresult text)
+get int AnnotationGetText=2541(line line, stringresult text)
# Set the style number for the annotations for a line
-set void AnnotationSetStyle=2542(int line, int style)
+set void AnnotationSetStyle=2542(line line, int style)
# Get the style number for the annotations for a line
-get int AnnotationGetStyle=2543(int line,)
+get int AnnotationGetStyle=2543(line line,)
# Set the annotation styles for a line
-set void AnnotationSetStyles=2544(int line, string styles)
+set void AnnotationSetStyles=2544(line line, string styles)
# Get the annotation styles for a line
-get int AnnotationGetStyles=2545(int line, stringresult styles)
+get int AnnotationGetStyles=2545(line line, stringresult styles)
# Get the number of annotation lines for a line
-get int AnnotationGetLines=2546(int line,)
+get int AnnotationGetLines=2546(line line,)
# Clear the annotations from all lines
fun void AnnotationClearAll=2547(,)
@@ -2443,13 +2444,13 @@ set void SetSelectionNAnchor=2578(int selection, position anchor)
# Return the anchor position of the nth selection.
get position GetSelectionNAnchor=2579(int selection,)
# Set the virtual space of the caret of the nth selection.
-set void SetSelectionNCaretVirtualSpace=2580(int selection, int space)
+set void SetSelectionNCaretVirtualSpace=2580(int selection, position space)
# Return the virtual space of the caret of the nth selection.
-get int GetSelectionNCaretVirtualSpace=2581(int selection,)
+get position GetSelectionNCaretVirtualSpace=2581(int selection,)
# Set the virtual space of the anchor of the nth selection.
-set void SetSelectionNAnchorVirtualSpace=2582(int selection, int space)
+set void SetSelectionNAnchorVirtualSpace=2582(int selection, position space)
# Return the virtual space of the anchor of the nth selection.
-get int GetSelectionNAnchorVirtualSpace=2583(int selection,)
+get position GetSelectionNAnchorVirtualSpace=2583(int selection,)
# Sets the position that starts the selection - this becomes the anchor.
set void SetSelectionNStart=2584(int selection, position anchor)
@@ -2472,13 +2473,13 @@ set void SetRectangularSelectionAnchor=2590(position anchor,)
# Return the anchor position of the rectangular selection.
get position GetRectangularSelectionAnchor=2591(,)
# Set the virtual space of the caret of the rectangular selection.
-set void SetRectangularSelectionCaretVirtualSpace=2592(int space,)
+set void SetRectangularSelectionCaretVirtualSpace=2592(position space,)
# Return the virtual space of the caret of the rectangular selection.
-get int GetRectangularSelectionCaretVirtualSpace=2593(,)
+get position GetRectangularSelectionCaretVirtualSpace=2593(,)
# Set the virtual space of the anchor of the rectangular selection.
-set void SetRectangularSelectionAnchorVirtualSpace=2594(int space,)
+set void SetRectangularSelectionAnchorVirtualSpace=2594(position space,)
# Return the virtual space of the anchor of the rectangular selection.
-get int GetRectangularSelectionAnchorVirtualSpace=2595(,)
+get position GetRectangularSelectionAnchorVirtualSpace=2595(,)
enu VirtualSpace=SCVS_
val SCVS_NONE=0
@@ -2541,7 +2542,7 @@ fun int ChangeLexerState=2617(position start, position end)
# Find the next line at or after lineStart that is a contracted fold header line.
# Return -1 when no more lines.
-fun int ContractedFoldNext=2618(int lineStart,)
+fun line ContractedFoldNext=2618(line lineStart,)
# Centre current line in window.
fun void VerticalCentreCaret=2619(,)
@@ -2594,7 +2595,7 @@ set void SetTechnology=2630(int technology,)
get int GetTechnology=2631(,)
# Create an ILoader*.
-fun int CreateLoader=2632(int bytes, int documentOptions)
+fun int CreateLoader=2632(position bytes, int documentOptions)
# On OS X, show a find indicator.
fun void FindIndicatorShow=2640(position start, position end)
@@ -5046,10 +5047,10 @@ fun void AllocateLineCharacterIndex=2711(int lineCharacterIndex,)
fun void ReleaseLineCharacterIndex=2712(int lineCharacterIndex,)
# Retrieve the document line containing a position measured in index units.
-fun int LineFromIndexPosition=2713(position pos, int lineCharacterIndex)
+fun line LineFromIndexPosition=2713(position pos, int lineCharacterIndex)
# Retrieve the position measured in index units at the start of a document line.
-fun position IndexPositionFromLine=2714(int line, int lineCharacterIndex)
+fun position IndexPositionFromLine=2714(line line, int lineCharacterIndex)
cat Deprecated