summaryrefslogtreecommitdiff
path: root/include/basegfx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-04-05 12:52:58 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-08-29 20:10:56 +0900
commite3b02c4950aae44555f4785d06f55ac80530f2a1 (patch)
tree4e2167132b75857e7701b6eb9c1dfce94a7aa8f4 /include/basegfx
parent13f71c4924fc2d1050faf48c099031e79c049826 (diff)
support opacity for widget definition draw SVGs
This opacity influences the whole shape (stroke and fill). Change-Id: I82e10e07dbf2f321805b55a5f4831a513e52dab8 Reviewed-on: https://gerrit.libreoffice.org/70292 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit fcb00ac8ebe2acb429f09ef5b728b8c73a5bbc37)
Diffstat (limited to 'include/basegfx')
-rw-r--r--include/basegfx/DrawCommands.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/basegfx/DrawCommands.hxx b/include/basegfx/DrawCommands.hxx
index fda21e9231bb..92747c5af4d2 100644
--- a/include/basegfx/DrawCommands.hxx
+++ b/include/basegfx/DrawCommands.hxx
@@ -62,6 +62,7 @@ public:
double mnRy;
double mnStrokeWidth;
+ double mnOpacity;
std::shared_ptr<basegfx::BColor> mpFillColor;
std::shared_ptr<basegfx::BColor> mpStrokeColor;
@@ -71,6 +72,7 @@ public:
, mnRx(1.0)
, mnRy(1.0)
, mnStrokeWidth(1.0)
+ , mnOpacity(1.0)
{
}
};
@@ -81,6 +83,7 @@ public:
basegfx::B2DPolyPolygon maPolyPolygon;
double mnStrokeWidth;
+ double mnOpacity;
std::shared_ptr<basegfx::BColor> mpFillColor;
std::shared_ptr<basegfx::BColor> mpStrokeColor;
@@ -88,6 +91,7 @@ public:
: DrawBase(DrawCommandType::Path)
, maPolyPolygon(rPolyPolygon)
, mnStrokeWidth(1.0)
+ , mnOpacity(1.0)
{
}
};