aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Indicator.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-04-25 09:52:20 +1000
committerNeil <nyamatongwe@gmail.com>2021-04-25 09:52:20 +1000
commit81f7847af4cc9f51f02ab191c73f394c457518bd (patch)
treeef214ea786c00e9618756c26b99299ac1fa58bf6 /src/Indicator.h
parent241f33a38ca0887d1a47399de1bcf7ba0d544c41 (diff)
downloadscintilla-mirror-81f7847af4cc9f51f02ab191c73f394c457518bd.tar.gz
Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
Diffstat (limited to 'src/Indicator.h')
-rw-r--r--src/Indicator.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Indicator.h b/src/Indicator.h
index 89cf1cdc5..abceec061 100644
--- a/src/Indicator.h
+++ b/src/Indicator.h
@@ -12,10 +12,10 @@ namespace Scintilla {
struct StyleAndColour {
int style;
- ColourDesired fore;
+ ColourAlpha fore;
StyleAndColour() noexcept : style(INDIC_PLAIN), fore(0, 0, 0) {
}
- StyleAndColour(int style_, ColourDesired fore_ = ColourDesired(0, 0, 0)) noexcept : style(style_), fore(fore_) {
+ StyleAndColour(int style_, ColourAlpha fore_ = ColourAlpha(0, 0, 0)) noexcept : style(style_), fore(fore_) {
}
bool operator==(const StyleAndColour &other) const noexcept {
return (style == other.style) && (fore == other.fore);
@@ -36,7 +36,7 @@ public:
XYPOSITION strokeWidth = 1.0f;
Indicator() noexcept : under(false), fillAlpha(30), outlineAlpha(50), attributes(0) {
}
- Indicator(int style_, ColourDesired fore_=ColourDesired(0,0,0), bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) noexcept :
+ Indicator(int style_, ColourAlpha fore_= ColourAlpha(0,0,0), bool under_=false, int fillAlpha_=30, int outlineAlpha_=50) noexcept :
sacNormal(style_, fore_), sacHover(style_, fore_), under(under_), fillAlpha(fillAlpha_), outlineAlpha(outlineAlpha_), attributes(0) {
}
void Draw(Surface *surface, const PRectangle &rc, const PRectangle &rcLine, const PRectangle &rcCharacter, State drawState, int value) const;