diff options
author | anbr <vdr07@deltab.de> | 2014-05-04 12:03:11 +0200 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2014-05-04 12:03:11 +0200 |
commit | 1972932a11b837966abfb867cde6adaec3c96008 (patch) | |
tree | d1e72e8975d4da9475c132d4ff8338172d66054d /vfd.h | |
parent | 3d87cc0b6a062a39b9385f33bdec88ee25967776 (diff) | |
download | vdr-plugin-targavfd-1972932a11b837966abfb867cde6adaec3c96008.tar.gz vdr-plugin-targavfd-1972932a11b837966abfb867cde6adaec3c96008.tar.bz2 |
Refactoring draw text - scroll routine
Diffstat (limited to 'vfd.h')
-rw-r--r-- | vfd.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -74,6 +74,10 @@ class cVFD : public cVFDQueue { unsigned int lastIconState; unsigned int m_iSizeYb; + int m_nScrollOffset; + bool m_bScrollBackward; + bool m_bScrollNeeded; + protected: cVFDFont* pFont; @@ -91,6 +95,11 @@ public: void clear (); int DrawText(int x, int y, const char* string, int nMaxWidth = 1024); int DrawTextEclipsed(int x, int y, const char* string, int nMaxWidth = 1024); + + int DrawTextScrolled(int x, int y, const char* string, bool bCenter); + inline bool NeedScrolled() const { return m_nScrollOffset > 0 || m_bScrollBackward; }; + void RestartScrolled(); + int Height() const; int Width() const; bool Rectangle(int x1, int y1, int x2, int y2, bool filled); |