diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-09-05 16:37:34 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-09-05 16:37:34 +1000 |
| commit | 258060914b6c1aa88197619e87e4393b4dc9fa65 (patch) | |
| tree | 1c33dfc025d481ad6b677fc6fe245a0fc3599461 /include | |
| parent | 55a841ef116ce538fc4d14bb78beb0484be604be (diff) | |
| download | scintilla-mirror-258060914b6c1aa88197619e87e4393b4dc9fa65.tar.gz | |
Added SCI_GETPRIMARYSTYLEFROMSTYLE.
Diffstat (limited to 'include')
| -rw-r--r-- | include/ILexer.h | 1 | ||||
| -rw-r--r-- | include/Scintilla.h | 1 | ||||
| -rw-r--r-- | include/Scintilla.iface | 3 |
3 files changed, 5 insertions, 0 deletions
diff --git a/include/ILexer.h b/include/ILexer.h index 16ae4a28f..b90092750 100644 --- a/include/ILexer.h +++ b/include/ILexer.h @@ -76,6 +76,7 @@ public: virtual int SCI_METHOD SubStylesStart(int styleBase) = 0; virtual int SCI_METHOD SubStylesLength(int styleBase) = 0; virtual int SCI_METHOD StyleFromSubStyle(int subStyle) = 0; + virtual int SCI_METHOD PrimaryStyleFromStyle(int style) = 0; virtual void SCI_METHOD FreeSubStyles() = 0; virtual void SCI_METHOD SetIdentifiers(int style, const char *identifiers) = 0; virtual int SCI_METHOD DistanceToSecondaryStyles() = 0; diff --git a/include/Scintilla.h b/include/Scintilla.h index 8391bae3e..720ef21fc 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -998,6 +998,7 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_GETSUBSTYLESSTART 4021 #define SCI_GETSUBSTYLESLENGTH 4022 #define SCI_GETSTYLEFROMSUBSTYLE 4027 +#define SCI_GETPRIMARYSTYLEFROMSTYLE 4028 #define SCI_FREESUBSTYLES 4023 #define SCI_SETIDENTIFIERS 4024 #define SCI_DISTANCETOSECONDARYSTYLES 4025 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index b5ba48f65..b3e34ac3b 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -4406,6 +4406,9 @@ get int GetSubStylesLength=4022(int styleBase,) # For a sub style, return the base style, else return the argument. get int GetStyleFromSubStyle=4027(int subStyle,) +# For a secondary style, return the primary style, else return the argument. +get int GetPrimaryStyleFromStyle=4028(int style,) + # Free allocated sub styles fun void FreeSubStyles=4023(,) |
