From 9aeb43d010d2452890d2c04832f1dfda8d963c4d Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Sun, 19 Dec 2004 22:03:02 +0000 Subject: Initial revision --- render.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'render.h') diff --git a/render.h b/render.h index 6b3727a..ab8a37f 100644 --- a/render.h +++ b/render.h @@ -1,5 +1,5 @@ /* - * $Id: render.h,v 1.9 2004/12/17 19:56:16 lordjaxom Exp $ + * $Id: render.h,v 1.1 2004/12/19 22:03:17 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_RENDER_H @@ -7,6 +7,7 @@ #include "common.h" #include "scroller.h" +#include "marquee.h" #include "xml/skin.h" #include "xml/type.h" #include @@ -32,6 +33,7 @@ class cText2SkinRender: public cThread { private: typedef std::map tTokenCache; + typedef std::vector tMarquees; static cText2SkinRender *mRender; @@ -41,6 +43,7 @@ private: cText2SkinTheme *mTheme; cText2SkinScreen *mScreen; cText2SkinScroller *mScroller; + tMarquees mMarquees; tTokenCache mTokenCache; std::string mBasePath; @@ -71,6 +74,8 @@ protected: int Alpha, int Colors, const std::string &Path); void DrawText(const txPoint &Pos, const txSize &Size, const tColor *Fg, const std::string &Text, const cFont *Font, int Align); + void DrawMarquee(const txPoint &Pos, const txSize &Size, const tColor *Fg, + const std::string &Text, const cFont *Font, int Align, uint Index); void DrawRectangle(const txPoint &Pos, const txSize &Size, const tColor *Fg); void DrawEllipse(const txPoint &Pos, const txSize &Size, const tColor *Fg, int Arc); @@ -99,7 +104,7 @@ protected: void Flush(bool Force = false); void SetDirty(void) { mDirty = true; } void Scroll(bool Up, bool Page) { if (mScroller) mScroller->Scroll(Up, Page); } - void Clear(void) { DELETENULL(mScroller); } + void Clear(void) { DELETENULL(mScroller); mMarquees.clear(); } public: cText2SkinRender(cText2SkinLoader *Loader, cxDisplay::eType Section, -- cgit v1.2.3