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
path: root/gui
diff options
context:
space:
mode:
authorExMix <rahuba.youri@gmail.com>2013-04-23 16:58:13 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:53:33 +0300
commitc69c3788e02670c8cf52fa4ac16525f9f3d83124 (patch)
tree0099a4437a1ef042f4b9804e3897bbf6563e3ff6 /gui
parente56e3602855061d5d9384ea45ad7a3f29d172100 (diff)
From this moment we will set and reset state for overlay element instead of cloning element with new transformation
Diffstat (limited to 'gui')
-rw-r--r--gui/element.cpp8
-rw-r--r--gui/element.hpp2
2 files changed, 4 insertions, 6 deletions
diff --git a/gui/element.cpp b/gui/element.cpp
index e20b615e89..9c464652ed 100644
--- a/gui/element.cpp
+++ b/gui/element.cpp
@@ -84,11 +84,6 @@ namespace gui
}
}
- graphics::OverlayElement * Element::clone(math::Matrix<double, 3, 3> const & m) const
- {
- return 0;
- }
-
void Element::draw(graphics::OverlayRenderer *r, math::Matrix<double, 3, 3> const & m) const
{
for (unsigned i = 0; i < boundRects().size(); ++i)
@@ -125,4 +120,7 @@ namespace gui
m_controller = controller;
}
+ void Element::setTransformation(const math::Matrix<double, 3, 3> & /*m*/)
+ {
+ }
}
diff --git a/gui/element.hpp b/gui/element.hpp
index 4d8adfd1ed..11124360f6 100644
--- a/gui/element.hpp
+++ b/gui/element.hpp
@@ -86,9 +86,9 @@ namespace gui
/// check if the layout of element is dirty and re-layout element if needed.
void checkDirtyLayout() const;
- graphics::OverlayElement * clone(math::Matrix<double, 3, 3> const & m) const;
void draw(graphics::OverlayRenderer * r, math::Matrix<double, 3, 3> const & m) const;
double priority() const;
+ void setTransformation(const math::Matrix<double, 3, 3> & m);
};
}