diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/Scintilla.h | 8 | ||||
-rw-r--r-- | include/Scintilla.iface | 21 | ||||
-rw-r--r-- | include/ScintillaMessages.h | 5 | ||||
-rw-r--r-- | include/ScintillaTypes.h | 12 |
4 files changed, 46 insertions, 0 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index a9ce7184c..123f1ae96 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -1052,6 +1052,14 @@ typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, #define SCI_SETREPRESENTATION 2665 #define SCI_GETREPRESENTATION 2666 #define SCI_CLEARREPRESENTATION 2667 +#define SCI_CLEARALLREPRESENTATIONS 2770 +#define SC_REPRESENTATION_PLAIN 0 +#define SC_REPRESENTATION_BLOB 1 +#define SC_REPRESENTATION_COLOUR 0x10 +#define SCI_SETREPRESENTATIONAPPEARANCE 2766 +#define SCI_GETREPRESENTATIONAPPEARANCE 2767 +#define SCI_SETREPRESENTATIONCOLOUR 2768 +#define SCI_GETREPRESENTATIONCOLOUR 2769 #define SCI_EOLANNOTATIONSETTEXT 2740 #define SCI_EOLANNOTATIONGETTEXT 2741 #define SCI_EOLANNOTATIONSETSTYLE 2742 diff --git a/include/Scintilla.iface b/include/Scintilla.iface index 4c576a77b..dd91bf908 100644 --- a/include/Scintilla.iface +++ b/include/Scintilla.iface @@ -2936,6 +2936,27 @@ get int GetRepresentation=2666(string encodedCharacter, stringresult representat # Remove a character representation. fun void ClearRepresentation=2667(string encodedCharacter,) +# Clear representations to default. +fun void ClearAllRepresentations=2770(,) + +# Can draw representations in various ways +enu RepresentationAppearance=SC_REPRESENTATION +val SC_REPRESENTATION_PLAIN=0 +val SC_REPRESENTATION_BLOB=1 +val SC_REPRESENTATION_COLOUR=0x10 + +# Set the appearance of a representation. +set void SetRepresentationAppearance=2766(string encodedCharacter, RepresentationAppearance appearance) + +# Get the appearance of a representation. +get RepresentationAppearance GetRepresentationAppearance=2767(string encodedCharacter,) + +# Set the colour of a representation. +set void SetRepresentationColour=2768(string encodedCharacter, colouralpha colour) + +# Get the colour of a representation. +get colouralpha GetRepresentationColour=2769(string encodedCharacter,) + # Set the end of line annotation text for a line set void EOLAnnotationSetText=2740(line line, string text) diff --git a/include/ScintillaMessages.h b/include/ScintillaMessages.h index ba2a3f2cd..6cf515df9 100644 --- a/include/ScintillaMessages.h +++ b/include/ScintillaMessages.h @@ -723,6 +723,11 @@ enum class Message { SetRepresentation = 2665, GetRepresentation = 2666, ClearRepresentation = 2667, + ClearAllRepresentations = 2770, + SetRepresentationAppearance = 2766, + GetRepresentationAppearance = 2767, + SetRepresentationColour = 2768, + GetRepresentationColour = 2769, EOLAnnotationSetText = 2740, EOLAnnotationGetText = 2741, EOLAnnotationSetStyle = 2742, diff --git a/include/ScintillaTypes.h b/include/ScintillaTypes.h index a964baa81..ca0a07527 100644 --- a/include/ScintillaTypes.h +++ b/include/ScintillaTypes.h @@ -472,6 +472,12 @@ enum class LineEndType { Unicode = 1, }; +enum class RepresentationAppearance { + Plain = 0, + Blob = 1, + Colour = 0x10, +}; + enum class EOLAnnotationVisible { Hidden = 0x0, Standard = 0x1, @@ -738,6 +744,12 @@ constexpr LineEndType operator&(LineEndType a, LineEndType b) noexcept { return static_cast<LineEndType>(static_cast<int>(a) & static_cast<int>(b)); } +// Functions to manipulate fields from a RepresentationAppearance + +constexpr RepresentationAppearance operator|(RepresentationAppearance a, RepresentationAppearance b) noexcept { + return static_cast<RepresentationAppearance>(static_cast<int>(a) | static_cast<int>(b)); +} + // Functions to manipulate fields from a LineCharacterIndexType constexpr LineCharacterIndexType operator|(LineCharacterIndexType a, LineCharacterIndexType b) noexcept { |