summaryrefslogtreecommitdiff
path: root/common.h
blob: aea045266394d3a282126602218d907c404d8d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * $Id: common.h,v 1.4 2004/05/31 19:54:12 lordjaxom Exp $
 */

#ifndef VDR_TEXT2SKIN_COMMON_H
#define VDR_TEXT2SKIN_COMMON_H

#include <string>

class cText2SkinItem;

#define precond(x) if ((x)) { esyslog("ERROR: text2skin: "#x " not given"); return; }

const char *SkinPath(void);
void DrawTextTransparent(cOsd *Osd, int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width, int Height, int Alignment);
const char *ChannelNumber(const cChannel *Channel, int Number);
const char *ChannelName(const cChannel *Channel, int Number);
string ItemText(cText2SkinItem *Item, const string &Content);

#endif // VDR_TEXT2SKIN_COMMON_H