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

shape_view_params.hpp « drape_frontend - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 04d8ce2091b4be0d276b370e33d3c245273c225d (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#pragma once

#include "../drape/drape_global.hpp"
#include "../drape/color.hpp"
#include "../drape/stipple_pen_resource.hpp"

#include "../indexer/feature_decl.hpp"
#include "../geometry/point2d.hpp"

#include "../std/string.hpp"

namespace df
{

struct CommonViewParams
{
  float m_depth;
};

struct PoiSymbolViewParams : CommonViewParams
{
  PoiSymbolViewParams(FeatureID const & id) : m_id(id) {}

  FeatureID m_id;
  string m_symbolName;
};

struct CircleViewParams : CommonViewParams
{
  CircleViewParams(FeatureID const & id) : m_id(id) {}

  FeatureID m_id;
  dp::Color m_color;
  float m_radius;
};

struct AreaViewParams : CommonViewParams
{
  dp::Color m_color;
};

struct LineViewParams : CommonViewParams
{
  dp::Color m_color;
  float m_width;
  dp::LineCap m_cap;
  dp::LineJoin m_join;
  buffer_vector<uint8_t, 8> m_pattern;
  float m_baseGtoPScale;
};

struct FontDecl
{
  dp::Color m_color;
  dp::Color m_outlineColor;
  float m_size;
  bool m_needOutline;
};

struct TextViewParams : CommonViewParams
{
  FeatureID m_featureID;
  FontDecl m_primaryTextFont;
  string m_primaryText;
  m2::PointF m_primaryOffset;
  FontDecl m_secondaryTextFont;
  string m_secondaryText;
  dp::Anchor m_anchor;
};

struct PathTextViewParams : CommonViewParams
{
  FontDecl m_textFont;
  string m_text;
  float m_baseGtoPScale;
};

struct PathSymbolViewParams : CommonViewParams
{
  FeatureID m_featureID;
  string m_symbolName;
  float m_offset;
  float m_step;
  float m_baseGtoPScale;
};

} // namespace df