9 * Copyright (C) 2005-2013 Team XBMC
12 * This Program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2, or (at your option)
17 * This Program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with XBMC; see the file COPYING. If not, see
24 * <http://www.gnu.org/licenses/>.
28 #include "GUIControl.h"
39 CGUIListLabel(int parentID, int controlID, float posX, float posY, float width, float height, const CLabelInfo& labelInfo, const CGUIInfoLabel &label, bool alwaysScroll);
40 virtual ~CGUIListLabel(void);
41 virtual CGUIListLabel *Clone() const { return new CGUIListLabel(*this); };
43 virtual void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions);
44 virtual void Render();
45 virtual bool CanFocus() const { return false; };
46 virtual void UpdateInfo(const CGUIListItem *item = NULL);
47 virtual void SetFocus(bool focus);
48 virtual void SetInvalid();
49 virtual void SetWidth(float width);
51 void SetLabel(const CStdString &label);
52 void SetSelected(bool selected);
53 void SetScrolling(bool scrolling);
55 static void CheckAndCorrectOverlap(CGUIListLabel &label1, CGUIListLabel &label2)
57 CGUILabel::CheckAndCorrectOverlap(label1.m_label, label2.m_label);
60 virtual CRect CalcRenderRegion() const;
63 virtual bool UpdateColors();