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:
authorrachytski <siarhei.rachytski@gmail.com>2012-06-02 21:22:36 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:39:19 +0300
commit3ce36452105111e05ef575a00036807428dd5cf5 (patch)
treec6ad0ace6da395d8caabbac54d7110d3df957455 /gui/element.cpp
parent8c35666e0f7d329b7c15e84f31e981aaefbc85dd (diff)
simplified writing new guy::Elements by providing default implementation for some methods.
Diffstat (limited to 'gui/element.cpp')
-rw-r--r--gui/element.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/gui/element.cpp b/gui/element.cpp
index ce1dff541e..2af1be5f85 100644
--- a/gui/element.cpp
+++ b/gui/element.cpp
@@ -93,6 +93,11 @@ namespace gui
}
}
+ yg::OverlayElement * Element::clone(math::Matrix<double, 3, 3> const & m) const
+ {
+ return 0;
+ }
+
void Element::draw(yg::gl::OverlayRenderer *r, math::Matrix<double, 3, 3> const & m) const
{
for (unsigned i = 0; i < boundRects().size(); ++i)
@@ -103,4 +108,30 @@ namespace gui
{
return 0;
}
+
+ bool Element::onTapStarted(m2::PointD const & pt)
+ {
+ return false;
+ }
+
+ bool Element::onTapMoved(m2::PointD const & pt)
+ {
+ return false;
+ }
+
+ bool Element::onTapEnded(m2::PointD const & pt)
+ {
+ return false;
+ }
+
+ bool Element::onTapCancelled(m2::PointD const & pt)
+ {
+ return false;
+ }
+
+ void Element::setController(Controller * controller)
+ {
+ m_controller = controller;
+ }
+
}