diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-04-05 12:52:58 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-04-05 14:56:53 +0200 |
commit | fcb00ac8ebe2acb429f09ef5b728b8c73a5bbc37 (patch) | |
tree | 4f9dc3b5d195e01d653619d51bc1ec1e0b5ff882 /include/basegfx | |
parent | 48429e075fe73b858328d7287035c24744812f75 (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>
Diffstat (limited to 'include/basegfx')
-rw-r--r-- | include/basegfx/DrawCommands.hxx | 4 |
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) { } }; |