diff options
author | rachytski <siarhei.rachytski@gmail.com> | 2012-11-09 17:40:13 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:46:45 +0300 |
commit | bcc94857d7b9f092148dea4a2a9b90c592f43a75 (patch) | |
tree | 7bf4c63e9b28fd0b00dfdcffcada9bb2c637b935 /map/ruler.hpp | |
parent | 771f47410fa67f271cf425a2b1a9a0ed6119b4ea (diff) |
renamed yg into graphics.
Diffstat (limited to 'map/ruler.hpp')
-rw-r--r-- | map/ruler.hpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/map/ruler.hpp b/map/ruler.hpp index 8698f51c32..e9d696a572 100644 --- a/map/ruler.hpp +++ b/map/ruler.hpp @@ -3,10 +3,10 @@ #include "../geometry/screenbase.hpp" #include "../geometry/point2d.hpp" #include "../geometry/any_rect2d.hpp" -#include "../yg/overlay_element.hpp" -#include "../yg/font_desc.hpp" +#include "../graphics/overlay_element.hpp" +#include "../graphics/font_desc.hpp" -namespace yg +namespace graphics { namespace gl { @@ -15,7 +15,7 @@ namespace yg } } -class Ruler : public yg::OverlayElement +class Ruler : public graphics::OverlayElement { private: @@ -30,7 +30,7 @@ private: double m_visualScale; - yg::FontDesc m_fontDesc; + graphics::FontDesc m_fontDesc; ScreenBase m_screen; /// Current diff in units between two endpoints of the ruler. @@ -74,12 +74,12 @@ public: void setMinMetersWidth(double v); void setMaxMetersWidth(double v); void setVisualScale(double visualScale); - void setFontDesc(yg::FontDesc const & fontDesc); + void setFontDesc(graphics::FontDesc const & fontDesc); vector<m2::AnyRectD> const & boundRects() const; - void draw(yg::gl::OverlayRenderer * r, math::Matrix<double, 3, 3> const & m) const; + void draw(graphics::gl::OverlayRenderer * r, math::Matrix<double, 3, 3> const & m) const; int visualRank() const; - yg::OverlayElement * clone(math::Matrix<double, 3, 3> const & m) const; + graphics::OverlayElement * clone(math::Matrix<double, 3, 3> const & m) const; }; |