From a2eaf21d3ce1010aa32bb09b409fc6b019b31732 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 11 May 2021 08:36:14 +1000 Subject: Add tests for element APIs. Fix SCI_GETELEMENTCOLOUR to return value including alpha. Set selection and caret elements as allowing translucency. --- src/Geometry.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Geometry.h') 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; } -- cgit v1.2.3