summaryrefslogtreecommitdiff
path: root/vfd.h
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2014-05-04 12:03:11 +0200
committeranbr <vdr07@deltab.de>2014-05-04 12:03:11 +0200
commit1972932a11b837966abfb867cde6adaec3c96008 (patch)
treed1e72e8975d4da9475c132d4ff8338172d66054d /vfd.h
parent3d87cc0b6a062a39b9385f33bdec88ee25967776 (diff)
downloadvdr-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.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/vfd.h b/vfd.h
index 7efa0f9..d2e6601 100644
--- a/vfd.h
+++ b/vfd.h
@@ -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);