summaryrefslogtreecommitdiff
path: root/anyfont.h
blob: c79939511daa5a6ad47f48fb3141ef42f82c3fca (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
/*
 * anyfont.h: Internationalization
 *
 * See the README file for copyright information and how to reach the author.
 *
 */

#ifndef ANYFONT_H
#define ANYFONT_H

#include <vdr/plugin.h>

class anyFont
{
    cOsd *osd;
    const cFont *Font;
    int trans;

public:
    anyFont(cOsd *o,int fheight,int transparent=0);
    int Height(void);
    int Width(const char *txt);
    int Width(char c);
    int Text(int x, int y, const char *txt, tColor fg, tColor bg=clrTransparent);
    int Text(int x, int y, int w, int h, const char *txt, tColor fg, tColor bg=clrTransparent);
    int TextHeight(int w, const char *txt);
};

#endif