From 23b2a54292964dc653d7ebb64c4b2a044eeaa8e7 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 15 Mar 2022 15:14:42 +1100 Subject: Feature [feature-requests:#1431] Add SCI_GETSTYLEINDEXAT API to return styles over 127 as positive integers. --- include/Scintilla.h | 1 + include/Scintilla.iface | 3 +++ include/ScintillaCall.h | 1 + include/ScintillaMessages.h | 1 + 4 files changed, 6 insertions(+) (limited to 'include') 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, -- cgit v1.2.3