diff options
author | lordjaxom <lordjaxom> | 2004-06-02 19:56:58 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-06-02 19:56:58 +0000 |
commit | e0c2ee1d37c0f213f22a04df71710bebe3526f85 (patch) | |
tree | 8bfd3a4fa065abeb016134466523a1152202e597 /common.h | |
parent | e535cdbe09d9c13d79cd6722aafca5798b7d1e35 (diff) | |
download | vdr-plugin-text2skin-e0c2ee1d37c0f213f22a04df71710bebe3526f85.tar.gz vdr-plugin-text2skin-e0c2ee1d37c0f213f22a04df71710bebe3526f85.tar.bz2 |
- implemented image loading through ImageMagick (fixes crashes when runningv0.0.1-rc4
together with GraphTFT)
- implemented Theme support (see file demo.colors in the demo skin)
- implemented translations for texts used in skins (see file demo.trans in the
demo skin)
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -1,21 +1,34 @@ /* - * $Id: common.h,v 1.5 2004/06/01 21:02:38 lordjaxom Exp $ + * $Id: common.h,v 1.6 2004/06/02 20:43:05 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_COMMON_H #define VDR_TEXT2SKIN_COMMON_H #include <string> +#include <vector> +#include <map> +#include <vdr/osd.h> -class cText2SkinItem; +using std::string; +using std::vector; +using std::map; #define precond(x) if ((x)) { esyslog("ERROR: text2skin: "#x " not given"); return; } +class cChannel; +class cText2SkinItem; + 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); void DrawBitmap(cOsd *Osd, int x, int y, cBitmap &Bitmap, tColor ColorFg = 0, tColor ColorBg = 0); const char *ChannelNumber(const cChannel *Channel, int Number); const char *ChannelName(const cChannel *Channel, int Number); -string ItemText(cText2SkinItem *Item, const string &Content); + +bool ParseVar(const char *Text, const char *Name, int *Value); +bool ParseVar(const char *Text, const char *Name, const cFont **Value); +bool ParseVar(const char *Text, const char *Name, string &Value); +bool ParseVar(const char *Text, const char *Name, tColor **Value); +bool ParseVar(const char *Text, const char *Name, eTextAlignment *Value); #endif // VDR_TEXT2SKIN_COMMON_H |