diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-01-08 14:48:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-01-08 18:15:22 +0100 |
commit | 5c9ace48f05269c50d57642256153450335ace5f (patch) | |
tree | 24d1196b93f0043c6eb6259979a34c4254e35a20 /include/tools | |
parent | fix variable name and improve method name (diff) | |
download | core-5c9ace48f05269c50d57642256153450335ace5f.tar.gz core-5c9ace48f05269c50d57642256153450335ace5f.zip |
Introduce Color::IsFullyTransparent
Change-Id: I94875b9fb7ee18edf63ed28902da4ae77eb14bb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108973
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/color.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/tools/color.hxx b/include/tools/color.hxx index 27b63b178715..fa062d59eddd 100644 --- a/include/tools/color.hxx +++ b/include/tools/color.hxx @@ -149,6 +149,13 @@ public: return GetTransparency() != 0; } + /** Is the color fully transparent i.e. 100% transparency ? + */ + bool IsFullyTransparent() const + { + return A == 255; + } + /** Sets the red value. * @param nRed */ |