diff options
author | Christian Tusche <chr13@gmx.net> | 2007-05-06 17:26:51 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-06-04 00:40:07 +0200 |
commit | 0b3f86344a87940d324695e0bc9449c35cbf60d4 (patch) | |
tree | f4562fbc169695101eaab3bc25e813fc0f0c761a /render.h | |
parent | ac64ce03ec6b5766691ff2da3af6f51ed800792a (diff) | |
download | vdr-plugin-text2skin-0b3f86344a87940d324695e0bc9449c35cbf60d4.tar.gz vdr-plugin-text2skin-0b3f86344a87940d324695e0bc9449c35cbf60d4.tar.bz2 |
2007-05-06: Version 1.1-cvs_ext-0.10a (text2skin-1.1-cvs_ext-0.10a.diff)
- increased efficiency in drawing list items in the main menu
- introduce relative Pos and Size of objects to given BasePos, BaseSize
(used to draw list items)
Diffstat (limited to 'render.h')
-rw-r--r-- | render.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -27,6 +27,7 @@ class cText2SkinRender: public cThread { friend class cText2SkinDisplayReplay; friend class cText2SkinDisplayMessage; friend class cText2SkinDisplayMenu; + friend class cText2SkinDisplayTracks; friend class cText2SkinStatus; @@ -75,6 +76,10 @@ private: }; typedef std::map<uint,tState> tStates; tStates mStates; + + // scalefactor for tabs in the menu list + float mTabScale; + bool mTabScaleSet; protected: // Update thread @@ -83,7 +88,11 @@ protected: virtual void Action(void); // Drawing operations - void DrawObject(const cxObject *Object); + void DrawObject(cxObject *Object, const txPoint &BaseOffset=txPoint(-1,-1), + const txSize &BaseSize=txSize(-1,-1), + int ListItem=-1 ); + void DrawItemText(cxObject *o, int i, const txPoint &ListOffset, const txSize &ListSize); + void DrawBackground(const txPoint &Pos, const txSize &Size, const tColor *Bg, const tColor *Fg, int Alpha, const std::string &Path); void DrawImage(const txPoint &Pos, const txSize &Size, const tColor *Bg, const tColor *Fg, |