summaryrefslogtreecommitdiff
path: root/include/drawinglayer
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-02 13:48:17 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-02 14:59:15 +0200
commit9824134ab3c19aa0a00943c65a0e09c36ef23899 (patch)
treeff40fd413c77ed3731bcd66d69eb423e43e9bd72 /include/drawinglayer
parented8186531beb13d03e0041440c5d784177951516 (diff)
drawinglayer: add transparency support to BackgroundColorPrimitive2D
Impress has tools Color that is wrapped in this primitive, then later drawinglayer::processor2d::VclPixelProcessor2D::processBasePrimitive2D() converts it back to tools Color. Problem is that the primitive uses basegfx BColor, so the alpha channel is lost. Add member and API to survive this roundtrip. Change-Id: I940e60f6e352022306abac3223636d19dd859355
Diffstat (limited to 'include/drawinglayer')
-rw-r--r--include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx b/include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx
index 3b789eb00bcb..def2b431c48d 100644
--- a/include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx
+++ b/include/drawinglayer/primitive2d/backgroundcolorprimitive2d.hxx
@@ -48,6 +48,7 @@ namespace drawinglayer
private:
/// the fill color to use
basegfx::BColor maBColor;
+ double mfTransparency;
/// the last used viewInformation, used from getDecomposition for buffering
basegfx::B2DRange maLastViewport;
@@ -59,10 +60,12 @@ namespace drawinglayer
public:
/// constructor
explicit BackgroundColorPrimitive2D(
- const basegfx::BColor& rBColor);
+ const basegfx::BColor& rBColor,
+ double fTransparency = 0);
/// data read access
const basegfx::BColor& getBColor() const { return maBColor; }
+ double getTransparency() const { return mfTransparency; }
/// compare operator
virtual bool operator==(const BasePrimitive2D& rPrimitive) const SAL_OVERRIDE;