aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-03-15 15:14:42 +1100
committerNeil <nyamatongwe@gmail.com>2022-03-15 15:14:42 +1100
commit23b2a54292964dc653d7ebb64c4b2a044eeaa8e7 (patch)
treefb9ccd4793daaa16b18551fd599b622f0ae96315 /include
parent96480716cb3acc793436ce037650445a137115da (diff)
downloadscintilla-mirror-23b2a54292964dc653d7ebb64c4b2a044eeaa8e7.tar.gz
Feature [feature-requests:#1431] Add SCI_GETSTYLEINDEXAT API to return styles
over 127 as positive integers.
Diffstat (limited to 'include')
-rw-r--r--include/Scintilla.h1
-rw-r--r--include/Scintilla.iface3
-rw-r--r--include/ScintillaCall.h1
-rw-r--r--include/ScintillaMessages.h1
4 files changed, 6 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h
index fbd2bf3f3..14f788eae 100644
--- a/include/Scintilla.h
+++ b/include/Scintilla.h
@@ -57,6 +57,7 @@ typedef sptr_t (*SciFnDirectStatus)(sptr_t ptr, unsigned int iMessage, uptr_t wP
#define SCI_GETCURRENTPOS 2008
#define SCI_GETANCHOR 2009
#define SCI_GETSTYLEAT 2010
+#define SCI_GETSTYLEINDEXAT 2038
#define SCI_REDO 2011
#define SCI_SETUNDOCOLLECTION 2012
#define SCI_SELECTALL 2013
diff --git a/include/Scintilla.iface b/include/Scintilla.iface
index 36d771402..7c20e9144 100644
--- a/include/Scintilla.iface
+++ b/include/Scintilla.iface
@@ -130,6 +130,9 @@ get position GetAnchor=2009(,)
# Returns the style byte at the position.
get int GetStyleAt=2010(position pos,)
+# Returns the unsigned style byte at the position.
+get int GetStyleIndexAt=2038(position pos,)
+
# Redoes the next action on the undo history.
fun void Redo=2011(,)
diff --git a/include/ScintillaCall.h b/include/ScintillaCall.h
index 272345489..83e62d6da 100644
--- a/include/ScintillaCall.h
+++ b/include/ScintillaCall.h
@@ -88,6 +88,7 @@ public:
Position CurrentPos();
Position Anchor();
int StyleAt(Position pos);
+ int StyleIndexAt(Position pos);
void Redo();
void SetUndoCollection(bool collectUndo);
void SelectAll();
diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h
index 33a875f0a..d7bec7f75 100644
--- a/include/ScintillaMessages.h
+++ b/include/ScintillaMessages.h
@@ -28,6 +28,7 @@ enum class Message {
GetCurrentPos = 2008,
GetAnchor = 2009,
GetStyleAt = 2010,
+ GetStyleIndexAt = 2038,
Redo = 2011,
SetUndoCollection = 2012,
SelectAll = 2013,