diff options
author | Neil <nyamatongwe@gmail.com> | 2021-06-03 20:24:44 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-06-03 20:24:44 +1000 |
commit | f997170c3eb0afa64d10b39b86799bad67dc5c02 (patch) | |
tree | a0ec6b193f9315452237c89107eb552bf77298a4 /include/ScintillaTypes.h | |
parent | aeb285c6677ebb1d940d2a4d8e6992697ed263c8 (diff) | |
download | scintilla-mirror-f997170c3eb0afa64d10b39b86799bad67dc5c02.tar.gz |
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.
Diffstat (limited to 'include/ScintillaTypes.h')
-rw-r--r-- | include/ScintillaTypes.h | 12 |
1 files changed, 12 insertions, 0 deletions
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 { |