Welcome to mirror list, hosted at ThFree Co, Russian Federation.

symbol_element.hpp « graphics - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2833b8f80eb9fa0427d729e18472bb6158d500b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once

#include "graphics/overlay_element.hpp"
#include "graphics/icon.hpp"

namespace graphics
{
  class Skin;

  class SymbolElement : public OverlayElement
  {
    Icon::Info m_info;
    m2::RectU m_symbolRect;

  public:
    typedef OverlayElement BaseT;

    struct Params : public BaseT::Params
    {
      Icon::Info m_info;
      m2::RectU m_symbolRect;
      OverlayRenderer * m_renderer;
      Params();
    };

    SymbolElement(Params const & p);

    virtual m2::RectD GetBoundRect() const;

    void draw(OverlayRenderer * s, math::Matrix<double, 3, 3> const & m) const;

    uint32_t resID() const;

    bool hasSharpGeometry() const;

    void setTransformation(const math::Matrix<double, 3, 3> & m);
  };
}