diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-08-10 21:20:09 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:24:02 +0300 |
commit | 6e7769f083b58608ea11d3a4d01299ac020e616b (patch) | |
tree | 42285a2c0537f572741051c8f8048944a63ae0c2 /drape/overlay_handle.hpp | |
parent | e0fdc8467292d77b0ddaeb9e474fcb8e3b8d3a2b (diff) |
[drape] add invalid semantic for overlay handles
Diffstat (limited to 'drape/overlay_handle.hpp')
-rw-r--r-- | drape/overlay_handle.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drape/overlay_handle.hpp b/drape/overlay_handle.hpp index 1106dffdc8..4d46a6a1fa 100644 --- a/drape/overlay_handle.hpp +++ b/drape/overlay_handle.hpp @@ -26,6 +26,8 @@ public: bool IsVisible() const; void SetIsVisible(bool isVisible); + bool IsValid() const { return m_isValid; } + virtual void Update(ScreenBase const & /*screen*/) {} virtual m2::RectD GetPixelRect(ScreenBase const & screen) const = 0; uint16_t * IndexStorage(uint16_t size); @@ -40,6 +42,9 @@ public: double const & GetPriority() const; protected: + void SetIsValid(bool isValid) { m_isValid = isValid; } + +protected: FeatureID const m_id; dp::Anchor const m_anchor; double const m_priority; @@ -49,6 +54,7 @@ protected: private: bool m_isVisible; + bool m_isValid; vector<uint16_t> m_indexes; struct LessOffsetNode |