blob: c2c80c06d46679144f0ba7ea54e78412424d3fc8 (
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
|
#pragma once
#include "drape/texture.hpp"
#include "std/string.hpp"
#include "std/map.hpp"
namespace dp
{
class SymbolsTexture : public Texture
{
public:
class SymbolKey : public Key
{
public:
SymbolKey(string const & symbolName);
virtual ResourceType GetType() const;
string const & GetSymbolName() const;
private:
string m_symbolName;
};
class SymbolInfo : public ResourceInfo
{
public:
SymbolInfo(m2::RectF const & texRect);
virtual ResourceType GetType() const;
};
void Load(string const & skinPathName);
RefPointer<ResourceInfo> FindResource(Key const & key) const;
private:
void Fail();
private:
typedef map<string, SymbolInfo> TSymDefinition;
mutable TSymDefinition m_definition;
class DefinitionLoader;
};
} // namespace dp
|