/*
* Copyright (C) 2005-2013 Team XBMC
- * http://www.xbmc.org
+ * http://xbmc.org
*
* This Program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
bool UpdateColors();
CStdString ShortenPath(const CStdString &path);
+ /*! \brief Return the maximum width of this label control.
+ \return Return the width of the control if available, else the width of the current text.
+ */
+ float GetMaxWidth() const { return m_width ? m_width : m_label.GetTextWidth(); }
+
CGUILabel m_label;
bool m_bHasPath;