X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=xbmc%2Fguilib%2FGUITextBox.h;h=995ed9ee8aa4558b587137e640ca8707cb85bfa4;hb=9c845bf216b19a3291703ed9f47b779c894219b2;hp=2a24de772267900236d1bc362c734f0046624459;hpb=27001ae91df3583aa2c1a6e7586b65dc44387668;p=vuplus_xbmc diff --git a/xbmc/guilib/GUITextBox.h b/xbmc/guilib/GUITextBox.h index 2a24de7..995ed9e 100644 --- a/xbmc/guilib/GUITextBox.h +++ b/xbmc/guilib/GUITextBox.h @@ -52,6 +52,8 @@ public: virtual void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions); virtual void Render(); virtual bool OnMessage(CGUIMessage& message); + virtual float GetHeight() const; + void SetMinHeight(float minHeight); void SetPageControl(int pageControl); @@ -60,6 +62,7 @@ public: void SetAutoScrolling(const TiXmlNode *node); void ResetAutoScrolling(); CStdString GetLabel(int info) const; + CStdString GetDescription() const; void Scroll(unsigned int offset); @@ -72,6 +75,10 @@ protected: unsigned int GetRows() const; int GetCurrentPage() const; + // auto-height + float m_minHeight; + float m_renderHeight; + // offset of text in the control for scrolling unsigned int m_offset; float m_scrollOffset; @@ -86,7 +93,7 @@ protected: TransformMatrix m_cachedTextMatrix; // autoscrolling - unsigned int m_autoScrollCondition; + INFO::InfoPtr m_autoScrollCondition; int m_autoScrollTime; // time to scroll 1 line (ms) int m_autoScrollDelay; // delay before scroll (ms) unsigned int m_autoScrollDelayTime; // current offset into the delay