From f997170c3eb0afa64d10b39b86799bad67dc5c02 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 3 Jun 2021 20:24:44 +1000 Subject: Add APIs for setting appearance (traditional blob or plain text) and colour of representations and support setting a representation for the "\r\n" line end sequence. --- include/ScintillaTypes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/ScintillaTypes.h') 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(static_cast(a) & static_cast(b)); } +// Functions to manipulate fields from a RepresentationAppearance + +constexpr RepresentationAppearance operator|(RepresentationAppearance a, RepresentationAppearance b) noexcept { + return static_cast(static_cast(a) | static_cast(b)); +} + // Functions to manipulate fields from a LineCharacterIndexType constexpr LineCharacterIndexType operator|(LineCharacterIndexType a, LineCharacterIndexType b) noexcept { -- cgit v1.2.3