diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-06-02 21:22:36 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:39:19 +0300 |
commit | 3ce36452105111e05ef575a00036807428dd5cf5 (patch) | |
tree | c6ad0ace6da395d8caabbac54d7110d3df957455 /gui/element.hpp | |
parent | 8c35666e0f7d329b7c15e84f31e981aaefbc85dd (diff) |
simplified writing new guy::Elements by providing default implementation for some methods.
Diffstat (limited to 'gui/element.hpp')
-rw-r--r-- | gui/element.hpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gui/element.hpp b/gui/element.hpp index dca18fd92b..7b910609a1 100644 --- a/gui/element.hpp +++ b/gui/element.hpp @@ -59,18 +59,17 @@ namespace gui yg::Color const & color(EState state) const; /// Implement this method to handle single tap on the GUI element. - virtual bool onTapStarted(m2::PointD const & pt) = 0; - virtual bool onTapMoved(m2::PointD const & pt) = 0; - virtual bool onTapEnded(m2::PointD const & pt) = 0; - virtual bool onTapCancelled(m2::PointD const & pt) = 0; + virtual bool onTapStarted(m2::PointD const & pt); + virtual bool onTapMoved(m2::PointD const & pt); + virtual bool onTapEnded(m2::PointD const & pt); + virtual bool onTapCancelled(m2::PointD const & pt); void invalidate(); double visualScale() const; void setPivot(m2::PointD const & pv); - + yg::OverlayElement * clone(math::Matrix<double, 3, 3> const & m) const; void draw(yg::gl::OverlayRenderer * r, math::Matrix<double, 3, 3> const & m) const; - int visualRank() const; virtual void cache(); |