summaryrefslogtreecommitdiff
path: root/glcdskin/config.h
blob: eede1ccb222477698c39ca3dda2a2d3abab3b255 (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
/*
 * GraphLCD skin library
 *
 * config.h  -  config class
 *
 * This file is released under the GNU General Public License. Refer
 * to the COPYING file distributed with this package.
 *
 * based on text2skin
 *
 */

#ifndef _GLCDSKIN_CONFIG_H_
#define _GLCDSKIN_CONFIG_H_

#include <string>

#include <stdint.h>

#include "../glcddrivers/driver.h"

namespace GLCD
{

class cType;
class cFont;
struct tSkinToken;
class cDriver;

class cSkinConfig
{
public:
    virtual ~cSkinConfig() {};

    virtual std::string SkinPath(void);
    virtual std::string FontPath(void);
    virtual std::string CharSet(void);
    virtual std::string Translate(const std::string & Text);
    virtual cType GetToken(const tSkinToken & Token);
    virtual int GetTokenId(const std::string & Name);
    virtual int GetTabPosition(int Index, int MaxWidth, const cFont & Font);
    virtual uint64_t Now(void);
    virtual cDriver * GetDriver(void) const { return NULL; }
};

} // end of namespace

#endif