aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-29 08:25:51 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-29 08:25:51 +1100
commitab70e1041cb40c9d807a18ca7abb5c000adf2fdf (patch)
tree709d60718e9cf33924a625f82ff7999494027f6f /src/ViewStyle.h
parent508d037ed3389c5678addebefb62485ebfc10bb7 (diff)
downloadscintilla-mirror-ab70e1041cb40c9d807a18ca7abb5c000adf2fdf.tar.gz
Add SCI_SETELEMENTCOLOUR and related APIs to change colours of visible elements.
Implement SC_ELEMENT_LIST* to change colours of autocompletion lists.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r--src/ViewStyle.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h
index b07c34a08..d33feb485 100644
--- a/src/ViewStyle.h
+++ b/src/ViewStyle.h
@@ -158,6 +158,9 @@ public:
int ctrlCharPadding; // the padding around control character text blobs
int lastSegItalicsOffset; // the offset so as not to clip italic characters at EOLs
+ std::map<int, std::optional<ColourAlpha>> elementColours;
+ std::set<int> elementAllowsTranslucent;
+
// Wrapping support
WrapMode wrapState;
int wrapVisualFlags;
@@ -195,6 +198,9 @@ public:
void AddMultiEdge(uptr_t wParam, sptr_t lParam);
+ std::optional<ColourAlpha> ElementColour(int index) const noexcept;
+ bool ElementAllowsTranslucent(int index) const noexcept;
+
bool SetWrapState(int wrapState_) noexcept;
bool SetWrapVisualFlags(int wrapVisualFlags_) noexcept;
bool SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation_) noexcept;