diff options
author | vng <viktor.govako@gmail.com> | 2011-11-24 14:04:19 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:28:41 +0300 |
commit | bef7d9e2efeb3e1c1afdeca31da51fac555363db (patch) | |
tree | 0616e2aa2e6646ff08daadb7a66829b8c9529dac /indexer/drawing_rules.cpp | |
parent | 7de4dd39c425fbf21a309c8f0853de04083856e0 (diff) |
Add BaseRule::GetStrokeAlpha.
Add alpha routine to circle rule.
Diffstat (limited to 'indexer/drawing_rules.cpp')
-rw-r--r-- | indexer/drawing_rules.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indexer/drawing_rules.cpp b/indexer/drawing_rules.cpp index 8e89e11532..0e3e535df7 100644 --- a/indexer/drawing_rules.cpp +++ b/indexer/drawing_rules.cpp @@ -1409,6 +1409,10 @@ namespace { return AlphaFromColor(GetFillColor()); } + virtual unsigned char GetStrokeAlpha() const + { + return AlphaFromColor(GetColor()); + } }; typedef CaptionT<CaptionRuleProto> Caption; @@ -1428,6 +1432,14 @@ namespace { return m_circle.radius(); } + virtual unsigned char GetAlpha() const + { + return AlphaFromColor(GetFillColor()); + } + virtual unsigned char GetStrokeAlpha() const + { + return AlphaFromColor(GetColor()); + } }; } |