Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstantin Shalnev <c.shalnev@corp.mail.ru>2015-03-20 14:01:00 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:41:24 +0300
commitf7203eb9b75a01270d63e74e8eccebdf531c5742 (patch)
tree7b7a8ad4e92f21f9feee06548f2d134c5df93465 /indexer/drawing_rules.hpp
parentc427ac965987265c62761de2f822fd90be606e1a (diff)
implemented ChangeColorScheme functionality and its test for supported platforms
Diffstat (limited to 'indexer/drawing_rules.hpp')
-rw-r--r--indexer/drawing_rules.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/indexer/drawing_rules.hpp b/indexer/drawing_rules.hpp
index ed1dabf037..06d06a56c4 100644
--- a/indexer/drawing_rules.hpp
+++ b/indexer/drawing_rules.hpp
@@ -1,6 +1,8 @@
#pragma once
#include "drawing_rule_def.hpp"
+#include "map_style.hpp"
+
#include "../base/base.hpp"
#include "../base/buffer_vector.hpp"
@@ -60,7 +62,10 @@ namespace drule
typedef map<int32_t, array<vector<uint32_t>, count_of_rules> > rules_map_t;
rules_map_t m_rules;
+ uint32_t m_bgColor;
+
public:
+ RulesHolder();
~RulesHolder();
Key AddRule(int scale, rule_type_t type, BaseRule * p);
@@ -72,6 +77,8 @@ namespace drule
BaseRule const * Find(Key const & k) const;
+ uint32_t GetBgColor() const;
+
#ifdef OMIM_OS_DESKTOP
void LoadFromTextProto(string const & buffer);
static void SaveToBinaryProto(string const & buffer, ostream & s);
@@ -97,4 +104,9 @@ namespace drule
};
RulesHolder & rules();
+
+ void LoadRules();
+
+ MapStyle GetCurrentMapStyle();
+ void SetCurrentMapStyle(MapStyle mapStyle);
}