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:
authorvng <viktor.govako@gmail.com>2014-09-06 20:07:12 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:26:11 +0300
commit7a54c6e0801cfab379816ac93b474cb68e10beb0 (patch)
treef96ed040f8eac68f0cb962ee705558fe097c0ebb /map/ruler.hpp
parent696fde40b3f9d5f5e393f76cfb57680de7a3a829 (diff)
Minor refactoring of OverlayElement and it’s inheritors: do not store rough rect and vector of any rects by default.
Diffstat (limited to 'map/ruler.hpp')
-rw-r--r--map/ruler.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/map/ruler.hpp b/map/ruler.hpp
index 8f1c1c6a22..6fce46ca7e 100644
--- a/map/ruler.hpp
+++ b/map/ruler.hpp
@@ -27,9 +27,7 @@ class Framework;
class Ruler : public gui::Element
{
- typedef gui::Element base_t;
-
- mutable vector<m2::AnyRectD> m_boundRects;
+ typedef gui::Element BaseT;
class RulerFrame
{
@@ -112,7 +110,8 @@ public:
/// @name Override from graphics::OverlayElement and gui::Element.
//@{
- vector<m2::AnyRectD> const & boundRects() const;
+ virtual m2::RectD GetBoundRect() const;
+
void draw(graphics::OverlayRenderer * r, math::Matrix<double, 3, 3> const & m) const;
void update();