blob: 4332bc3f5a2ee716d76519ae3079deaef53577cd (
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
|
#pragma once
#include "map_shape.hpp"
#include "shape_view_params.hpp"
#include "../geometry/point2d.hpp"
namespace df
{
class TextLayout;
class TextShape : public MapShape
{
public:
TextShape(m2::PointF const & basePoint, TextViewParams const & params);
void Draw(dp::RefPointer<dp::Batcher> batcher, dp::RefPointer<dp::TextureSetHolder> textures) const;
private:
void DrawMultipleLines(dp::RefPointer<dp::Batcher> batcher,
vector<TextLayout> & layouts,
int delim,
dp::RefPointer<dp::TextureSetHolder> textures) const;
private:
m2::PointF m_basePoint;
TextViewParams m_params;
};
} // namespace df
|