diff options
author | lordjaxom <lordjaxom> | 2004-12-19 22:03:02 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2004-12-19 22:03:02 +0000 |
commit | 9aeb43d010d2452890d2c04832f1dfda8d963c4d (patch) | |
tree | 4907fb636d40fc14a8f4d53ce33540afab3119cb /marquee.h | |
parent | ac920774dee48c0a85b3c6fc8c6785c1a5dd8f6d (diff) | |
download | vdr-plugin-text2skin-9aeb43d010d2452890d2c04832f1dfda8d963c4d.tar.gz vdr-plugin-text2skin-9aeb43d010d2452890d2c04832f1dfda8d963c4d.tar.bz2 |
Initial revision
Diffstat (limited to 'marquee.h')
-rw-r--r-- | marquee.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/marquee.h b/marquee.h new file mode 100644 index 0000000..c989e47 --- /dev/null +++ b/marquee.h @@ -0,0 +1,44 @@ +/* + * $Id: marquee.h,v 1.1 2004/12/19 22:03:14 lordjaxom Exp $ + */ + +#ifndef VDR_TEXT2SKIN_MARQUEE_H +#define VDR_TEXT2SKIN_MARQUEE_H + +#include <vdr/osd.h> +#include <string> + +class cFont; +class cText2SkinScreen; + +class cText2SkinMarquee { +private: + cText2SkinScreen *mScreen; + const cFont *mFont; + int mLeft; + int mTop; + int mWidth; + int mHeight; + std::string mText; + bool mScrolling; + int mOffset; + int mDirection; + tColor mColorFg; + tColor mColorBg; + uint mNextTime; + + cText2SkinMarquee(void) {} // disallow direct construction + +public: + cText2SkinMarquee(const cText2SkinMarquee &Src); + cText2SkinMarquee(cText2SkinScreen *Screen, int Left, int Top, int Width, int Height, + const std::string &Text, const cFont *Font, tColor ColorFg, tColor ColorBg, + int &UpdateIn); + + void Set(cText2SkinScreen *Screen, int Left, int Top, int Width, int Height, + const std::string &Text, const cFont *Font, tColor ColorFg, tColor ColorBg, + int &UpdateIn); + void DrawText(int &UpdateIn); +}; + +#endif // VDR_TEXT2SKIN_MARQUEE_H |