summaryrefslogtreecommitdiff
path: root/include/tools/color.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/tools/color.hxx')
-rw-r--r--include/tools/color.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tools/color.hxx b/include/tools/color.hxx
index 99966c65d779..964e8ca8d157 100644
--- a/include/tools/color.hxx
+++ b/include/tools/color.hxx
@@ -142,6 +142,14 @@ public:
return A;
}
+ /** Is the color transparent?
+ * @returns true or false
+ */
+ bool IsTransparent() const
+ {
+ return (GetTransparency() != 0);
+ }
+
/** Sets the red value.
* @param nRed
*/