aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIFadeLabelControl.h
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-01-13 04:41:11 +0000
committerjmarshallnz <jmarshallnz@svn>2010-01-13 04:41:11 +0000
commit63ca55f61745184de8e6bbf3f7de1c4d33535c87 (patch)
tree2450a90e5b665d8157e0dad13ce06282c7218f80 /guilib/GUIFadeLabelControl.h
parent1652164b4ee1988d3f8598cb0628fd5f751da3a2 (diff)
fixed: skip blank labels in fadelabels
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@26740 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIFadeLabelControl.h')
-rw-r--r--guilib/GUIFadeLabelControl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/guilib/GUIFadeLabelControl.h b/guilib/GUIFadeLabelControl.h
index 298bdda84e..009a576d27 100644
--- a/guilib/GUIFadeLabelControl.h
+++ b/guilib/GUIFadeLabelControl.h
@@ -55,6 +55,16 @@ protected:
virtual void UpdateColors();
void AddLabel(const std::string &label);
+ /*! \brief retrieve the current label for display
+
+ The fadelabel has multiple labels which it cycles through. This routine retrieves the current label.
+ It first checks the current label and if non-empty returns it. Otherwise it will iterate through all labels
+ until it has a non-empty label to return.
+
+ \return the label that should be displayed. If empty, there is no label available.
+ */
+ CStdString GetLabel();
+
std::vector< CGUIInfoLabel > m_infoLabels;
unsigned int m_currentLabel;
unsigned int m_lastLabel;