aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Geometry.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-11 08:36:14 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-11 08:36:14 +1000
commita2eaf21d3ce1010aa32bb09b409fc6b019b31732 (patch)
treec09b0b996948d4eb88bd459bd4917dea4f7ab9eb /src/Geometry.h
parent7b98798ee4047aec150927d3b5fc6a75f78e0273 (diff)
downloadscintilla-mirror-a2eaf21d3ce1010aa32bb09b409fc6b019b31732.tar.gz
Add tests for element APIs. Fix SCI_GETELEMENTCOLOUR to return value including
alpha. Set selection and caret elements as allowing translucency.
Diffstat (limited to 'src/Geometry.h')
-rw-r--r--src/Geometry.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Geometry.h b/src/Geometry.h
index e9cb5a6c8..01af92969 100644
--- a/src/Geometry.h
+++ b/src/Geometry.h
@@ -187,6 +187,10 @@ public:
return ColourAlpha(co | (0xffu << 24));
}
+ constexpr int AsInteger() const noexcept {
+ return co;
+ }
+
constexpr int OpaqueRGB() const noexcept {
return co & 0xffffff;
}